4 files
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -4222,3 +4222,5 @@
|
||||
{"timestamp": "2026-10-09T22:04:47.482266+00:00", "tool_name": "ha_reload_core", "parameters": {"target": "all", "entry_id": "01M4E507NTYVDXT6ZHX4HMX9XV"}, "execution_time_ms": 1079.362392425537, "success": true, "error_message": null, "response_size_bytes": 166, "user_context": null}
|
||||
{"timestamp": "2026-10-09T22:04:49.696587+00:00", "tool_name": "ha_search", "parameters": {"query": "spoolman_spool_7", "domain_filter": "sensor", "area_filter": null, "search_types": null, "limit": 60, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": ["entity_id", "friendly_name"], "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 136.57498359680176, "success": true, "error_message": null, "response_size_bytes": 682, "user_context": null}
|
||||
{"timestamp": "2026-10-09T22:04:51.787426+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.spoolman_spool_3", "sensor.spoolman_spool_4", "sensor.spoolman_spool_5", "sensor.spoolman_spool_6"], "fields": ["entity_id", "state", "attributes"], "attribute_keys": ["location", "filament_material"]}, "execution_time_ms": 4.680633544921875, "success": true, "error_message": null, "response_size_bytes": 1013, "user_context": null}
|
||||
{"timestamp": "2026-10-09T22:06:28.698401+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": "spoolman", "mode": null, "query": null}, "execution_time_ms": 41.74971580505371, "success": true, "error_message": null, "response_size_bytes": 35576, "user_context": null}
|
||||
{"timestamp": "2026-10-09T22:06:32.812327+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "sparkx-i7", "config": null, "python_transform": "c0 = config['views'][3]['sections'][0]['cards'][11]\nif c0.get('type') == 'custom:auto-entities' and c0.get('card', {}).get('type') == 'custom:filament-card':\n config['views'][3]['sections'][0]['cards'][11] = c0['card']\n config['views'][3]['sections'][0]['cards'][11]['spool_location'] = 'CFS Lite'\nc1 = config['views'][3]['sections'][5]['cards'][1]\nif c1.get('type') == 'custom:auto-entities' and c1.get('card', {}).get('type') == 'custom:filament-card':\n config['views'][3]['sections'][5]['cards'][1] = c1['card']\n config['views'][3]['sections'][5]['cards'][1]['spool_location'] = 'CFS Lite'", "config_hash": "9c58befc4726d819", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null, "patch": null}, "execution_time_ms": 33.7834358215332, "success": true, "error_message": null, "response_size_bytes": 1440, "user_context": null}
|
||||
|
||||
+72
-96
@@ -1042,55 +1042,43 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "custom:auto-entities",
|
||||
"card": {
|
||||
"preset": "spoolman",
|
||||
"title": "Filament",
|
||||
"group_by": "material",
|
||||
"group_sort_by": "name",
|
||||
"group_sort_direction": "asc",
|
||||
"group_order": [],
|
||||
"group_icon": "mdi:printer-3d-nozzle",
|
||||
"group_title_actions": {},
|
||||
"group_title_icons": {},
|
||||
"group_title_colors": {},
|
||||
"max_weight": 1000,
|
||||
"hide_archived": true,
|
||||
"sort_by": "remaining_weight",
|
||||
"sort_direction": "asc",
|
||||
"bar_direction": "horizontal",
|
||||
"name_position": "bottom",
|
||||
"show_name": true,
|
||||
"show_group_title": true,
|
||||
"value_position": "center",
|
||||
"use_filament_color": true,
|
||||
"custom_attribute_entities": [],
|
||||
"custom_items": [],
|
||||
"custom_max_value": 1000,
|
||||
"custom_unit": "g",
|
||||
"custom_label_id": "",
|
||||
"tap_action": {
|
||||
"action": "more-info"
|
||||
},
|
||||
"double_tap_action": {
|
||||
"action": "none"
|
||||
},
|
||||
"hold_action": {
|
||||
"action": "none"
|
||||
},
|
||||
"spool_actions": {},
|
||||
"type": "custom:filament-card"
|
||||
"preset": "spoolman",
|
||||
"title": "Filament",
|
||||
"group_by": "material",
|
||||
"group_sort_by": "name",
|
||||
"group_sort_direction": "asc",
|
||||
"group_order": [],
|
||||
"group_icon": "mdi:printer-3d-nozzle",
|
||||
"group_title_actions": {},
|
||||
"group_title_icons": {},
|
||||
"group_title_colors": {},
|
||||
"max_weight": 1000,
|
||||
"hide_archived": true,
|
||||
"sort_by": "remaining_weight",
|
||||
"sort_direction": "asc",
|
||||
"bar_direction": "horizontal",
|
||||
"name_position": "bottom",
|
||||
"show_name": true,
|
||||
"show_group_title": true,
|
||||
"value_position": "center",
|
||||
"use_filament_color": true,
|
||||
"custom_attribute_entities": [],
|
||||
"custom_items": [],
|
||||
"custom_max_value": 1000,
|
||||
"custom_unit": "g",
|
||||
"custom_label_id": "",
|
||||
"tap_action": {
|
||||
"action": "more-info"
|
||||
},
|
||||
"filter": {
|
||||
"include": [
|
||||
{
|
||||
"entity_id": "sensor.spoolman_spool_*",
|
||||
"attributes": {
|
||||
"location": "CFS Lite"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
"double_tap_action": {
|
||||
"action": "none"
|
||||
},
|
||||
"hold_action": {
|
||||
"action": "none"
|
||||
},
|
||||
"spool_actions": {},
|
||||
"type": "custom:filament-card",
|
||||
"spool_location": "CFS Lite"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -1382,55 +1370,43 @@
|
||||
"heading": "New section"
|
||||
},
|
||||
{
|
||||
"type": "custom:auto-entities",
|
||||
"card": {
|
||||
"type": "custom:filament-card",
|
||||
"preset": "spoolman",
|
||||
"title": "Filament",
|
||||
"group_by": "material",
|
||||
"group_sort_by": "name",
|
||||
"group_sort_direction": "asc",
|
||||
"group_order": [],
|
||||
"group_icon": "mdi:printer-3d-nozzle",
|
||||
"group_title_actions": {},
|
||||
"group_title_icons": {},
|
||||
"group_title_colors": {},
|
||||
"max_weight": 1000,
|
||||
"hide_archived": true,
|
||||
"sort_by": "remaining_weight",
|
||||
"sort_direction": "asc",
|
||||
"bar_direction": "vertical",
|
||||
"name_position": "bottom",
|
||||
"show_name": true,
|
||||
"show_group_title": true,
|
||||
"value_position": "center",
|
||||
"use_filament_color": true,
|
||||
"custom_attribute_entities": [],
|
||||
"custom_items": [],
|
||||
"custom_max_value": 1000,
|
||||
"custom_unit": "g",
|
||||
"custom_label_id": "",
|
||||
"tap_action": {
|
||||
"action": "more-info"
|
||||
},
|
||||
"double_tap_action": {
|
||||
"action": "none"
|
||||
},
|
||||
"hold_action": {
|
||||
"action": "none"
|
||||
},
|
||||
"spool_actions": {}
|
||||
"type": "custom:filament-card",
|
||||
"preset": "spoolman",
|
||||
"title": "Filament",
|
||||
"group_by": "material",
|
||||
"group_sort_by": "name",
|
||||
"group_sort_direction": "asc",
|
||||
"group_order": [],
|
||||
"group_icon": "mdi:printer-3d-nozzle",
|
||||
"group_title_actions": {},
|
||||
"group_title_icons": {},
|
||||
"group_title_colors": {},
|
||||
"max_weight": 1000,
|
||||
"hide_archived": true,
|
||||
"sort_by": "remaining_weight",
|
||||
"sort_direction": "asc",
|
||||
"bar_direction": "vertical",
|
||||
"name_position": "bottom",
|
||||
"show_name": true,
|
||||
"show_group_title": true,
|
||||
"value_position": "center",
|
||||
"use_filament_color": true,
|
||||
"custom_attribute_entities": [],
|
||||
"custom_items": [],
|
||||
"custom_max_value": 1000,
|
||||
"custom_unit": "g",
|
||||
"custom_label_id": "",
|
||||
"tap_action": {
|
||||
"action": "more-info"
|
||||
},
|
||||
"filter": {
|
||||
"include": [
|
||||
{
|
||||
"entity_id": "sensor.spoolman_spool_*",
|
||||
"attributes": {
|
||||
"location": "CFS Lite"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
"double_tap_action": {
|
||||
"action": "none"
|
||||
},
|
||||
"hold_action": {
|
||||
"action": "none"
|
||||
},
|
||||
"spool_actions": {},
|
||||
"spool_location": "CFS Lite"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -485,10 +485,11 @@ class Ot extends HTMLElement {
|
||||
return String(t ?? "").trim().toLocaleLowerCase();
|
||||
}
|
||||
getSpoolmanItems() {
|
||||
const L = this.config.spool_location;
|
||||
return Object.entries(this._hass.states).map(([t, e]) => ({ entity_id: t, state: e })).filter(({ state: t }) => {
|
||||
var e;
|
||||
return (e = t.attributes) == null ? void 0 : e.filament_material;
|
||||
}).filter(({ state: t }) => !this.config.hide_archived || t.attributes.archived === !1).sort((t, e) => B(this.config, t, e));
|
||||
}).filter(({ state: t }) => !L || String((t.attributes || {}).location || "").toLowerCase() === String(L).toLowerCase()).filter(({ state: t }) => !this.config.hide_archived || t.attributes.archived === !1).sort((t, e) => B(this.config, t, e));
|
||||
}
|
||||
getCustomAttributeItems() {
|
||||
const t = this.config.custom_attribute_entities || [], e = Number(this.config.custom_max_value || 1e3), n = this.config.custom_unit || "g";
|
||||
|
||||
Reference in New Issue
Block a user