If an entiry only has two states is FROM: even necessary

Title is really the question, Cleaning up my automation as I’ve learned , I have a lot of automations that trigger
FROM: ‘off’
TO: ‘on’

Home to away, etc

If there are only two states is there any benefit to using the from?

From what I’ve seen in discussions in the past I would say: Yes and No!

I also thought that my switches have only the states ‘on’ and ‘off’ - but actually they can be ‘unavailable’ as well. So if you have a trigger that’s tied to exactly that state change ‘on -> off’ you might be on the safe side because it will not trigger when it goes ‘unavailable -> off’.

In other cases, you might want to achieve exactly that behavior, e.g. when you want to trigger an action when your device comes ‘home’. It might not matter if it the state change is ‘not-home -> home’ or ‘ZoneX -> home’ or ‘anything else -> home’.

That said, if there are truly only two states, i.e. not ‘on’ always means ‘off’, I think it doesn’t matter.

2 Likes