Recorder toggle automation

This commit is contained in:
2026-02-23 01:56:30 -05:00
parent d245b90092
commit e51143f2ba
2 changed files with 50 additions and 0 deletions
+47
View File
@@ -6357,3 +6357,50 @@
data:
hvac_mode: heat
mode: restart
- id: '1771035023213'
alias: Recorder Toggle
description: Toggles the recorder on or off, so we can do database maintenance without
having to shut down Home Assistant
triggers:
- trigger: state
entity_id:
- input_boolean.recorder
from:
- 'off'
to:
- 'on'
id: recorder-on
alias: Recorder On
- trigger: state
entity_id:
- input_boolean.recorder
from:
- 'on'
to:
- 'off'
id: recorder-off
alias: Recorder Off
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- recorder-on
alias: Recorder On
sequence:
- action: recorder.enable
metadata: {}
data: {}
alias: Enable Recorder
- conditions:
- condition: trigger
id:
- recorder-off
alias: Recorder Off
sequence:
- action: recorder.disable
metadata: {}
data: {}
alias: Disable Recorder
mode: restart