Sun rising condition test fails

I must be missing something simple here, but this basic automation condition shows false when it obviously should return true.

Could someone point me in the right direction? Thank you!

My guess would be that the rising attribute is actually a boolean, while the value to compare it to is entered as a string. If so the comparison will never match.

Try editing the automation in YAML and remove the quotes, that is change the line that most likely says state: "true" to state: true

  - condition: state
    entity_id: sun.sun
    attribute: rising
    state: true
1 Like

Thank you so much for the quick reply! That’s exactly what it was. I can’t believe I missed that.

For anyone else reading this, I’m on an older revision of HAOS, so hopefully this visual editor bug is fixed in newer version(s).

Core 2024.7.1
Supervisor 2024.12.0
Operating System 12.4