.ha_mcp/logs/mcp_usage.jsonl, automations.yaml
This commit is contained in:
@@ -1895,3 +1895,4 @@
|
|||||||
{"timestamp": "2026-08-24T00:54:05.734974+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "automation.alert_thread_node_offline", "fields": ["state", "attributes"], "attribute_keys": ["last_triggered", "friendly_name"]}, "execution_time_ms": 15.182018280029297, "success": true, "error_message": null, "response_size_bytes": 483, "user_context": null}
|
{"timestamp": "2026-08-24T00:54:05.734974+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "automation.alert_thread_node_offline", "fields": ["state", "attributes"], "attribute_keys": ["last_triggered", "friendly_name"]}, "execution_time_ms": 15.182018280029297, "success": true, "error_message": null, "response_size_bytes": 483, "user_context": null}
|
||||||
{"timestamp": "2026-08-24T16:35:02.619391+00:00", "tool_name": "ha_search", "parameters": {"query": "3D Printer Running", "domain_filter": null, "area_filter": null, "search_types": ["automation"], "limit": 10, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": null, "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 9030.248165130615, "success": true, "error_message": null, "response_size_bytes": 1129, "user_context": null}
|
{"timestamp": "2026-08-24T16:35:02.619391+00:00", "tool_name": "ha_search", "parameters": {"query": "3D Printer Running", "domain_filter": null, "area_filter": null, "search_types": ["automation"], "limit": 10, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": null, "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 9030.248165130615, "success": true, "error_message": null, "response_size_bytes": 1129, "user_context": null}
|
||||||
{"timestamp": "2026-08-24T16:35:11.123052+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.3d_printer_running_playroom_light_basement_heat"}, "execution_time_ms": 99.14183616638184, "success": true, "error_message": null, "response_size_bytes": 1678, "user_context": null}
|
{"timestamp": "2026-08-24T16:35:11.123052+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.3d_printer_running_playroom_light_basement_heat"}, "execution_time_ms": 99.14183616638184, "success": true, "error_message": null, "response_size_bytes": 1678, "user_context": null}
|
||||||
|
{"timestamp": "2026-08-24T16:37:56.597791+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.3d_printer_running_playroom_light_basement_heat", "python_transform": "for b in config['actions'][0]['choose']:\n if b['conditions'][0].get('id') == 'printer_stopped':\n lamp_seq = b['sequence']\n b['sequence'] = [{'parallel': [\n {'sequence': lamp_seq},\n {'sequence': [\n {'delay': {'hours': 1}},\n {'action': 'switch.turn_off', 'target': {'entity_id': 'switch.filter'}}\n ]}\n ]}]\nconfig['description'] = 'When the 3D printer running helper turns on (print started), set the 3D printer lights to bright white, turn on the bedroom lamp, set the basement to 22 degrees C, and turn on the filter. When it turns off (print ended), set the 3D printer lights to light blue at 25%, turn off the bedroom lamp after 10 minutes, and turn off the filter after 1 hour.'", "config_hash": "f3bc8f346ca90ec2", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 1400.2737998962402, "success": true, "error_message": null, "response_size_bytes": 1165, "user_context": null}
|
||||||
|
|||||||
+26
-17
@@ -3194,9 +3194,10 @@
|
|||||||
- id: '1786068561172'
|
- id: '1786068561172'
|
||||||
alias: 3D Printer Running - Playroom Light & Basement Heat
|
alias: 3D Printer Running - Playroom Light & Basement Heat
|
||||||
description: When the 3D printer running helper turns on (print started), set the
|
description: When the 3D printer running helper turns on (print started), set the
|
||||||
3D printer lights to bright white, turn on the bedroom lamp, and set the basement
|
3D printer lights to bright white, turn on the bedroom lamp, set the basement
|
||||||
to 22 degrees C. When it turns off (print ended), set the 3D printer lights to
|
to 22 degrees C, and turn on the filter. When it turns off (print ended), set
|
||||||
light blue at 25% and turn off the bedroom lamp after 10 minutes.
|
the 3D printer lights to light blue at 25%, turn off the bedroom lamp after 10
|
||||||
|
minutes, and turn off the filter after 1 hour.
|
||||||
triggers:
|
triggers:
|
||||||
- trigger: state
|
- trigger: state
|
||||||
entity_id: input_boolean.3d_printer_running
|
entity_id: input_boolean.3d_printer_running
|
||||||
@@ -3237,20 +3238,28 @@
|
|||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: printer_stopped
|
id: printer_stopped
|
||||||
sequence:
|
sequence:
|
||||||
- action: light.turn_on
|
- parallel:
|
||||||
target:
|
- sequence:
|
||||||
entity_id: light.3d_printer_lights
|
- action: light.turn_on
|
||||||
data:
|
target:
|
||||||
brightness_pct: 25
|
entity_id: light.3d_printer_lights
|
||||||
rgb_color:
|
data:
|
||||||
- 173
|
brightness_pct: 25
|
||||||
- 216
|
rgb_color:
|
||||||
- 230
|
- 173
|
||||||
- delay:
|
- 216
|
||||||
minutes: 10
|
- 230
|
||||||
- action: light.turn_off
|
- delay:
|
||||||
target:
|
minutes: 10
|
||||||
entity_id: light.bedroom_lamp
|
- action: light.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: light.bedroom_lamp
|
||||||
|
- sequence:
|
||||||
|
- delay:
|
||||||
|
hours: 1
|
||||||
|
- action: switch.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: switch.filter
|
||||||
mode: restart
|
mode: restart
|
||||||
- id: '1786107704090'
|
- id: '1786107704090'
|
||||||
alias: Count OctoPrint Print Outcomes
|
alias: Count OctoPrint Print Outcomes
|
||||||
|
|||||||
Reference in New Issue
Block a user