Hi all,
I am trying to set up an automation that will turn frigate camera recording on/off based on and schedule helper.
this is what I managed:
alias: frigate cam mums on/off - schedule
description: ""
triggers:
- trigger: state
entity_id:
- schedule.mums_cam_record
to: "on"
id: camon
- trigger: state
entity_id:
- schedule.mums_cam_record
to: "off"
id: camoff
conditions:
- condition: state
entity_id: alarm_control_panel.alarmo
state: disarmed
actions:
- choose:
- conditions:
- condition: trigger
id:
- camon
sequence:
- type: turn_on
device_id: b1233ccb79746d389e26b4ae994b229f
entity_id: b4c43c51e5cb52cfc74b0023e2ede93a
domain: switch
- conditions:
- condition: trigger
id:
- camoff
sequence:
- type: turn_off
device_id: b1233ccb79746d389e26b4ae994b229f
entity_id: b4c43c51e5cb52cfc74b0023e2ede93a
domain: switch
mode: single
it only toggles the recording on/off at the time the schedule changes.
It would be good if it could check it periodically and changes (if schedule = on/off then recording = on/off every 5 mins or so)
Any ideas?
Thnx