I think the problem is that, for this device, the "STATE" in the payload is worthless. It's always "OFF", even when the device is on.
Change state_location_payload_key to "brightness" and see if that helps.
{"brightness":254,"color":{"x":0.339715260382228,"y":0.347215989076895},"color_temp":192,"linkquality":94,"state":"OFF","update_available":false}
{"brightness":254,"color":{"x":0.339715260382228,"y":0.347215989076895},"color_temp":192,"linkquality":94,"state":"ON","update_available":false}
cesarvog wrote:Also, on a second unrelated issue, of note on the screenshot below is the need to use "ON" in the Off Action payload field. I tried putting "OFF" there, and the bulb does come on and off correctly but the little lamp icon in Indigo's GUI will stay "lit", even when the actual bulb is off...
Zigbee2MQTT:info 2020-12-24 13:38:07: MQTT publish: topic 'zigbee2mqtt/Escritorio_HueGr2', payload '{"brightness":100,"color":{"x":0.242355094382,"y":0.119824558987},"color_temp":124,"state":"ON"}'
Zigbee2MQTT:info 2020-12-24 13:38:07: MQTT publish: topic 'zigbee2mqtt/Escritorio_Old_Hue_Bulb', payload '{"brightness":100,"color":{"x":0.242355094382,"y":0.119824558987},"color_temp":124,"linkquality":138,"state":"ON"}'
Zigbee2MQTT:info 2020-12-24 13:38:14: MQTT publish: topic 'zigbee2mqtt/Escritorio_HueGr2', payload '{"brightness":0,"color":{"x":0.242355094382,"y":0.119824558987},"color_temp":124,"state":"OFF"}'
Zigbee2MQTT:info 2020-12-24 13:38:14: MQTT publish: topic 'zigbee2mqtt/Escritorio_Old_Hue_Bulb', payload '{"brightness":0,"color":{"x":0.242355094382,"y":0.119824558987},"color_temp":124,"linkquality":138,"state":"OFF"}'
Zigbee2MQTT:info 2020-12-24 13:39:20: MQTT publish: topic 'zigbee2mqtt/Escritorio_HueGr2', payload '{"brightness":100,"color":{"x":0.242355094382,"y":0.119824558987},"color_temp":124,"state":"ON"}'
Zigbee2MQTT:info 2020-12-24 13:39:20: MQTT publish: topic 'zigbee2mqtt/Escritorio_Old_Hue_Bulb', payload '{"brightness":100,"color":{"x":0.242355094382,"y":0.119824558987},"color_temp":124,"linkquality":138,"state":"ON"}'
Zigbee2MQTT:info 2020-12-24 13:39:24: MQTT publish: topic 'zigbee2mqtt/Escritorio_HueGr2', payload '{"brightness":100,"color":{"x":0.242355094382,"y":0.119824558987},"color_temp":124,"state":"OFF"}'
Zigbee2MQTT:info 2020-12-24 13:39:24: MQTT publish: topic 'zigbee2mqtt/Escritorio_Old_Hue_Bulb', payload '{"brightness":100,"color":{"x":0.242355094382,"y":0.119824558987},"color_temp":124,"linkquality":138,"state":"OFF"}'
Users browsing this forum: No registered users and 1 guest