mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 10:30:14 -04:00
109 lines
3.3 KiB
YAML
109 lines
3.3 KiB
YAML
alias: Frigate Recordings
|
|
id: automation_frigate_recordings
|
|
mode: restart
|
|
|
|
trigger:
|
|
- platform: homeassistant
|
|
event: start
|
|
|
|
- id: automatic
|
|
platform: time_pattern
|
|
minutes: "/10"
|
|
|
|
- id: boolean
|
|
platform: state
|
|
entity_id: input_boolean.debug_recordings
|
|
|
|
- id: indoors
|
|
platform: state
|
|
entity_id: input_boolean.indoor_recordings
|
|
|
|
- id: outdoors
|
|
platform: state
|
|
entity_id: input_boolean.outdoor_recordings
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.debug_recordings
|
|
state: "on"
|
|
sequence:
|
|
- action: switch.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.frigate_cam01_recordings
|
|
- switch.frigate_cam03_recordings
|
|
- switch.frigate_cam04_recordings
|
|
- switch.frigate_cam06_recordings
|
|
- switch.frigate_cam07_recordings
|
|
- switch.frigate_cam08_recordings
|
|
- switch.frigate_cam12_recordings
|
|
# - switch.frigate_cam13_recordings
|
|
# - switch.frigate_cam14_recordings
|
|
- switch.frigate_cam18_recordings
|
|
- switch.frigate_cam19_recordings
|
|
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.indoor_recordings
|
|
state: "on"
|
|
sequence:
|
|
- action: switch.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.frigate_cam01_recordings
|
|
- switch.frigate_cam03_recordings
|
|
- switch.frigate_cam06_recordings
|
|
- switch.frigate_cam07_recordings
|
|
- switch.frigate_cam08_recordings
|
|
- switch.frigate_cam12_recordings
|
|
# - switch.frigate_cam13_recordings
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.indoor_recordings
|
|
state: "off"
|
|
sequence:
|
|
- action: switch.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.frigate_cam01_recordings
|
|
- switch.frigate_cam03_recordings
|
|
- switch.frigate_cam06_recordings
|
|
- switch.frigate_cam07_recordings
|
|
- switch.frigate_cam08_recordings
|
|
- switch.frigate_cam12_recordings
|
|
# - switch.frigate_cam13_recordings
|
|
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.outdoor_recordings
|
|
state: "on"
|
|
sequence:
|
|
- action: switch.turn_on
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.frigate_cam04_recordings
|
|
# - switch.frigate_cam14_recordings
|
|
- switch.frigate_cam18_recordings
|
|
- switch.frigate_cam19_recordings
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.outdoor_recordings
|
|
state: "off"
|
|
sequence:
|
|
- action: switch.turn_off
|
|
data: {}
|
|
target:
|
|
entity_id:
|
|
- switch.frigate_cam04_recordings
|
|
# - switch.frigate_cam14_recordings
|
|
- switch.frigate_cam18_recordings
|
|
- switch.frigate_cam19_recordings
|