initial push

This commit is contained in:
CeeWeasel
2024-04-14 14:08:56 -04:00
commit 53bf393d14
1111 changed files with 71730 additions and 0 deletions
+109
View File
@@ -0,0 +1,109 @@
alias: Frigate Snapshots
id: automation_frigate_snapshots
mode: restart
trigger:
- platform: homeassistant
event: start
- id: automatic
platform: time_pattern
minutes: "/10"
- id: boolean
platform: state
entity_id: input_boolean.debug_snapshots
- id: indoors
platform: state
entity_id: input_boolean.indoor_snapshots
- id: outdoors
platform: state
entity_id: input_boolean.outdoor_snapshots
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.debug_snapshots
state: 'on'
sequence:
- service: switch.turn_on
data: {}
target:
entity_id:
- switch.frigate_cam01_snapshots
- switch.frigate_cam03_snapshots
- switch.frigate_cam04_snapshots
- switch.frigate_cam06_snapshots
- switch.frigate_cam07_snapshots
- switch.frigate_cam08_snapshots
- switch.frigate_cam12_snapshots
- switch.frigate_cam13_snapshots
- switch.frigate_cam14_snapshots
- switch.frigate_cam18_snapshots
- switch.frigate_cam19_snapshots
- choose:
- conditions:
- condition: state
entity_id: input_boolean.indoor_snapshots
state: 'on'
sequence:
- service: switch.turn_on
data: {}
target:
entity_id:
- switch.frigate_cam01_snapshots
- switch.frigate_cam03_snapshots
- switch.frigate_cam06_snapshots
- switch.frigate_cam07_snapshots
- switch.frigate_cam08_snapshots
- switch.frigate_cam12_snapshots
- switch.frigate_cam13_snapshots
- conditions:
- condition: state
entity_id: input_boolean.indoor_snapshots
state: 'off'
sequence:
- service: switch.turn_off
data: {}
target:
entity_id:
- switch.frigate_cam01_snapshots
- switch.frigate_cam03_snapshots
- switch.frigate_cam06_snapshots
- switch.frigate_cam07_snapshots
- switch.frigate_cam08_snapshots
- switch.frigate_cam12_snapshots
- switch.frigate_cam13_snapshots
- choose:
- conditions:
- condition: state
entity_id: input_boolean.outdoor_snapshots
state: 'on'
sequence:
- service: switch.turn_on
data: {}
target:
entity_id:
- switch.frigate_cam04_snapshots
- switch.frigate_cam14_snapshots
- switch.frigate_cam18_snapshots
- switch.frigate_cam19_snapshots
- conditions:
- condition: state
entity_id: input_boolean.outdoor_snapshots
state: 'off'
sequence:
- service: switch.turn_off
data: {}
target:
entity_id:
- switch.frigate_cam04_snapshots
- switch.frigate_cam14_snapshots
- switch.frigate_cam18_snapshots
- switch.frigate_cam19_snapshots