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

Lonsonho 1-gang wall switch unable to see changing statuses. TS0001 by _TZ3000_gidy6sjs. #5382

Closed
Mistral opened this issue Dec 23, 2020 · 3 comments
Labels
problem Something isn't working

Comments

@Mistral
Copy link

Mistral commented Dec 23, 2020

What happened

I've bought some wall switches from Lonsonho, 1-gang, 2-gang and 3-gang (all with neutral line). Each devices were successfully paired, but I don't receive any changing statuses from 1-gang version which is discovered as: TS0001 by _TZ3000_gidy6sjs. rest devices are 2gang-> TS0002 by _TZ3000_svoqrno4 (works correctly), 3gang -> TS0003 by _TYZB01_b8cr31hp (also works correctly). From 1-gang version I don't see any updates.

What did you expect to happen

See notification after pressing button.

How to reproduce it (minimal and precise)

Debug info

Zigbee2MQTT version: 1.16.2
Adapter hardware: Conbee II
Adapter firmware version: 0x26660700

@Mistral Mistral added the problem Something isn't working label Dec 23, 2020
@Koenkk
Copy link
Owner

Koenkk commented Dec 23, 2020

Can you try changing the definition in devices.js to below and see if it works?

{
    zigbeeModel: ['TS0001'],
    model: 'TS0001',
    vendor: 'TuYa',
    description: '1 gang switch',
    extend: preset.switch,
    whiteLabel: [{vendor: 'CR Smart Home', model: 'TS0001', description: 'Valve control'}, {vendor: 'Lonsonho', model: 'X701'},
        {vendor: 'Bandi', model: 'BDS03G1'}],
    meta: {configureKey: 1},
    configure: async (device, coordinatorEndpoint) => {
        await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
    },
},

@Mistral
Copy link
Author

Mistral commented Dec 23, 2020

I had to make some changes (probably my dependency of converter library is different as it is on the master branch on Github).

Here is the code which worked for me:

{
    zigbeeModel: ['TS0001'],
    model: 'TS0001',
    vendor: 'TuYa',
    description: '1 gang switch',
    extend: generic.switch,
    whiteLabel: [{vendor: 'CR Smart Home', model: 'TS0001', description: 'Valve control'}, {vendor: 'Lonsonho', model: 'X701'},
        {vendor: 'Bandi', model: 'BDS03G1'}],
    meta: {configureKey: 1},
    configure: async (device, coordinatorEndpoint) => {
        await bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
    },
},

I believe your code after merging to master branch of zigbee-herdsman-converters should also work properly.

Should I open a pull request with your fix, or will you do it?

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Dec 24, 2020
@Koenkk
Copy link
Owner

Koenkk commented Dec 24, 2020

@Mistral thanks for confirming, added it.

Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)

@Koenkk Koenkk closed this as completed Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants