I’d like to have about four basic modes (home, night, away and holiday). Got the mode stuff from here.
For now I would like to switch to home workdays at 6:30 and non workdays at 8:00 o’clock. Would I have to go with two automation rules or could I put this into a single rule?
Actually my automation rules are simple and would like to have them combined to a single rule:
- alias: Set Mode Home Workday
trigger:
platform: time
at: '06:30:00'
condition:
condition: state
entity_id: 'binary_sensor.workday_sensor'
state: 'on'
action:
service: input_boolean.turn_on
entity_id: input_boolean.ha_mode_home
- alias: Set Mode Home No Workday
trigger:
platform: time
at: '08:00:00'
condition:
condition: state
entity_id: 'binary_sensor.workday_sensor'
state: 'off'
action:
service: input_boolean.turn_on
entity_id: input_boolean.ha_mode_home