.ha_mcp/logs/mcp_usage.jsonl, zigbee2mqtt/state.json
This commit is contained in:
@@ -4589,3 +4589,4 @@
|
||||
{"timestamp": "2026-10-15T14:52:06.777334+00:00", "tool_name": "ha_list_services", "parameters": {"domain": "input_text", "query": null, "limit": 50, "offset": 0, "detail_level": "summary", "service_fields": null, "fields": ["services"]}, "execution_time_ms": 30.26890754699707, "success": true, "error_message": null, "response_size_bytes": 737, "user_context": null}
|
||||
{"timestamp": "2026-10-15T14:53:44.343382+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "SparkX i7 - Low spool alert", "description": "Periodic scan of the CFS Lite slots (per-slot Spoolman location). Alerts once when a loaded spool drops below 100 g and again when it drops below 25 g. The 4-digit band string in input_text.sparkx_i7_low_spool_notified (slots 1-4, 0=ok, 1=<100 g, 2=<25 g) prevents repeat alerts.", "triggers": [{"trigger": "time_pattern", "minutes": "/15"}], "conditions": [], "actions": [{"variables": {"bands": "{% set prev = states('input_text.sparkx_i7_low_spool_notified') | default('0000', true) %}{% set ns = namespace(s='') %}{% for n in ['1','2','3','4'] %}{% set sp = namespace(id='', rem=-1) %}{% for e in integration_entities('spoolman') if e.endswith('_color_hex') %}{% if sp.id == '' and (state_attr(e[:-10],'location') | default('', true) | lower) == ('cfs lite ' ~ n) %}{% set sp.id = e[:-10] %}{% set sp.rem = states(e[:-10]) | float(-1) %}{% endif %}{% endfor %}{% set band = 2 if (sp.rem >= 0 and sp.rem < 25) else (1 if (sp.rem >= 0 and sp.rem < 100) else 0) %}{% set ns.s = ns.s ~ band %}{% endfor %}{{ ns.s }}", "report": "{% set prev = states('input_text.sparkx_i7_low_spool_notified') | default('0000', true) %}{% set ns = namespace(low=[]) %}{% for n in ['1','2','3','4'] %}{% set sp = namespace(id='', rem=-1) %}{% for e in integration_entities('spoolman') if e.endswith('_color_hex') %}{% if sp.id == '' and (state_attr(e[:-10],'location') | default('', true) | lower) == ('cfs lite ' ~ n) %}{% set sp.id = e[:-10] %}{% set sp.rem = states(e[:-10]) | float(-1) %}{% endif %}{% endfor %}{% set band = 2 if (sp.rem >= 0 and sp.rem < 25) else (1 if (sp.rem >= 0 and sp.rem < 100) else 0) %}{% set oldb = prev[n | int - 1] | int(-1) %}{% if band > oldb and band > 0 %}{% set cname = states('sensor.sparkx_i7_slot_' ~ n ~ '_color_name') %}{% set cname = cname if cname not in ['','unknown','unavailable'] else ('slot ' ~ n) %}{% set tag = ' - critically low' if band == 2 else '' %}{% set ns.low = ns.low + ['Slot ' ~ n ~ ' ' ~ cname ~ ': ' ~ (sp.rem | round(0) | int) ~ ' g left' ~ tag] %}{% endif %}{% endfor %}{% if ns.low %}Low filament on the SparkX i7 CFS Lite:\\n- {{ ns.low | join('\\n- ') }}{% endif %}"}}, {"if": [{"condition": "template", "value_template": "{{ report | trim != '' }}"}], "then": [{"action": "notify.persistent_notification", "data": {"title": "[REDACTED]", "message": "[REDACTED]"}}, {"action": "notify.mobile_app_francos_ipad", "data": {"title": "[REDACTED]", "message": "[REDACTED]"}}, {"action": "notify.mobile_app_sm_f956w", "data": {"title": "[REDACTED]", "message": "[REDACTED]"}}]}, {"action": "input_text.set_value", "target": {"entity_id": "input_text.sparkx_i7_low_spool_notified"}, "data": {"value": "{{ bands }}"}}], "mode": "single"}, "identifier": null, "python_transform": null, "config_hash": null, "take_control_of_blueprint": false, "category": null, "wait": true, "enabled": null, "run_actions": false, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 646.2757587432861, "success": true, "error_message": null, "response_size_bytes": 1712, "user_context": null}
|
||||
{"timestamp": "2026-10-15T14:54:06.256077+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.sparkx_i7_low_spool_alert"}, "execution_time_ms": 1452.3441791534424, "success": true, "error_message": null, "response_size_bytes": 2946, "user_context": null}
|
||||
{"timestamp": "2026-10-15T15:06:25.350013+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.sparkx_i7_low_spool_alert", "python_transform": null, "config_hash": null, "take_control_of_blueprint": false, "category": null, "wait": true, "enabled": null, "run_actions": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 166.2442684173584, "success": true, "error_message": null, "response_size_bytes": 126, "user_context": null}
|
||||
|
||||
+17
-17
@@ -4,7 +4,7 @@
|
||||
"state": "ON",
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"voltage": 120.3,
|
||||
"voltage": 119.8,
|
||||
"countdown_to_turn_on": 0,
|
||||
"ac_frequency": 60,
|
||||
"power_factor": 0.14,
|
||||
@@ -48,7 +48,7 @@
|
||||
"voltage": 119.5,
|
||||
"countdown_to_turn_on": 0,
|
||||
"energy": 109.58,
|
||||
"power_factor": 0.31,
|
||||
"power_factor": 0.9,
|
||||
"ac_frequency": 60,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
@@ -58,8 +58,8 @@
|
||||
"latest_release_notes": null
|
||||
},
|
||||
"linkquality": 145,
|
||||
"power": 84.2,
|
||||
"current": 0.8,
|
||||
"power": 104.3,
|
||||
"current": 0.95,
|
||||
"power_on_behavior": "on"
|
||||
},
|
||||
"0xb40e060fffe031e3": {
|
||||
@@ -74,13 +74,13 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"voltage": 118.9,
|
||||
"voltage": 118.8,
|
||||
"state": "ON",
|
||||
"ac_frequency": 60,
|
||||
"energy": 222.62,
|
||||
"power": 0.8,
|
||||
"current": 0.05,
|
||||
"power_factor": 0.39,
|
||||
"energy": 222.63,
|
||||
"power": 101.6,
|
||||
"current": 0.89,
|
||||
"power_factor": 0.93,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
"installed_version": 268513381,
|
||||
@@ -95,13 +95,13 @@
|
||||
"led_brightness": 100,
|
||||
"countdown_to_turn_off": 0,
|
||||
"countdown_to_turn_on": 0,
|
||||
"voltage": 119.3,
|
||||
"energy": 104.23,
|
||||
"voltage": 120.3,
|
||||
"energy": 104.24,
|
||||
"state": "ON",
|
||||
"power": 40.7,
|
||||
"current": 0.49,
|
||||
"power": 40.1,
|
||||
"current": 0.44,
|
||||
"ac_frequency": 60,
|
||||
"power_factor": 0.77,
|
||||
"power_factor": 0.72,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
"installed_version": 268513381,
|
||||
@@ -114,12 +114,12 @@
|
||||
},
|
||||
"0xffffb40e060895b3": {
|
||||
"state": "ON",
|
||||
"voltage": 119.7,
|
||||
"voltage": 119.6,
|
||||
"ac_frequency": 60,
|
||||
"energy": 15.31,
|
||||
"current": 0.01,
|
||||
"power": 0.1,
|
||||
"power_factor": 0.2,
|
||||
"power_factor": 0.22,
|
||||
"linkquality": 116,
|
||||
"update": {
|
||||
"state": "idle",
|
||||
@@ -171,7 +171,7 @@
|
||||
},
|
||||
"0xa4c1380d0679ffff": {
|
||||
"battery": 100,
|
||||
"temperature": 10.9,
|
||||
"temperature": 10.8,
|
||||
"temperature_units": "celsius",
|
||||
"temperature_calibration": 0,
|
||||
"update": {
|
||||
|
||||
Reference in New Issue
Block a user