.storage/lovelace.sparkx_i7, zigbee2mqtt/state.json

This commit is contained in:
Home Assistant Version Control committed 2026-10-09 22:32:22 +00:00
1 parent 42ffea1c09
commit 0ccc4317bf
2 files changed
+23 -11

No files matched your search

+12
View File
@@ -1407,6 +1407,18 @@
}, },
"spool_actions": {}, "spool_actions": {},
"spool_location": "CFS Lite" "spool_location": "CFS Lite"
},
{
"type": "custom:auto-entities",
"card": {
"type": "grid",
"columns": 2,
"square": false
},
"card_param": "cards",
"filter": {
"template": "{% set ns = namespace(cards=[]) %} {% for s in states.sensor | selectattr('entity_id', 'match', '^sensor\\.spoolman_spool_') %}\n {% if s.attributes.location is defined and s.attributes.location | lower == 'cfs lite' %}\n {% set hex = s.attributes.filament_color_hex | default('44739e') %}\n {% set hex_clean = hex if hex.startswith('#') else '#' ~ hex %}\n {% set vendor = s.attributes.filament_vendor_name | default('') %}\n {% set name = s.attributes.filament_name | default(s.attributes.friendly_name) %}\n {% set material = s.attributes.filament_material | default('') %}\n {% set remaining = (s.attributes.remaining_weight | default(0) | float) | round(0) %}\n {% set total = (s.attributes.initial_weight | default(1000) | float) | round(0) %}\n {% set used_pct = (s.attributes.used_percentage | default(0) | float) | round(1) %}\n {% set remain_pct = (100 - used_pct) | round(0) %}\n\n {% set card = {\n \"type\": \"custom:button-card\",\n \"entity\": s.entity_id,\n \"layout\": \"icon_name_state2nd\",\n \"show_name\": true,\n \"show_state\": false,\n \"show_icon\": true,\n \"show_label\": true,\n \"icon\": \"mdi:printer-3d-nozzle\",\n \"name\": vendor ~ \" \" ~ name,\n \"label\": material ~ \" • \" ~ remaining ~ \"g / \" ~ total ~ \"g (\" ~ remain_pct ~ \"%)\",\n \"styles\": {\n \"card\": [\n {\"padding\": \"12px\"},\n {\"background-color\": \"var(--card-background-color)\"},\n {\"border-radius\": \"12px\"}\n ],\n \"icon\": [\n {\"color\": hex_clean},\n {\"width\": \"32px\"},\n {\"height\": \"32px\"}\n ],\n \"name\": [\n {\"font-weight\": \"600\"},\n {\"font-size\": \"14px\"},\n {\"justify-self\": \"start\"},\n {\"text-align\": \"left\"}\n ],\n \"label\": [\n {\"font-size\": \"12px\"},\n {\"color\": \"var(--secondary-text-color)\"},\n {\"justify-self\": \"start\"},\n {\"text-align\": \"left\"},\n {\"margin-top\": \"4px\"}\n ]\n },\n \"tap_action\": {\n \"action\": \"more-info\"\n }\n } %}\n {% set ns.cards = ns.cards + [card] %}\n {% endif %}\n{% endfor %} {{ ns.cards }}"
}
} }
] ]
} }
+11 -11
View File
@@ -4,7 +4,7 @@
"state": "ON", "state": "ON",
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"voltage": 119.3, "voltage": 118.8,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"ac_frequency": 60, "ac_frequency": 60,
"power_factor": 0.14, "power_factor": 0.14,
@@ -27,7 +27,7 @@
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"power": 2.1, "power": 2.2,
"current": 0.09, "current": 0.09,
"energy": 54.35, "energy": 54.35,
"power_factor": 0.18, "power_factor": 0.18,
@@ -45,10 +45,10 @@
"state": "ON", "state": "ON",
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"voltage": 118.9, "voltage": 118.5,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"energy": 104.67, "energy": 104.67,
"power_factor": 0.9, "power_factor": 0.2,
"ac_frequency": 60, "ac_frequency": 60,
"update": { "update": {
"state": "idle", "state": "idle",
@@ -58,7 +58,7 @@
"latest_release_notes": null "latest_release_notes": null
}, },
"linkquality": 145, "linkquality": 145,
"power": 85.6, "power": 85.4,
"current": 0.81, "current": 0.81,
"power_on_behavior": "on" "power_on_behavior": "on"
}, },
@@ -95,11 +95,11 @@
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"voltage": 118.6, "voltage": 118.5,
"energy": 101.07, "energy": 101.07,
"state": "ON", "state": "ON",
"power": 31.1, "power": 55.7,
"current": 0.32, "current": 0.76,
"ac_frequency": 60, "ac_frequency": 60,
"power_factor": 0.64, "power_factor": 0.64,
"update": { "update": {
@@ -114,12 +114,12 @@
}, },
"0xffffb40e060895b3": { "0xffffb40e060895b3": {
"state": "ON", "state": "ON",
"voltage": 119.4, "voltage": 119,
"ac_frequency": 60, "ac_frequency": 60,
"energy": 14.41, "energy": 14.41,
"current": 0.01, "current": 0.01,
"power": 0.2, "power": 0.2,
"power_factor": 0.2, "power_factor": 0.11,
"linkquality": 116, "linkquality": 116,
"update": { "update": {
"state": "idle", "state": "idle",
@@ -136,7 +136,7 @@
"0xffffb40e0608864e": { "0xffffb40e0608864e": {
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"voltage": 120, "voltage": 119.5,
"energy": 34.94, "energy": 34.94,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"state": "ON", "state": "ON",