dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 498 forks source link

Yagusmart Zigbee Smart Wall Light Switch 1 Gang No Neutral Wire Required #7660

Closed BottlecapDave closed 4 months ago

BottlecapDave commented 6 months ago

Is there already an existing issue for this?

Product name

Yagusmart Zigbee Smart Wall Light Switch 1 Gang No Neutral Wire Required

Manufacturer

unknown

Model identifier

unknown

Device type to add

Light

Node info

node

Endpoints and clusters

cluster1 cluster2 cluster3 cluster4

Basic

cluster4

Further relevant clusters

Power Configuration

On/Off

Level Control

Color Control

Thermostat

Simple Metering

Electrical Measurement

Any other cluster of relevance/interest

This is a simple on/off light switch.

This used to work, but not sure when it stopped working.

If I go to Edit DDF, I get

ddf

I am accessing this via Home Assistant

Smanar commented 6 months ago

Hello, try adding your device in this DDF https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/tuya/_TZ3000_TS0011_1gang_switch_module.json

Remember you need to add Manufacture name AND model id.

BottlecapDave commented 5 months ago

I edited this manually in the deconz view within HA and I managed to communicate with the device again.

I've opened https://github.com/dresden-elektronik/deconz-rest-plugin/pull/7699 to add the profile

Smanar commented 5 months ago

Thx, but why you haven't just added your device to the existing list ? There new tuya clone every day, so we try to "group" them.

And from the working mode, the DDF use poll, better to use bind/report

        {
          "name": "state/on",
          "description": "True when device is on; false when off.",
          "refresh.interval": 5
        },

Become

        {
          "name": "state/on"
        },

And need to add bind at the end

  "bindings": [
    {
      "bind": "unicast",
      "src.ep": 1,
      "cl": "0x0006",
      "report": [
        {
          "at": "0x0000",
          "dt": "0x10",
          "min": 1,
          "max": 300
        }
      ]
    }
  ]
BottlecapDave commented 5 months ago

I was trying to follow the convention laid out by existing files (quite confusing of when you add to one vs when you create a new one). The file copied is just what's been working in my instance so I know it works. If the owners of this repo would like me to update my PR and just update one of the existing files, I'll do that.

Smanar commented 5 months ago

quite confusing of when you add to one vs when you create a new one

Lol, right, I can understand, no logic.

The file copied is just what's been working in my instance so I know it works

Yep, but if you can make a try with the bind/report working mode ? if it work, will be lighter for your network, the poll make lot of more request than the bind/report mode.

github-actions[bot] commented 4 months ago

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.