1
0
ansible-home-assistant/scripts/11.cctv.yaml
2022-12-15 00:33:49 +01:00

34 lines
857 B
YAML

cctv_on:
alias: CCTV on
sequence:
- service: switch.turn_on
target:
entity_id:
- switch.usb_switch_3
- service: switch.turn_on
target:
entity_id:
- switch.living_room_recordings
- switch.living_room_snapshots
- switch.living_room_detect
- switch.hallway_recordings
- switch.hallway_snapshots
- switch.hallway_detect
cctv_off:
alias: CCTV off
sequence:
- service: switch.turn_off
target:
entity_id:
- switch.usb_switch_3
- service: switch.turn_off
target:
entity_id:
- switch.living_room_recordings
- switch.living_room_snapshots
- switch.living_room_detect
- switch.hallway_recordings
- switch.hallway_snapshots
- switch.hallway_detect