3 files
This commit is contained in:
1 parent
7663ac9d5d
commit
5c2be30851
3 files changed
+502
-4
No files matched your search
@@ -4769,3 +4769,4 @@
|
||||
{"timestamp": "2026-10-16T20:14:13.221988+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "3d-printer-cellphone", "config": null, "python_transform": "# Replace the horizontal-stack we just inserted with minimal text-only grams display\ncards = config['views'][0]['sections'][0]['cards']\n# Find the first horizontal-stack we added (index 1) and replace it\nif len(cards) > 1 and cards[1].get('type') == 'horizontal-stack':\n cards[1] = {\n \"type\": \"horizontal-stack\",\n \"grid_options\": {\"columns\": \"full\"},\n \"cards\": [\n {\n \"type\": \"custom:mushroom-template-card\",\n \"entity\": \"sensor.sparkx_i7_cfs_box_1_slot_1_color\",\n \"name\": \"\",\n \"icon\": \"mdi:weight-gram\",\n \"multiline_secondary\": False,\n \"primary\": \"{% 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) %}{{ live | round(1) }} g{% else %}{{ (states('input_number.sparkx_i7_slot_1_grams') | float(0)) | round(1) }} g{% endif %}\",\n \"secondary\": \"\"\n },\n {\n \"type\": \"custom:mushroom-template-card\",\n \"entity\": \"sensor.sparkx_i7_cfs_box_1_slot_2_color\",\n \"name\": \"\",\n \"icon\": \"mdi:weight-gram\",\n \"multiline_secondary\": False,\n \"primary\": \"{% 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_2_grams') | float(0) %}{% set live = booked + ((([cur - ck, 0] | max) * gcm) if states('sensor.sparkx_i7_active_filament_slot') == 'box_1_slot_2' else 0) %}{{ live | round(1) }} g{% else %}{{ (states('input_number.sparkx_i7_slot_2_grams') | float(0)) | round(1) }} g{% endif %}\",\n \"secondary\": \"\"\n },\n {\n \"type\": \"custom:mushroom-template-card\",\n \"entity\": \"sensor.sparkx_i7_cfs_box_1_slot_3_color\",\n \"name\": \"\",\n \"icon\": \"mdi:weight-gram\",\n \"multiline_secondary\": False,\n \"primary\": \"{% 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_3_grams') | float(0) %}{% set live = booked + ((([cur - ck, 0] | max) * gcm) if states('sensor.sparkx_i7_active_filament_slot') == 'box_1_slot_3' else 0) %}{{ live | round(1) }} g{% else %}{{ (states('input_number.sparkx_i7_slot_3_grams') | float(0)) | round(1) }} g{% endif %}\",\n \"secondary\": \"\"\n },\n {\n \"type\": \"custom:mushroom-template-card\",\n \"entity\": \"sensor.sparkx_i7_cfs_box_1_slot_4_color\",\n \"name\": \"\",\n \"icon\": \"mdi:weight-gram\",\n \"multiline_secondary\": False,\n \"primary\": \"{% 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_4_grams') | float(0) %}{% set live = booked + ((([cur - ck, 0] | max) * gcm) if states('sensor.sparkx_i7_active_filament_slot') == 'box_1_slot_4' else 0) %}{{ live | round(1) }} g{% else %}{{ (states('input_number.sparkx_i7_slot_4_grams') | float(0)) | round(1) }} g{% endif %}\",\n \"secondary\": \"\"\n }\n ]\n }\nconfig['views'][0]['sections'][0]['cards'] = cards", "config_hash": "940e1d23c76c52b1", "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": 29015.868186950684, "success": false, "error_message": "{\n Line truncated
|
||||
{"timestamp": "2026-10-16T20:14:18.087387+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "3d-printer-cellphone", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": null, "query": null, "describe": false}, "execution_time_ms": 381.655216217041, "success": true, "error_message": null, "response_size_bytes": 22882, "user_context": null}
|
||||
{"timestamp": "2026-10-16T20:15:14.313552+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "automation.grafana_colour_sync_cfs_lite_slots", "fields": ["state", "attributes"], "attribute_keys": ["last_triggered", "current"]}, "execution_time_ms": 2.0055770874023438, "success": true, "error_message": null, "response_size_bytes": 450, "user_context": null}
|
||||
{"timestamp": "2026-10-16T20:16:21.993386+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "3d-printer-cellphone", "config": null, "python_transform": "cards = config['views'][0]['sections'][0]['cards']\nif len(cards) > 1 and cards[1].get('type') == 'horizontal-stack':\n cards[1] = {\n \"type\": \"horizontal-stack\",\n \"grid_options\": {\"columns\": \"full\"},\n \"cards\": [\n {\n \"type\": \"custom:mushroom-template-card\",\n \"entity\": \"sensor.sparkx_i7_cfs_box_1_slot_1_color\",\n \"name\": \"\",\n \"icon\": \"none\",\n \"multiline_secondary\": False,\n \"primary\": \"{% 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) %}{{ live | round(1) }} g{% else %}{{ (states('input_number.sparkx_i7_slot_1_grams') | float(0)) | round(1) }} g{% endif %}\",\n \"secondary\": \"\"\n },\n {\n \"type\": \"custom:mushroom-template-card\",\n \"entity\": \"sensor.sparkx_i7_cfs_box_1_slot_2_color\",\n \"name\": \"\",\n \"icon\": \"none\",\n \"multiline_secondary\": False,\n \"primary\": \"{% 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_2_grams') | float(0) %}{% set live = booked + ((([cur - ck, 0] | max) * gcm) if states('sensor.sparkx_i7_active_filament_slot') == 'box_1_slot_2' else 0) %}{{ live | round(1) }} g{% else %}{{ (states('input_number.sparkx_i7_slot_2_grams') | float(0)) | round(1) }} g{% endif %}\",\n \"secondary\": \"\"\n },\n {\n \"type\": \"custom:mushroom-template-card\",\n \"entity\": \"sensor.sparkx_i7_cfs_box_1_slot_3_color\",\n \"name\": \"\",\n \"icon\": \"none\",\n \"multiline_secondary\": False,\n \"primary\": \"{% 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_3_grams') | float(0) %}{% set live = booked + ((([cur - ck, 0] | max) * gcm) if states('sensor.sparkx_i7_active_filament_slot') == 'box_1_slot_3' else 0) %}{{ live | round(1) }} g{% else %}{{ (states('input_number.sparkx_i7_slot_3_grams') | float(0)) | round(1) }} g{% endif %}\",\n \"secondary\": \"\"\n },\n {\n \"type\": \"custom:mushroom-template-card\",\n \"entity\": \"sensor.sparkx_i7_cfs_box_1_slot_4_color\",\n \"name\": \"\",\n \"icon\": \"none\",\n \"multiline_secondary\": False,\n \"primary\": \"{% 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_4_grams') | float(0) %}{% set live = booked + ((([cur - ck, 0] | max) * gcm) if states('sensor.sparkx_i7_active_filament_slot') == 'box_1_slot_4' else 0) %}{{ live | round(1) }} g{% else %}{{ (states('input_number.sparkx_i7_slot_4_grams') | float(0)) | round(1) }} g{% endif %}\",\n \"secondary\": \"\"\n }\n ]\n }\nconfig['views'][0]['sections'][0]['cards'] = cards", "config_hash": "7fa3406f098f98bd", "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": 14818.143844604492, "success": true, "error_message": null, "response_size_bytes": 35827, "user_context": null}
|
||||
Reference in new issue
Block a user