#Create a condition for state change for "changing from", rather than "changing to"

1 messages · Page 1 of 1 (latest)

stone hollow
#

I'm trying to create a filter on my automation if a state changes, but ignoring if it changes from/to "Unavailable". Creating a condition that a state is "unavailable" is easy (see screenshot), but how do I also add a condition to filter if it changes "from unavailable" ? My device has a habit of becoming unavailable, so just want to filter all state changes that goes to/from unavailable, so I can avoid sending notifications related to it going offline/back online.

broken tendon
#

not_from is an option for a state trigger. Unfortunately not in the UI but you can add it in yaml (and keep the rest in the UI.

Home Assistant

All the different ways how automations can be triggered.