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: - action: homeassistant.turn_on entity_id: input_boolean.clint_work_from_home - action: homeassistant.turn_off entity_id: input_boolean.allow_announcements - conditions: - condition: state entity_id: binary_sensor.clint_work_from_home state: "off" sequence: - action: homeassistant.turn_off entity_id: input_boolean.clint_work_from_home - action: homeassistant.turn_on entity_id: input_boolean.allow_announcements