.ha_mcp/logs/mcp_usage.jsonl, zigbee2mqtt/state.json
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user