alias: Clint WFH id: automation_clint_wfh mode: restart #description: trigger: - platform: state entity_id: binary_sensor.clint_work_from_home - platform: homeassistant event: start action: - choose: - conditions: - condition: state entity_id: binary_sensor.clint_work_from_home state: 'on' sequence: - service: homeassistant.turn_on entity_id: input_boolean.clint_work_from_home - conditions: - condition: state entity_id: binary_sensor.clint_work_from_home state: 'off' sequence: - service: homeassistant.turn_off entity_id: input_boolean.clint_work_from_home