So I have this simple automation for turning kitchen light on which is working flawlessly.
---
alias: Lampen - Turn on kitchen lights by movement
description: ''
trigger:
- entity_id: binary_sensor.kitchen_motion_occupancy
platform: state
from: 'off'
to: 'on'
condition:
condition: or
conditions:
- condition: numeric_state
entity_id: sensor.kitchen_motion_illuminance_lux
below: 101
action:
- service: light.turn_on
data:
entity_id: light.kitchen
And this automation to turn light off when no motion detected:
---
alias: Lampen - Turn off kitchen light
description: ''
trigger:
- entity_id: binary_sensor.kitchen_motion_occupancy
platform: state
to: 'off'
for:
minutes: 1
condition: []
action:
- service: light.turn_off
data:
entity_id: light.kitchen
Weirdly; sometimes when the light turns off automatically by the automation; the light is turning on again. And I don't know why. When checking out the logbook in HA something is weird. As the screenshot says: 'Keuken (which is kitchen in English' turned on by service.light.turn_on'. So that seems to me that there's no other automation that is triggering this randomly turned off light.
These are the zigbee2mqtt logs. The first line is automation that's beiing triggered to turn the light off. A few seconds after that; for some reason the light is turning on itself.
Hi all, I've a weird problem using zigbee2mqtt in Home Assistant where my light is turning itself on after it's turned off by a automation
So I have this simple automation for turning kitchen light on which is working flawlessly.
And this automation to turn light off when no motion detected:
Weirdly; sometimes when the light turns off automatically by the automation; the light is turning on again. And I don't know why. When checking out the logbook in HA something is weird. As the screenshot says: 'Keuken (which is kitchen in English' turned on by service.light.turn_on'. So that seems to me that there's no other automation that is triggering this randomly turned off light.
These are the zigbee2mqtt logs. The first line is automation that's beiing triggered to turn the light off. A few seconds after that; for some reason the light is turning on itself.
Does someone has any clue? How can I debug this even further?