Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 107423

Triggering on (some) entity state changes

$
0
0

I have an input_select sensor that can have one of a (small) series of values. For the sake of simplicity, assume states A, B, C, and Off. I want to run an action when the entity has been Off for 10 minutes, after having been in one of the other states.

The trivial approach:

platform: state
entity_id: input_select.xxx
to: 'Off'
for:
  hours: 0
  minutes: 10
  seconds: 0

works, but repeats every 10 minutes after state goes Off.

I can specify a From-value in the trigger, but I would like the From to cover all allowable values, or all values except Off.

Is there a way to obtain this?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 107423

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>