I have a doorbell automation that notifies me via my Sonos speakers (usually). Now I wanted to send a notification on my phone when for some reason the way via my speakers do not work.
My idea was to have an input_boolean that I can switch on, if I like to get mobile notifications. However I cannot use the input_boolean in an if statement. How can I achieve this?
#Using input boolean in automation
1 messages · Page 1 of 1 (latest)
An if-else or select block with an entity state condition could do that.
if:
- condition: state
entity_id: input_boolean.magic_boolean
state:
- "on"
then:
- action: action.do_something
else:
- action: action.do_something_else
Ok, I tried via the (new) ui and that did not offer an obvious solution.
I though I could use switch.is_on..
You find it unter Conditions - Entity - State