mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
alias: Camera07 Preset
|
|
id: automation_camera07_preset
|
|
mode: restart
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: input_select.camera_07
|
|
|
|
- platform: homeassistant
|
|
event: start
|
|
|
|
- platform: time_pattern
|
|
minutes: "/30"
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.camera_07
|
|
state: 'Static'
|
|
sequence:
|
|
- service: shell_command.master_bedroom_right_preset_2
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.camera_07
|
|
state: 'Door'
|
|
sequence:
|
|
- service: shell_command.master_bedroom_right_preset_1
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.camera_07
|
|
state: 'Bed'
|
|
sequence:
|
|
- service: shell_command.master_bedroom_right_preset_3
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.camera_07
|
|
state: 'Window'
|
|
sequence:
|
|
- service: shell_command.master_bedroom_right_preset_2
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.camera_07
|
|
state: 'Floor'
|
|
sequence:
|
|
- service: shell_command.master_bedroom_right_preset_4
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_select.camera_07
|
|
state: 'Privacy'
|
|
sequence:
|
|
- service: shell_command.master_bedroom_right_preset_5 |