Light turns back on when switched off (HA + Zigbee2MQTT)

Hi good folks,

I’ve been banging my head against the wall for the last few weeks trying to figure out why some lights are turning straight back on when turned off either through HA web interface or via the remote. I’ve capture some logs though at a glance they don’t seem to help me. Also seems a bit random on when it happens. I don’t have any scripts or automations for the lights either.

I’ve also enabled the debugging logs in HA though there is nothing in there when this happens. I have Zigbee2MQTT setup externally on a Pi if that changes anything.

Here’s a couple pictures of the logs, any help/ideas would be greatly appreciated



.

HA Logbook

Living room light turned on

19:30:44 - 13 minutes ago

Living room light turned off triggered by service light.turn_off

19:30:37 - 13 minutes ago - Alastair

Living room light turned on

19:26:30 - 18 minutes ago

Living room light turned off triggered by service light.turn_off

19:26:22 - 18 minutes ago - Alastair

ZIGBEE2MQTT LOGS

<small>2022-08-18 19:30:36</small>`Received MQTT message on 'zigbee2mqtt/Living room light/set' with data '{"state":"OFF"}'`

Debug <small>2022-08-18 19:30:36</small>`Publishing 'set' 'state' to 'Living room light'`

Info <small>2022-08-18 19:30:37</small>`MQTT publish: topic 'zigbee2mqtt/living_room', payload '{"brightness":254,"color":{"h":32,"hue":32,"s":81,"saturation":81,"x":0.4574,"y":0.41},"color_mode":"color_temp","color_temp":366,"state":"OFF"}'`

Info <small>2022-08-18 19:30:37</small>`MQTT publish: topic 'zigbee2mqtt/Living room light', payload '{"brightness":254,"color":{"h":32,"hue":32,"s":81,"saturation":81,"x":0.4574,"y":0.41},"color_mode":"color_temp","color_temp":366,"linkquality":65,"state":"OFF","update":{"state":null},"update_available":null}'`

Debug <small>2022-08-18 19:30:37</small>`Received Zigbee message from 'Living room light', type 'readResponse', cluster 'lightingColorCtrl', data '{"colorMode":2,"colorTemperature":366,"currentSaturation":140,"currentX":29967,"currentY":26869,"enhancedCurrentHue":8417}' from endpoint 11 with groupID 0`

Info <small>2022-08-18 19:30:37</small>`MQTT publish: topic 'zigbee2mqtt/living_room', payload '{"brightness":254,"color":{"h":32,"hue":32,"s":81,"saturation":81,"x":0.4574,"y":0.41},"color_mode":"color_temp","color_temp":366,"state":"OFF"}'`

Info <small>2022-08-18 19:30:37</small>`MQTT publish: topic 'zigbee2mqtt/Living room light', payload '{"brightness":254,"color":{"h":32,"hue":32,"s":81,"saturation":81,"x":0.4574,"y":0.41},"color_mode":"color_temp","color_temp":366,"linkquality":61,"state":"OFF","update":{"state":null},"update_available":null}'`

Debug <small>2022-08-18 19:30:42</small>`Device 'Living room light' announced itself`

Info <small>2022-08-18 19:30:42</small>`MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Living room light","ieee_address":"0x0017880102d93eca"},"type":"device_announce"}'`

Debug <small>2022-08-18 19:30:44</small>`Retrieving state of 'Living room light' after reconnect`

Debug <small>2022-08-18 19:30:44</small>`Received Zigbee message from 'Living room light', type 'readResponse', cluster 'genOnOff', data '{"onOff":1}' from endpoint 11 with groupID 0`

Info <small>2022-08-18 19:30:44</small>`MQTT publish: topic 'zigbee2mqtt/living_room', payload '{"brightness":254,"color":{"h":32,"hue":32,"s":81,"saturation":81,"x":0.4574,"y":0.41},"color_mode":"color_temp","color_temp":366,"state":"ON"}'`

Info <small>2022-08-18 19:30:44</small>`MQTT publish: topic 'zigbee2mqtt/Living room light', payload '{"brightness":254,"color":{"h":32,"hue":32,"s":81,"saturation":81,"x":0.4574,"y":0.41},"color_mode":"color_temp","color_temp":366,"linkquality":61,"state":"ON","update":{"state":null},"update_available":null}'`

Alastair did you find a answer to your issue?