Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New device support]: Lonsonho switch #24468

Open
PixelSwan opened this issue Oct 24, 2024 · 0 comments
Open

[New device support]: Lonsonho switch #24468

PixelSwan opened this issue Oct 24, 2024 · 0 comments
Labels
new device support New device support request

Comments

@PixelSwan
Copy link

Link

https://lonsonho.com/ru/products/zigbee-3-0-smart-light-button-switch-works-with-alexa-google-home-tuya-smartlife?variant=44225835761822

Database entry

{"id":4,"type":"EndDevice","ieeeAddr":"0xa4c138084e2a5b61","nwkAddr":64895,"manufId":4742,"manufName":"_TZ3000_lsoesc7r","powerSource":"Battery","modelId":"TS0002","epList":[1,2],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[0,3,32,6],"outClusterList":[25],"clusters":{"genOnOff":{"attributes":{"onOff":0,"moesStartUpOnOff":2,"onTime":0,"tuyaBacklightMode":1,"offWaitTime":0}},"genBasic":{"attributes":{"hwVersion":0,"manufacturerName":"_TZ3000_lsoesc7r","zclVersion":3,"appVersion":112,"modelId":"TS0002","powerSource":3}},"genPollCtrl":{"attributes":{"checkinInterval":14400}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00124b0025910142","endpointID":1},{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0025910142","endpointID":1}],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[0,3,32,6],"outClusterList":[25],"clusters":{"genOnOff":{"attributes":{"onOff":1,"onTime":0,"offWaitTime":0}},"genBasic":{"attributes":{"hwVersion":0}},"genPollCtrl":{"attributes":{}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00124b0025910142","endpointID":1},{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0025910142","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":112,"stackVersion":2,"hwVersion":0,"zclVersion":3,"interviewCompleted":true,"meta":{"configured":332242049},"lastSeen":1729798898119,"checkinInterval":3600}{"id":4,"type":"EndDevice","ieeeAddr":"0xa4c138084e2a5b61","nwkAddr":64895,"manufId":4742,"manufName":"_TZ3000_lsoesc7r","powerSource":"Battery","modelId":"TS0002","epList":[1,2],"endpoints":{"1":{"profId":260,"epId":1,"devId":256,"inClusterList":[0,3,32,6],"outClusterList":[25],"clusters":{"genOnOff":{"attributes":{"onOff":0,"moesStartUpOnOff":2,"onTime":0,"tuyaBacklightMode":1,"offWaitTime":0}},"genBasic":{"attributes":{"hwVersion":0,"manufacturerName":"_TZ3000_lsoesc7r","zclVersion":3,"appVersion":112,"modelId":"TS0002","powerSource":3}},"genPollCtrl":{"attributes":{"checkinInterval":14400}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00124b0025910142","endpointID":1},{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0025910142","endpointID":1}],"configuredReportings":[],"meta":{}},"2":{"profId":260,"epId":2,"devId":256,"inClusterList":[0,3,32,6],"outClusterList":[25],"clusters":{"genOnOff":{"attributes":{"onOff":1,"onTime":0,"offWaitTime":0}},"genBasic":{"attributes":{"hwVersion":0}},"genPollCtrl":{"attributes":{}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00124b0025910142","endpointID":1},{"cluster":6,"type":"endpoint","deviceIeeeAddress":"0x00124b0025910142","endpointID":1}],"configuredReportings":[],"meta":{}}},"appVersion":112,"stackVersion":2,"hwVersion":0,"zclVersion":3,"interviewCompleted":true,"meta":{"configured":332242049},"lastSeen":1729798898119,"checkinInterval":3600}

Zigbee2MQTT version

1.40.2

Comments

This switch in some reason connects as Tuya TS0002

External definition

const {deviceEndpoints, onOff} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: ['TS0002'],
    model: 'TS0002',
    vendor: '_TZ3000_lsoesc7r',
    description: 'Automatically generated definition',
    extend: [deviceEndpoints({"endpoints":{"1":1,"2":2}}), onOff({"powerOnBehavior":false,"endpointNames":["1","2"]})],
    meta: {"multiEndpoint":true},
};

module.exports = definition;const {deviceEndpoints, onOff} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: ['TS0002'],
    model: 'TS0002',
    vendor: '_TZ3000_lsoesc7r',
    description: 'Automatically generated definition',
    extend: [deviceEndpoints({"endpoints":{"1":1,"2":2}}), onOff({"powerOnBehavior":false,"endpointNames":["1","2"]})],
    meta: {"multiEndpoint":true},
};

module.exports = definition;

What does/doesn't work with the external definition?

The switch is disconnecting in 1-2 days. The properties of this device is incorrect as it connects as Tuya TS0002

@PixelSwan PixelSwan added the new device support New device support request label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device support New device support request
Projects
None yet
Development

No branches or pull requests

1 participant