mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
32 lines
915 B
YAML
32 lines
915 B
YAML
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
|