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

This commit is contained in:
Home Assistant Version Control committed 2026-10-15 20:39:46 +00:00
1 parent 36dc013dd6
commit dd710dc2e4
2 files changed
+24 -23

No files matched your search

+1
View File
@@ -4677,3 +4677,4 @@
{"timestamp": "2026-10-15T18:53:39.341295+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "sparkx-i7", "config": null, "python_transform": "for n in ['1','2','3','4']: b = config['views'][2]['sections'][0]['cards'][int(n)+1]; old = \"{% if states('sensor.sparkx_i7_print_status') in ['printing', 'paused'] %}• This print so far: {{ (states('input_number.sparkx_i7_slot_\" + n + \"_grams') | float(0)) | round(1) }} g{% else %}• Last print: {{ (states('input_number.sparkx_i7_slot_\" + n + \"_grams') | float(0)) | round(1) }} g{% endif %}\"; new = \"{% if states('sensor.sparkx_i7_print_status') in ['printing', 'paused'] %}{% set gcm = states('input_number.sparkx_i7_filament_g_cm') | float(0.0298) %}{% set cur = states('sensor.sparkx_i7_used_material_length') | float(0) %}{% set ck = states('input_number.sparkx_i7_spoolman_length_checkpoint') | float(0) %}{% set booked = states('input_number.sparkx_i7_slot_\" + n + \"_grams') | float(0) %}{% set live = booked + ((([cur - ck, 0] | max) * gcm) if states('sensor.sparkx_i7_active_filament_slot') == 'box_1_slot_\" + n + \"' else 0) %}• This print so far: {{ live | round(1) }} g{% else %}• Last print: {{ (states('input_number.sparkx_i7_slot_\" + n + \"_grams') | float(0)) | round(1) }} g{% endif %}\"; b['secondary'] = b['secondary'].replace(old, new)", "config_hash": "4b14c852ae9f72b1", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null, "patch": null}, "execution_time_ms": 6835.304021835327, "success": true, "error_message": null, "response_size_bytes": 33241, "user_context": null}
{"timestamp": "2026-10-15T18:55:20.594952+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "sparkx-i7", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "query": "== 'box_1_slot_", "describe": false}, "execution_time_ms": 26.458263397216797, "success": true, "error_message": null, "response_size_bytes": 7766, "user_context": null}
{"timestamp": "2026-10-15T18:55:20.599956+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% if states('sensor.sparkx_i7_print_status') in ['printing', 'paused'] %}{% set gcm = states('input_number.sparkx_i7_filament_g_cm') | float(0.0298) %}{% set cur = states('sensor.sparkx_i7_used_material_length') | float(0) %}{% set ck = states('input_number.sparkx_i7_spoolman_length_checkpoint') | float(0) %}{% set booked = states('input_number.sparkx_i7_slot_1_grams') | float(0) %}{% set live = booked + ((([cur - ck, 0] | max) * gcm) if states('sensor.sparkx_i7_active_filament_slot') == 'box_1_slot_1' else 0) %}• This print so far: {{ live | round(1) }} g{% else %}• Last print: {{ (states('input_number.sparkx_i7_slot_1_grams') | float(0)) | round(1) }} g{% endif %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 26.5657901763916, "success": true, "error_message": null, "response_size_bytes": 1075, "user_context": null}
{"timestamp": "2026-10-15T20:39:39.628727+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% for pair in [['1','9'],['2','4'],['3','5'],['4','8']] %}{% set n = pair[0] %}{% set e = 'sensor.spoolman_spool_' ~ pair[1] %}{% set hex = state_attr(e, 'filament_color_hex') | default('44739e') %}{% set hc = ('#' ~ hex) if not hex.startswith('#') else hex %}{% set r = hc[1:3] | int(0, 16) %}{% set g = hc[3:5] | int(0, 16) %}{% set b = hc[5:7] | int(0, 16) %}{% set lum = (0.2126 * r + 0.7152 * g + 0.0722 * b) %}slot{{ n }} hex={{ hc }} r={{ r }} g={{ g }} b={{ b }} lum={{ lum | round(0) }} text={{ 'dark #111 (ok)' if lum > 170 else 'WHITE needed' }}\n{% endfor %}", "condition": null, "variables": null, "strict": false, "timeout": 3, "report_errors": true}, "execution_time_ms": 23.965835571289062, "success": true, "error_message": null, "response_size_bytes": 1037, "user_context": null}