.ha_mcp/logs/mcp_usage.jsonl, automations.yaml
This commit is contained in:
@@ -3248,3 +3248,38 @@
|
||||
target:
|
||||
entity_id: light.playroom_light
|
||||
mode: restart
|
||||
- id: '1786107704090'
|
||||
alias: Count OctoPrint Print Outcomes
|
||||
description: Increments counter.octoprint_successful_prints on PrintDone and counter.octoprint_failed_prints
|
||||
on PrintFailed/PrintCancelled, triggered by sensor.octoprint_last_event state
|
||||
changes.
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: sensor.octoprint_last_event
|
||||
to: PrintDone
|
||||
id: done
|
||||
- trigger: state
|
||||
entity_id: sensor.octoprint_last_event
|
||||
to: PrintFailed
|
||||
id: failed
|
||||
- trigger: state
|
||||
entity_id: sensor.octoprint_last_event
|
||||
to: PrintCancelled
|
||||
id: failed
|
||||
actions:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: done
|
||||
sequence:
|
||||
- action: counter.increment
|
||||
target:
|
||||
entity_id: counter.octoprint_successful_prints
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id: failed
|
||||
sequence:
|
||||
- action: counter.increment
|
||||
target:
|
||||
entity_id: counter.octoprint_failed_prints
|
||||
mode: single
|
||||
|
||||
Reference in New Issue
Block a user