Automation based on rising attribute fails
Closed this issue · 2 comments
I have a really strange problem. I have an integration that has a condition that checks the rising attribute of the sun_phase sensor for rising is false. For some reason it always fails. Below is a capture of the condition:
And here is a capture of the current state of the sensor:
I must missing something simple, but the condition fails and the automation never fires, even though the attribute rising is false.
Any clue what I am doing wrong?
I think you're being bit by a limitation in the UI. It only accepts strings for values, but the attribute is a boolean, and false as a string does not match false as a boolean.
You can work around this limitation by editing that condition in YAML mode. Then change the line:
state: "false"
to:
state: false
Ah, this was the solution I needed.