Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge πŸŒ‰, get rid of your proprietary Zigbee bridges πŸ”¨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.7k stars 1.64k forks source link

[Problem]: Gledopto light state out of sync #10611

Closed RoboMagus closed 2 years ago

RoboMagus commented 2 years ago

What happened?

When using the remote bundled with the GL-B-007ZS Gledopto lightbulb, the status known to Zigbee2MQTT goes out of sync. I could easilly work around this by requesting the bulbs state periodically to update the Z2M internal light state. However my Real issue is that even though the visual internal state is updated correctly, toggling the light switch in the Z2M devices UI does not seem to be operational. Only when manually switching the light to the state it already has, will it respond to the toggle action.

Note, this problem seems to have overlap with issue #6933.

What did you expect to happen?

When requesting the bulbs state and seeing the visual status updated, the internal light state should be update as well (as the UI seems to reflect).

How to reproduce it (minimal and precise)

  1. Turn on Gledopto bulb through Zigbee2MQTT
  2. Turn off the bulb using remote
  3. Verify that the bulbs status in Zigbee2MQTT UI is not updated
  4. Request status update of the bulb (Get)
  5. Verify that the status in the UI now indicates off (correctly)
  6. Toggle the light to On using the Zigbee2MQTT UI --> Nothing happens
  7. (Turn off and then on through the UI, and now it seems to work)

Zigbee2MQTT version

1.22.2

Adapter firmware version

20211217

Adapter

CC2652P2

Debug log

<Due to system configuration not available at time of writing, will edit issue once issue is reproduced with required logging info>

RoboMagus commented 2 years ago

I've ran the problem scenario again and here's the log output of the sequence described above:

Debug Received MQTT message on 'zigbee2mqtt/Slaapkamer lamp/set' with data '{"state": "ON", "brightness": 90, "color_temp": 476}'
Debug Publishing 'set' 'brightness' to 'Slaapkamer lamp'
Debug Publishing 'set' 'color_temp' to 'Slaapkamer lamp'
Info MQTT publish: topic 'zigbee2mqtt/Slaapkamer', payload '{"brightness":90,"color":{"h":354,"hue":354,"s":100,"saturation":100,"x":0.516,"y":0.4146},"color_mode":"color_temp","color_temp":476,"state":"ON"}'
Info MQTT publish: topic 'zigbee2mqtt/Slaapkamer lamp', payload '{"brightness":90,"color":{"h":354,"hue":354,"s":100,"saturation":100,"x":0.516,"y":0.4146},"color_mode":"color_temp","color_temp":476,"linkquality":98,"state":"ON"}'
Debug Received MQTT message on 'zigbee2mqtt/Slaapkamer lamp/get' with data '{"state":""}'
Debug Publishing get 'get' 'state' to 'Slaapkamer lamp'
Debug Received Zigbee message from 'Slaapkamer lamp', type 'readResponse', cluster 'genOnOff', data '{"onOff":0}' from endpoint 11 with groupID 0
Info MQTT publish: topic 'zigbee2mqtt/Slaapkamer', payload '{"brightness":90,"color":{"h":354,"hue":354,"s":100,"saturation":100,"x":0.516,"y":0.4146},"color_mode":"color_temp","color_temp":476,"state":"OFF"}'
Info MQTT publish: topic 'zigbee2mqtt/Slaapkamer lamp', payload '{"brightness":90,"color":{"h":354,"hue":354,"s":100,"saturation":100,"x":0.516,"y":0.4146},"color_mode":"color_temp","color_temp":476,"linkquality":102,"state":"OFF"}'
Debug Received MQTT message on 'zigbee2mqtt/Slaapkamer lamp/set' with data '{"state":"ON"}'
Debug Publishing 'set' 'state' to 'Slaapkamer lamp'
Info MQTT publish: topic 'zigbee2mqtt/Slaapkamer', payload '{"brightness":90,"color":{"h":354,"hue":354,"s":100,"saturation":100,"x":0.516,"y":0.4146},"color_mode":"color_temp","color_temp":476,"state":"ON"}'
Info MQTT publish: topic 'zigbee2mqtt/Slaapkamer lamp', payload '{"brightness":90,"color":{"h":354,"hue":354,"s":100,"saturation":100,"x":0.516,"y":0.4146},"color_mode":"color_temp","color_temp":476,"linkquality":102,"state":"ON"}'
Debug Received MQTT message on 'zigbee2mqtt/Slaapkamer lamp/set' with data '{"state":"OFF"}'
Debug Publishing 'set' 'state' to 'Slaapkamer lamp'
Info MQTT publish: topic 'zigbee2mqtt/Slaapkamer', payload '{"brightness":90,"color":{"h":354,"hue":354,"s":100,"saturation":100,"x":0.516,"y":0.4146},"color_mode":"color_temp","color_temp":476,"state":"OFF"}'
Info MQTT publish: topic 'zigbee2mqtt/Slaapkamer lamp', payload '{"brightness":90,"color":{"h":354,"hue":354,"s":100,"saturation":100,"x":0.516,"y":0.4146},"color_mode":"color_temp","color_temp":476,"linkquality":98,"state":"OFF"}'
Debug Received MQTT message on 'zigbee2mqtt/Slaapkamer lamp/set' with data '{"state":"OFF"}'
Debug Publishing 'set' 'state' to 'Slaapkamer lamp'
Info MQTT publish: topic 'zigbee2mqtt/Slaapkamer lamp', payload '{"brightness":90,"color":{"h":354,"hue":354,"s":100,"saturation":100,"x":0.516,"y":0.4146},"color_mode":"color_temp","color_temp":476,"linkquality":94,"state":"OFF"}'
Debug Received MQTT message on 'zigbee2mqtt/Slaapkamer lamp/set' with data '{"state":"ON"}'
Debug Publishing 'set' 'state' to 'Slaapkamer lamp'
Info MQTT publish: topic 'zigbee2mqtt/Slaapkamer', payload '{"brightness":90,"color":{"h":354,"hue":354,"s":100,"saturation":100,"x":0.516,"y":0.4146},"color_mode":"color_temp","color_temp":476,"state":"ON"}'
Info MQTT publish: topic 'zigbee2mqtt/Slaapkamer lamp', payload '{"brightness":90,"color":{"h":354,"hue":354,"s":100,"saturation":100,"x":0.516,"y":0.4146},"color_mode":"color_temp","color_temp":476,"linkquality":105,"state":"ON"}'
Debug Received MQTT message on 'zigbee2mqtt/Slaapkamer lamp/set' with data '{"state": "OFF"}'
Debug Publishing 'set' 'state' to 'Slaapkamer lamp'
Info MQTT publish: topic 'zigbee2mqtt/Slaapkamer', payload '{"brightness":90,"color":{"h":354,"hue":354,"s":100,"saturation":100,"x":0.516,"y":0.4146},"color_mode":"color_temp","color_temp":476,"state":"OFF"}'
Info MQTT publish: topic 'zigbee2mqtt/Slaapkamer lamp', payload '{"brightness":90,"color":{"h":354,"hue":354,"s":100,"saturation":100,"x":0.516,"y":0.4146},"color_mode":"color_temp","color_temp":476,"linkquality":98,"state":"OFF"}'

There seems to be multiple issues with this product. I've also noticed that it doesn't play well when using this bulb in a light group: Lots of flickering when transitioning off / on with a transition duration.

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days