this post was submitted on 03 Jul 2024
11 points (100.0% liked)
homeassistant
12071 readers
4 users here now
Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Hello I would use a state change as the trigger, then in the action use an if to look for an off. That way you could use it to turn on the speakers with the chromecast
I was looking for automtion that turns off the speakers, but I could have the same approach for turning them on.
If I understood correctly, that triger would be active at any state change (from on to off, from off to unavailable, from off to on, from unavailable to off) and then using IF ChromeCast is off it would activate automation even when it changes from unavailable to off. That wouldn't solve the issue, am I missing something?
I want it to triger when changing from on to off only, while ignoring change from unavailble to off.
That is true, there migh be a state change from on to off that you can pick
Oh you are right, didn't know that was available in HA GUI. Thank you, I'll test it out later.