This commit is contained in:
Home Assistant Version Control
2026-08-10 04:48:06 +00:00
parent 3e5e9ab6a6
commit 257867ea79
3 changed files with 25 additions and 23 deletions
+2
View File
@@ -1075,3 +1075,5 @@
{"timestamp": "2026-08-10T01:24:34.356822+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_filament_daily", "sensor.octoprint_filament_weekly", "sensor.octoprint_filament_monthly", "sensor.octoprint_filament_used_total"], "fields": null, "attribute_keys": ["source", "cycle", "status", "last_period", "unit_of_measurement", "state_class"]}, "execution_time_ms": 46.82111740112305, "success": true, "error_message": null, "response_size_bytes": 2248, "user_context": null} {"timestamp": "2026-08-10T01:24:34.356822+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_filament_daily", "sensor.octoprint_filament_weekly", "sensor.octoprint_filament_monthly", "sensor.octoprint_filament_used_total"], "fields": null, "attribute_keys": ["source", "cycle", "status", "last_period", "unit_of_measurement", "state_class"]}, "execution_time_ms": 46.82111740112305, "success": true, "error_message": null, "response_size_bytes": 2248, "user_context": null}
{"timestamp": "2026-08-10T04:45:11.675011+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_elapsed", "sensor.octoprint_time_left"], "fields": null, "attribute_keys": ["unit_of_measurement", "friendly_name", "device_class"]}, "execution_time_ms": 11.638402938842773, "success": true, "error_message": null, "response_size_bytes": 1282, "user_context": null} {"timestamp": "2026-08-10T04:45:11.675011+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.octoprint_elapsed", "sensor.octoprint_time_left"], "fields": null, "attribute_keys": ["unit_of_measurement", "friendly_name", "device_class"]}, "execution_time_ms": 11.638402938842773, "success": true, "error_message": null, "response_size_bytes": 1282, "user_context": null}
{"timestamp": "2026-08-10T04:45:35.977201+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "for section in config['views'][0]['sections']:\n for card in section.get('cards', []):\n if card.get('name') == 'Elapsed':\n card['primary'] = \"Elapsed: {{ (states('sensor.octoprint_elapsed') | float(0) / 3600) | round(1) }} hr\"\n if card.get('name') == 'Remaining':\n card['primary'] = \"Remaining: {{ (states('sensor.octoprint_time_left') | float(0) / 3600) | round(1) }} hr\"", "config_hash": "55ba612ba3e8917f", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 15.523195266723633, "success": true, "error_message": null, "response_size_bytes": 30505, "user_context": null} {"timestamp": "2026-08-10T04:45:35.977201+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "for section in config['views'][0]['sections']:\n for card in section.get('cards', []):\n if card.get('name') == 'Elapsed':\n card['primary'] = \"Elapsed: {{ (states('sensor.octoprint_elapsed') | float(0) / 3600) | round(1) }} hr\"\n if card.get('name') == 'Remaining':\n card['primary'] = \"Remaining: {{ (states('sensor.octoprint_time_left') | float(0) / 3600) | round(1) }} hr\"", "config_hash": "55ba612ba3e8917f", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": true, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 15.523195266723633, "success": true, "error_message": null, "response_size_bytes": 30505, "user_context": null}
{"timestamp": "2026-08-10T04:47:59.957291+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "for section in config['views'][0]['sections']:\n for card in section.get('cards', []):\n if card.get('name') == 'Elapsed':\n card['primary'] = \"{% set s = states('sensor.octoprint_elapsed') | float(0) %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}Elapsed: {% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}\"\n if card.get('name') == 'Remaining':\n card['primary'] = \"{% set s = states('sensor.octoprint_time_left') | float(0) %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}Remaining: {% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}\"", "config_hash": "c2f5e8cafc055d2c", "title": null, "icon": null, "require_admin": null, "show_in_sidebar": null, "MandatoryBPS": false, "BestPracticeKey": null, "return_screenshot": false, "view_path": null}, "execution_time_ms": 7.243633270263672, "success": true, "error_message": null, "response_size_bytes": 1254, "user_context": null}
{"timestamp": "2026-08-10T04:48:05.138071+00:00", "tool_name": "ha_eval_template", "parameters": {"template": "{% set s = states('sensor.octoprint_elapsed') | float(0) %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}Elapsed: {% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %} | {% set s = states('sensor.octoprint_time_left') | float(0) %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}Remaining: {% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}", "timeout": 3, "report_errors": true}, "execution_time_ms": 52.23798751831055, "success": true, "error_message": null, "response_size_bytes": 540, "user_context": null}
+2 -2
View File
@@ -101,7 +101,7 @@
}, },
{ {
"type": "custom:mushroom-template-card", "type": "custom:mushroom-template-card",
"primary": "Elapsed: {{ (states('sensor.octoprint_elapsed') | float(0) / 3600) | round(1) }} hr", "primary": "{% set s = states('sensor.octoprint_elapsed') | float(0) %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}Elapsed: {% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}",
"name": "Elapsed", "name": "Elapsed",
"icon": "mdi:clock-start", "icon": "mdi:clock-start",
"grid_options": { "grid_options": {
@@ -110,7 +110,7 @@
}, },
{ {
"type": "custom:mushroom-template-card", "type": "custom:mushroom-template-card",
"primary": "Remaining: {{ (states('sensor.octoprint_time_left') | float(0) / 3600) | round(1) }} hr", "primary": "{% set s = states('sensor.octoprint_time_left') | float(0) %}{% set h = (s / 3600) | int %}{% set m = ((s % 3600) / 60) | int %}Remaining: {% if h %}{{ h }} hr {{ m }} min{% else %}{{ m }} min{% endif %}",
"name": "Remaining", "name": "Remaining",
"icon": "mdi:clock-end", "icon": "mdi:clock-end",
"grid_options": { "grid_options": {
+21 -21
View File
@@ -1,13 +1,13 @@
{ {
"0xffffb40e0607ace4": { "0xffffb40e0607ace4": {
"energy": 14.54, "energy": 14.57,
"state": "ON", "state": "ON",
"led_brightness": 100, "led_brightness": 100,
"countdown_to_turn_off": 0, "countdown_to_turn_off": 0,
"voltage": 120.2, "voltage": 120.3,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"ac_frequency": 60, "ac_frequency": 60,
"power_factor": 0.28, "power_factor": 0.33,
"update": { "update": {
"state": "idle", "state": "idle",
"installed_version": 268513381, "installed_version": 268513381,
@@ -15,9 +15,9 @@
"latest_source": "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/ThirdReality/SmartPlug_Zigbee_PROD_OTA_V101_1.01.01.ota", "latest_source": "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/ThirdReality/SmartPlug_Zigbee_PROD_OTA_V101_1.01.01.ota",
"latest_release_notes": null "latest_release_notes": null
}, },
"power": 27, "power": 149.1,
"linkquality": 116, "linkquality": 116,
"current": 0.8, "current": 2.03,
"power_on_behavior": "on" "power_on_behavior": "on"
}, },
"0xffffb40e0607af27": { "0xffffb40e0607af27": {
@@ -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": 1.9, "power": 2,
"current": 0.11, "current": 0.11,
"energy": 27.96, "energy": 27.96,
"power_factor": 0.13, "power_factor": 0.13,
@@ -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": 119.5, "voltage": 120.1,
"countdown_to_turn_on": 0, "countdown_to_turn_on": 0,
"energy": 52.41, "energy": 52.41,
"power_factor": 0.88, "power_factor": 0.2,
"ac_frequency": 60, "ac_frequency": 60,
"update": { "update": {
"state": "idle", "state": "idle",
@@ -58,8 +58,8 @@
"latest_release_notes": null "latest_release_notes": null
}, },
"linkquality": 134, "linkquality": 134,
"power": 84.6, "power": 0.2,
"current": 0.83, "current": 0.02,
"power_on_behavior": "on" "power_on_behavior": "on"
}, },
"0xb40e060fffe031e3": { "0xb40e060fffe031e3": {
@@ -74,12 +74,12 @@
"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": 119.5, "voltage": 119.8,
"state": "ON", "state": "ON",
"ac_frequency": 60, "ac_frequency": 60,
"energy": 107.64, "energy": 107.66,
"power": 101.1, "power": 101.4,
"current": 0.92, "current": 0.89,
"power_factor": 0.95, "power_factor": 0.95,
"update": { "update": {
"state": "idle", "state": "idle",
@@ -98,10 +98,10 @@
"voltage": 119.5, "voltage": 119.5,
"energy": 46.63, "energy": 46.63,
"state": "ON", "state": "ON",
"power": 55.8, "power": 57.1,
"current": 0.59, "current": 0.55,
"ac_frequency": 60, "ac_frequency": 60,
"power_factor": 0.78, "power_factor": 0.81,
"update": { "update": {
"state": "idle", "state": "idle",
"installed_version": 268513381, "installed_version": 268513381,
@@ -114,12 +114,12 @@
}, },
"0xffffb40e060895b3": { "0xffffb40e060895b3": {
"state": "ON", "state": "ON",
"voltage": 120, "voltage": 120.5,
"ac_frequency": 60, "ac_frequency": 60,
"energy": 7.13, "energy": 7.13,
"current": 0.01, "current": 0.01,
"power": 0.1, "power": 0.1,
"power_factor": 0.11, "power_factor": 0,
"linkquality": 123, "linkquality": 123,
"update": { "update": {
"state": "idle", "state": "idle",
@@ -143,7 +143,7 @@
"current": 0.02, "current": 0.02,
"ac_frequency": 60, "ac_frequency": 60,
"power": 0.3, "power": 0.3,
"power_factor": 0.14, "power_factor": 0.2,
"update": { "update": {
"state": "idle", "state": "idle",
"installed_version": 268513381, "installed_version": 268513381,
@@ -187,7 +187,7 @@
"latest_source": "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/ThirdReality/SmartPlug_Zigbee_PROD_OTA_V101_1.01.01.ota", "latest_source": "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/ThirdReality/SmartPlug_Zigbee_PROD_OTA_V101_1.01.01.ota",
"latest_release_notes": null "latest_release_notes": null
}, },
"power_factor": 0.1, "power_factor": 0.06,
"power": 0.1 "power": 0.1
}, },
"0xa4c1380d0679ffff": { "0xa4c1380d0679ffff": {