dresden-elektronik / deconz-rest-plugin

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

DC 7-32v Ewelink ZigBee Relay Module (recognized as light should switch) #6888

Closed kampi9 closed 1 year ago

kampi9 commented 1 year ago

Device

Issue is that device can be found in deconz, but is recognized as light. Should work as a switch/relais. which it's doing when you click the manual switch on device itself.

image image

Basic

image

Identify

image

Groups

image image

Scenes

image image image image

On/Off

image image image

Mimiix commented 1 year ago

Please add all requested screenshots.

kampi9 commented 1 year ago

Uploaded requested screenshots.

BabaIsYou commented 1 year ago

Uploaded requested screenshots.

Clusters list screenshot is still missing.

Edit : as reference, device was identified as "fully working" in #4642

BabaIsYou commented 1 year ago

In the referenced issue #4642, a reflexion made after the issue had been closed, lead me to do some verification about 0x006 "On/Off server cluster" in Zigbee cluster library. Then it seems that we did not conform to this in Deconz implementaion : Specification : image In general.xml :

    <cluster id="0x0006" name="On/Off">
      <description>Attributes and commands for switching devices between 'On' and 'Off' states.</description>
      <server>
        <attribute-set id="0x0000" description="OnOff state">
          <attribute id="0000" name="OnOff" type="bool" access="r" default="0" required="m">
            <value name="On" value="1"></value>
            <value name="Off" value="0"></value>
          </attribute>
          <attribute id="0x4000" name="GlobalSceneControl" type="bool" access="r" default="0" required="o"></attribute>
          <attribute id="0x4001" name="OnTime" type="u16" access="r" default="0" required="o"></attribute>
          <attribute id="0x4002" name="OffWaitTime" type="u16" access="r" default="0" required="o"></attribute>
          <attribute id="0x4003" name="StartUp OnOff" type="enum8" access="rw" default="0x01" required="o">
            <value name="Off" value="0x00"></value>
            <value name="On" value="0x01"></value>
            <value name="Previous" value="0xff"></value>
          </attribute>
        </attribute-set>

Then GlobalSceneControl attribute default value should be 0x01 and not 0 OnTime and OffwaitTime attributes should be rw

But don't know the consequences of changing these on code behaviour.

Mimiix commented 1 year ago

Beat to ask in discord.

kampi9 commented 1 year ago

Thanks for the comments/updates. For a strange reason after a night of doing nothing the light/device seems to work as a relay. After it's toggled, it turn itself directly off. The functionality which was desired.