.ha_mcp/logs/mcp_usage.jsonl, automations.yaml
This commit is contained in:
@@ -647,3 +647,5 @@
|
||||
{"timestamp": "2026-08-07T13:01:22.954596+00:00", "tool_name": "ha_config_set_helper", "parameters": {"helper_type": "counter", "name": "OctoPrint Failed Prints", "helper_id": null, "entry_id": null, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "icon": "mdi:printer-3d-off", "area_id": null, "labels": null, "min_value": null, "max_value": null, "step": 1.0, "unit_of_measurement": null, "options": null, "initial": null, "mode": null, "has_date": null, "has_time": null, "restore": true, "duration": null, "monday": null, "tuesday": null, "wednesday": null, "thursday": null, "friday": null, "saturday": null, "sunday": null, "latitude": null, "longitude": null, "radius": null, "passive": null, "user_id": null, "device_trackers": null, "picture": null, "tag_id": null, "description": null, "category": null, "config": null, "wait": true, "action": null, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 30.208110809326172, "success": true, "error_message": null, "response_size_bytes": 363, "user_context": null}
|
||||
{"timestamp": "2026-08-07T13:01:33.969454+00:00", "tool_name": "ha_config_set_helper", "parameters": {"helper_type": "template", "name": "OctoPrint Successful Prints Count", "helper_id": null, "entry_id": null, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "icon": "mdi:printer-3d", "area_id": null, "labels": null, "min_value": null, "max_value": null, "step": null, "unit_of_measurement": null, "options": null, "initial": null, "mode": null, "has_date": null, "has_time": null, "restore": null, "duration": null, "monday": null, "tuesday": null, "wednesday": null, "thursday": null, "friday": null, "saturday": null, "sunday": null, "latitude": null, "longitude": null, "radius": null, "passive": null, "user_id": null, "device_trackers": null, "picture": null, "tag_id": null, "description": null, "category": null, "config": {"next_step_id": "sensor", "state": "{{ states('counter.octoprint_successful_prints') | int(0) }}", "state_class": "total_increasing", "unit_of_measurement": "prints", "availability": "{{ not is_state('counter.octoprint_successful_prints', 'unavailable') }}"}, "wait": true, "action": null, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 217.85330772399902, "success": true, "error_message": null, "response_size_bytes": 510, "user_context": null}
|
||||
{"timestamp": "2026-08-07T13:01:37.391369+00:00", "tool_name": "ha_config_set_helper", "parameters": {"helper_type": "template", "name": "OctoPrint Failed Prints Count", "helper_id": null, "entry_id": null, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "icon": "mdi:printer-3d-off", "area_id": null, "labels": null, "min_value": null, "max_value": null, "step": null, "unit_of_measurement": null, "options": null, "initial": null, "mode": null, "has_date": null, "has_time": null, "restore": null, "duration": null, "monday": null, "tuesday": null, "wednesday": null, "thursday": null, "friday": null, "saturday": null, "sunday": null, "latitude": null, "longitude": null, "radius": null, "passive": null, "user_id": null, "device_trackers": null, "picture": null, "tag_id": null, "description": null, "category": null, "config": {"availability": "{{ not is_state('counter.octoprint_failed_prints', 'unavailable') }}", "next_step_id": "sensor", "state": "{{ states('counter.octoprint_failed_prints') | int(0) }}", "state_class": "total_increasing", "unit_of_measurement": "prints"}, "wait": true, "action": null, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 171.51403427124023, "success": true, "error_message": null, "response_size_bytes": 502, "user_context": null}
|
||||
{"timestamp": "2026-08-07T13:01:44.500374+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"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.", "mode": "single", "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": ["[REDACTED]"], "sequence": ["[REDACTED]"]}, {"conditions": ["[REDACTED]"], "sequence": ["[REDACTED]"]}]}]}, "identifier": null, "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 461.28392219543457, "success": true, "error_message": null, "response_size_bytes": 207, "user_context": null}
|
||||
{"timestamp": "2026-08-07T13:01:50.562774+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "printer-stats", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": "history", "mode": null, "query": null}, "execution_time_ms": 1.9407272338867188, "success": true, "error_message": null, "response_size_bytes": 2998, "user_context": null}
|
||||
|
||||
@@ -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