I was wondering if it were possible to have automations be able to run different actions based on if it passes the condition or not. This would be ala if-else side of things. The trigger would still set off the automation, but it would be able to run different things on if the criteria comes back true or false. Here’s an example of what I’m talking about.
- alias: Turn off away mode
trigger:
platform: state
entity_id: group.residents
to: 'home'
condition:
condition: and
conditions:
- condition: time
after: '00:06:30'
- condition: time
before: '22:00:00'
action:
service: homeassistant.turn_on
entity_id: script.home_mode
action_failed:
service: homeassistant.turn_on
entity_id: script.home_mode_night
I have no clue how easy or difficult this would be, but it would sure make automations a little less cluttered. You would need half as many automations in some instances than before. And it still keeps things somewhat simple, so it’s not difficult for people to set up.