I have had this issue before and i had it fixed, untill now. See old post here:
Automations with conditions broken? - Home Assistant Community (home-assistant.io)
I have the issue that the automation completely ignores the state of the motion sensor, Dark: true/false.
I fixed it in yaml, without the quotes, like last time. Because then you say true in the UI, it put’s it in quotes. That does not work, it should be a boolean.
Now, it still doesn’t work anymore when you remove the boolean. See screenshots below. I don’t get why the automation just ignores the state of the attribute. Am i doing something wrong?
And the automation part:
Full automation:
alias: (2) Zolderlamp aan/uit
description: ‘’
trigger:
- type: motion
platform: device
device_id: 6f24f6ce3dfd719310ad65868f367f52
entity_id: binary_sensor.overloop_sensor
domain: binary_sensor
id: movement-detected - type: no_motion
platform: device
device_id: 6f24f6ce3dfd719310ad65868f367f52
entity_id: binary_sensor.overloop_sensor
domain: binary_sensor
id: movement-gone
for:
hours: 0
minutes: 3
seconds: 0
condition: []
action: - type: turn_on
device_id: ab3e58aa0910cce60556c842612dbc70
entity_id: light.overloop
domain: light
brightness_pct: 30 - choose:
- conditions:
- condition: trigger
id: movement-detected - condition: state
entity_id: binary_sensor.overloop_sensor
attribute: Dark
state: true
sequence: - type: turn_on
device_id: ab3e58aa0910cce60556c842612dbc70
entity_id: light.overloop
domain: light
brightness_pct: 30
- condition: trigger
- conditions:
- condition: trigger
id: movement-gone
sequence: - type: turn_off
device_id: ab3e58aa0910cce60556c842612dbc70
entity_id: light.overloop
domain: light
default: []
mode: single
- condition: trigger
- conditions: