.ha_mcp/logs/mcp_usage.jsonl, zigbee2mqtt/state.json

This commit is contained in:
Home Assistant Version Control
2026-09-17 14:39:24 +00:00
parent 68f51f590b
commit 6e50f948a4
2 changed files with 14 additions and 12 deletions
+2
View File
@@ -3649,3 +3649,5 @@
{"timestamp": "2026-09-17T14:37:52.230919+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set samples = [{'entity_id': 'input_boolean.3d_printer_running'}, {'entity_id': ['input_boolean.3d_printer_running']}, {'target': {'entity_id': 'input_boolean.3d_printer_running'}}, {'target': {'area_id': 'printer'}}, {'entity_id': 'input_boolean.other'}] %}\n{% for sd in samples %}\n{% set eid = sd.get('entity_id') if sd is mapping else none %}\n{% set tgt = sd.get('target', {}) if sd is mapping else {} %}\n{% set tid = tgt.get('entity_id') if tgt is mapping else none %}\n{% set ns = namespace(hits=[]) %}\n{% for item in [eid, tid] if item %}\n{% if item is string %}{% set ns.hits = ns.hits + [item] %}{% elif item is sequence %}{% set ns.hits = ns.hits + item %}{% endif %}\n{% endfor %}\n{{ sd }} => matched={{ 'input_boolean.3d_printer_running' in ns.hits }}\n{% endfor %}", "timeout": 3, "report_errors": true}, "execution_time_ms": 64.96596336364746, "success": true, "error_message": null, "response_size_bytes": 1258, "user_context": null}
{"timestamp": "2026-09-17T14:38:07.445004+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"actions": [{"action": "input_boolean.turn_off", "target": {"entity_id": "input_boolean.3d_printer_running"}}, {"delay": {"seconds": 2}}, {"action": "input_boolean.turn_on", "target": {"entity_id": "input_boolean.3d_printer_running"}}], "alias": "3D Printer Running - Reset Stale Boolean", "conditions": [{"condition": "state", "entity_id": "input_boolean.3d_printer_running", "state": "on"}, {"condition": "template", "value_template": "{% set sd = trigger.event.data.get('service_data', {}) %}\n{% set eid = sd.get('entity_id') %}\n{% set tgt = sd.get('target', {}) if sd else {} %}\n{% set tid = tgt.get('entity_id') %}\n{% set ns = namespace(hits=[]) %}\n{% for item in [eid, tid] if item %}\n{% if item is string %}{% set ns.hits = ns.hits + [item] %}{% elif item is sequence %}{% set ns.hits = ns.hits + item %}{% endif %}\n{% endfor %}\n{{ 'input_boolean.3d_printer_running' in ns.hits and (now() - states['input_boolean.3d_printer_running'].last_changed).total_seconds() > 5 }}"}], "description": "If input_boolean.3d_printer_running is commanded on while already on (e.g. after a printer crash left it on, so no off->on transition fires the main automation), force a quick off->on bounce so the main automation runs its print-started actions. The >5s stale check prevents responding to its own bounce.", "mode": "single", "triggers": [{"event_data": {"domain": "input_boolean", "service": "turn_on"}, "event_type": "call_service", "id": "cmd_on", "trigger": "event"}]}, "identifier": null, "python_transform": null, "config_hash": null, "take_control_of_blueprint": false, "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 4352.312088012695, "success": true, "error_message": null, "response_size_bytes": 1964, "user_context": null}
{"timestamp": "2026-09-17T14:38:26.587123+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "automation.3d_printer_running_reset_stale_boolean", "fields": ["state"], "attribute_keys": null}, "execution_time_ms": 76.33519172668457, "success": true, "error_message": null, "response_size_bytes": 366, "user_context": null}
{"timestamp": "2026-09-17T14:39:18.412905+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "input_boolean.3d_printer_running", "fields": ["state", "last_changed"], "attribute_keys": null}, "execution_time_ms": 10.811090469360352, "success": true, "error_message": null, "response_size_bytes": 418, "user_context": null}
{"timestamp": "2026-09-17T14:39:23.688234+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "input_boolean", "service": "turn_on", "entity_id": "input_boolean.3d_printer_running", "data": null, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 58.98427963256836, "success": true, "error_message": null, "response_size_bytes": 394, "user_context": null}
+12 -12
View File
@@ -27,8 +27,8 @@
"led_brightness": 100,
"countdown_to_turn_off": 0,
"countdown_to_turn_on": 0,
"power": 2.4,
"current": 0.1,
"power": 2,
"current": 0.09,
"energy": 43.29,
"power_factor": 0.18,
"update": {
@@ -45,10 +45,10 @@
"state": "ON",
"led_brightness": 100,
"countdown_to_turn_off": 0,
"voltage": 117.9,
"voltage": 118.4,
"countdown_to_turn_on": 0,
"energy": 84.59,
"power_factor": 0.42,
"energy": 84.6,
"power_factor": 0.2,
"ac_frequency": 60,
"update": {
"state": "idle",
@@ -58,8 +58,8 @@
"latest_release_notes": null
},
"linkquality": 98,
"power": 84.2,
"current": 0.84,
"power": 0.2,
"current": 0.01,
"power_on_behavior": "on"
},
"0xb40e060fffe031e3": {
@@ -77,8 +77,8 @@
"voltage": 117.3,
"state": "ON",
"ac_frequency": 60,
"energy": 172.89,
"power": 101.4,
"energy": 172.9,
"power": 100.6,
"current": 0.91,
"power_factor": 0.94,
"update": {
@@ -98,8 +98,8 @@
"voltage": 118,
"energy": 84.77,
"state": "ON",
"power": 85.4,
"current": 0.77,
"power": 68.2,
"current": 0.69,
"ac_frequency": 60,
"power_factor": 0.83,
"update": {
@@ -228,7 +228,7 @@
"tamper": false,
"battery_low": false,
"linkquality": 98,
"voltage": 3100,
"voltage": 3000,
"update": {
"state": "idle",
"installed_version": 79,