diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 5eaeaa77..402a29b2 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -4340,3 +4340,4 @@ {"timestamp": "2026-10-10T07:02:52.632073+00:00", "tool_name": "ha_config_set_dashboard", "parameters": {"url_path": "printer-stats", "config": null, "python_transform": "config['views'][2]['sections'].extend([\n {\n \"type\": \"grid\",\n \"cards\": [\n {\n \"type\": \"custom:mushroom-title-card\",\n \"title\": \"BeHappy2021 Dashboard\",\n \"subtitle\": \"{{ states('sensor.sparkx_moonraker_current_print_state') }}\",\n \"alignment\": \"center\",\n \"title_tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"}\n }\n ]\n },\n {\n \"type\": \"grid\",\n \"title\": \"3D Printer\",\n \"cards\": [\n {\n \"type\": \"custom:state-switch\",\n \"entity\": \"sensor.sparkx_moonraker_current_print_state\",\n \"transition\": \"flip-x\",\n \"states\": {\n \"unavailable\": {\n \"type\": \"vertical-stack\",\n \"cards\": [\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"input_text.job_filament\", \"name\": \"Filament used in last job\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}},\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"input_text.total_filament\", \"name\": \"Total Filament Used\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}},\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"input_text.total_jobs\", \"name\": \"Total Jobs\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}},\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"input_text.total_time\", \"name\": \"Total Time\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}}\n ]\n },\n \"standby\": {\n \"type\": \"custom:mushroom-template-card\",\n \"primary\": \"Printer is standing by\",\n \"layout\": \"vertical\",\n \"tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"},\n \"hold_action\": {\"action\": \"none\"},\n \"double_tap_action\": {\"action\": \"none\"},\n \"icon_color\": \"yellow\",\n \"icon\": \"mdi:printer-3d\"\n },\n \"printing\": {\n \"type\": \"vertical-stack\",\n \"cards\": [\n {\n \"type\": \"custom:mushroom-template-card\",\n \"secondary\": \"Current filename - {{ states('sensor.sparkx_moonraker_filename') }}\",\n \"fill_container\": True,\n \"multiline_secondary\": True,\n \"layout\": \"vertical\",\n \"tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"},\n \"hold_action\": {\"action\": \"none\"},\n \"double_tap_action\": {\"action\": \"none\"},\n \"icon_color\": \"green\",\n \"icon\": \"mdi:printer-3d\"\n },\n {\n \"type\": \"horizontal-stack\",\n \"cards\": [\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"sensor.sparkx_moonraker_current_print_state\", \"name\": \"Status\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}},\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"sensor.sparkx_moonraker_print_duration\", \"name\": \"Elapsed\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}},\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"sensor.sparkx_moonraker_print_eta\", \"name\": \"Completion\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}},\n {\"type\": \"custom:mushroom-entity-card\", \"entity\": \"binary_sensor.sparkx_moonraker_filament_sensor\", \"name\": \"Filament\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"none\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}}\n ]\n }\n ]\n },\n \"complete\": {\n \"type\": \"custom:mushroom-template-card\",\n \"primary\": \"Printing has finished\",\n \"layout\": \"vertical\",\n \"fill_container\": True,\n \"tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"},\n \"hold_action\": {\"action\": \"none\"},\n \"double_tap_action\": {\"action\": \"none\"},\n \"icon_color\": \"green\",\n \"icon\": \"mdi:printer-3d\"\n }\n }\n },\n {\n \"type\": \"custom:state-switch\",\n \"entity\": \"sensor.sparkx_moonraker_current_print_state\",\n \"transition\": \"flip-x\",\n \"states\": {\n \"printing\": {\n \"type\": \"vertical-stack\",\n \"cards\": [\n {\"type\": \"tile\", \"name\": \"Print progress..\", \"icon\": \"mdi:clock-end\", \"entity\": \"sensor.sparkx_moonraker_progress\", \"features\": [{\"type\": \"bar-gauge\", \"min\": 0, \"max\": 100}]},\n {\"type\": \"tile\", \"name\": \"Fan speed\", \"icon\": \"mdi:fan\", \"entity\": \"sensor.sparkx_moonraker_hotend_fan\", \"features\": [{\"type\": \"bar-gauge\", \"min\": 0, \"max\": 100}]},\n {\"type\": \"tile\", \"name\": \"Filament used\", \"tap_action\": {\"action\": \"none\"}, \"icon_tap_action\": {\"action\": \"none\"}, \"entity\": \"sensor.sparkx_moonraker_filament_used\"},\n {\"type\": \"picture-entity\", \"show_state\": False, \"show_name\": False, \"camera_view\": \"auto\", \"name\": \"Thumbnail\", \"tap_action\": {\"action\": \"none\"}, \"icon_tap_action\": {\"action\": \"none\"}, \"entity\": \"camera.sparkx_moonraker_thumbnail\"}\n ]\n },\n \"complete\": {\n \"type\": \"vertical-stack\",\n \"cards\": [\n {\"type\": \"tile\", \"name\": \"Print progress..\", \"icon\": \"mdi:clock-end\", \"entity\": \"sensor.sparkx_moonraker_progress\", \"features\": [{\"type\": \"bar-gauge\", \"min\": 0, \"max\": 100}]},\n {\"type\": \"tile\", \"name\": \"Filament used\", \"tap_action\": {\"action\": \"none\"}, \"icon_tap_action\": {\"action\": \"none\"}, \"entity\": \"input_text.job_filament\"}\n ]\n },\n \"standby\": {\n \"type\": \"vertical-stack\",\n \"cards\": [\n {\"type\": \"custom:mushroom-template-card\", \"primary\": \"Job progress will appear here\", \"layout\": \"vertical\", \"tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"}, \"hold_action\": {\"action\": \"none\"}, \"double_tap_action\": {\"action\": \"none\"}, \"icon_color\": \"yellow\", \"icon\": \"mdi:printer-3d\"},\n {\"type\": \"tile\", \"name\": \"Filament used in last job\", \"vertical\": True, \"tap_action\": {\"action\": \"none\"}, \"icon_tap_action\": {\"action\": \"none\"}, \"entity\": \"input_text.job_filament\"}\n ]\n }\n }\n }\n ]\n },\n {\n \"type\": \"grid\",\n \"title\": \" \",\n \"cards\": [\n {\n \"type\": \"custom:state-switch\",\n \"entity\": \"sensor.sparkx_moonraker_current_print_state\",\n \"transition\": \"flip-x\",\n \"states\": {\n \"unavailable\": {\n \"type\": \"custom:mushroom-template-card\",\n \"primary\": \"Printer turned off\",\n \"layout\": \"vertical\",\n \"tap_action\": {\"action\": \"none\"},\n \"hold_action\": {\"action\": \"none\"},\n \"double_tap_action\": {\"action\": \"none\"},\n \"icon_color\": \"red\",\n \"icon\": \"mdi:printer-3d\"\n },\n \"printing\": {\n \"type\": \"horizontal-stack\",\n \"cards\": [\n {\"type\": \"custom:button-card\", \"name\": \"Pause\", \"tap_action\": {\"action\": \"toggle\"}, \"entity\": \"button.sparkx_moonraker_pause_print\"},\n {\"type\": \"custom:button-card\", \"name\": \"Resume\", \"tap_action\": {\"action\": \"toggle\"}, \"entity\": \"button.sparkx_moonraker_resume_print\"},\n {\"type\": \"custom:button-card\", \"name\": \"Cancel\", \"tap_action\": {\"action\": \"toggle\"}, \"entity\": \"button.sparkx_moonraker_cancel_print\"},\n {\"type\": \"custom:button-card\", \"name\": \"Emergency\", \"tap_action\": {\"action\": \"toggle\"}, \"color\": \"red\", \"confirmation\": {\"text\": \"This will REBOOT the printer. Are you sure?\"}, \"entity\": \"button.sparkx_moonraker_emergency_stop\"}\n ]\n },\n \"standby\": {\n \"type\": \"custom:mushroom-template-card\",\n \"primary\": \"Controls will appear here\",\n \"layout\": \"vertical\",\n \"tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"},\n \"hold_action\": {\"action\": \"none\"},\n \"double_tap_action\": {\"action\": \"none\"},\n \"icon_color\": \"yellow\",\n \"icon\": \"mdi:printer-3d\"\n }\n }\n },\n {\n \"square\": True,\n \"type\": \"grid\",\n \"columns\": 1,\n \"cards\": [\n {\n \"type\": \"conditional\",\n \"conditions\": [{\"condition\": \"state\", \"entity\": \"sensor.sparkx_moonraker_current_print_state\", \"state\": \"printing\"}],\n \"card\": {\n \"type\": \"custom:apexcharts-card\",\n \"graph_span\": \"1h\",\n \"span\": {\"start\": \"hour\", \"offset\": \"-10min\"},\n \"header\": {\"show\": True, \"title\": \"Temperatures\", \"show_states\": True, \"colorize_states\": True},\n \"now\": {\"show\": True, \"label\": \"Now\", \"color\": \"#00ff00\"},\n \"all_series_config\": {\"show\": {\"legend_value\": False}, \"float_precision\": 0},\n \"apex_config\": {\"legend\": {\"show\": False}},\n \"series\": [\n {\"entity\": \"sensor.sparkx_moonraker_extruder_temperature\", \"name\": \"Nozzle\", \"opacity\": 0.4},\n {\"entity\": \"number.sparkx_moonraker_extruder_target\", \"name\": \"Nozzle target\", \"opacity\": 0.4},\n {\"entity\": \"sensor.sparkx_moonraker_bed_temperature\", \"name\": \"Bed\", \"opacity\": 0.4},\n {\"entity\": \"number.sparkx_moonraker_bed_target\", \"name\": \"Bed target\", \"opacity\": 0.4},\n {\"entity\": \"sensor.sparkx_moonraker_mcu_temp\", \"name\": \"MCU\", \"opacity\": 0.4}\n ]\n }\n },\n {\n \"type\": \"conditional\",\n \"conditions\": [{\"condition\": \"state\", \"entity\": \"sensor.sparkx_moonraker_current_print_state\", \"state\": \"standby\"}],\n \"card\": {\n \"type\": \"custom:mushroom-template-card\",\n \"primary\": \"Temperatures will appear here\",\n \"layout\": \"vertical\",\n \"tap_action\": {\"action\": \"url\", \"url_path\": \"http://moonraker.local/\"},\n \"hold_action\": {\"action\": \"none\"},\n \"double_tap_action\": {\"action\": \"none\"},\n \"icon_color\": \"yellow\",\n \"icon\": \"mdi:printer-3d\"\n }\n }\n ]\n }\n ]\n },\n {\n \"type\": \"grid\",\n \"cards\": [\n {\"type\": \"heading\", \"heading\": \"Spoolman\", \"icon\": \"mdi:spool\"},\n {\n \"type\": \"custom:mushroom-template-card\",\n \"entity\": \"sensor.active_spool\",\n \"primary\": \"{{ states('sensor.active_spool') }}\",\n \"secondary\": \"Active spool\",\n \"icon\": \"mdi:circle\",\n \"icon_color\": \"{% set sid = states('sensor.sparkx_moonraker_spool_id') | int(0) %}{% set eid = 'sensor.spoolman_spool_' ~ sid %}{% set h = state_attr(eid, 'filament_color_hex') %}{{ ('#' ~ h) if h else '#999999' }}\",\n \"tap_action\": {\"action\": \"more-info\"}\n }\n ]\n }\n])", "config_hash": "3178a4b1bd30e47b", "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": 32.300710678100586, "success": true, "error_message": null, "response_size_bytes": 12185, "user_context": null} {"timestamp": "2026-10-10T07:04:18.034674+00:00", "tool_name": "ha_config_get_dashboard", "parameters": {"url_path": "printer-stats", "list_only": false, "force_reload": false, "entity_id": null, "card_type": null, "heading": null, "include_config": false, "include_screenshot": false, "view_path": "test", "mode": null, "query": null}, "execution_time_ms": 23.795604705810547, "success": true, "error_message": null, "response_size_bytes": 13879, "user_context": null} {"timestamp": "2026-10-10T07:04:35.855579+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["sensor.active_spool", "input_text.job_filament", "input_text.total_filament", "input_text.total_jobs", "input_text.total_time", "number.sparkx_moonraker_extruder_target", "number.sparkx_moonraker_bed_target", "sensor.sparkx_moonraker_current_print_state"], "fields": ["state"], "attribute_keys": null}, "execution_time_ms": 1.8167495727539062, "success": true, "error_message": null, "response_size_bytes": 825, "user_context": null} +{"timestamp": "2026-10-10T07:10:10.256815+00:00", "tool_name": "ha_search", "parameters": {"query": "sparkx_moonraker", "domain_filter": null, "area_filter": null, "search_types": null, "limit": 100, "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": 485.3088855743408, "success": true, "error_message": null, "response_size_bytes": 8166, "user_context": null} diff --git a/zigbee2mqtt/state.json b/zigbee2mqtt/state.json index f2d961d4..ba5d4bb3 100644 --- a/zigbee2mqtt/state.json +++ b/zigbee2mqtt/state.json @@ -7,7 +7,7 @@ "voltage": 122, "countdown_to_turn_on": 0, "ac_frequency": 60, - "power_factor": 0.13, + "power_factor": 0.14, "update": { "state": "idle", "installed_version": 268513381, @@ -27,7 +27,7 @@ "led_brightness": 100, "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, - "power": 2, + "power": 1.9, "current": 0.1, "energy": 54.37, "power_factor": 0.16, @@ -58,8 +58,8 @@ "latest_release_notes": null }, "linkquality": 145, - "power": 0.5, - "current": 0.05, + "power": 97, + "current": 1, "power_on_behavior": "on" }, "0xb40e060fffe031e3": { @@ -78,7 +78,7 @@ "state": "ON", "ac_frequency": 60, "energy": 213.25, - "power": 100, + "power": 98.1, "current": 0.92, "power_factor": 0.94, "update": { @@ -98,8 +98,8 @@ "voltage": 121, "energy": 101.23, "state": "ON", - "power": 15, - "current": 0.24, + "power": 10.4, + "current": 0.18, "ac_frequency": 60, "power_factor": 0.51, "update": { @@ -117,9 +117,9 @@ "voltage": 121.2, "ac_frequency": 60, "energy": 14.61, - "current": 0.02, - "power": 0.1, - "power_factor": 0.11, + "current": 0.01, + "power": 0.2, + "power_factor": 0.22, "linkquality": 116, "update": { "state": "idle", @@ -136,7 +136,7 @@ "0xffffb40e0608864e": { "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 121.2, + "voltage": 121.7, "energy": 35.75, "countdown_to_turn_on": 0, "state": "ON", @@ -224,7 +224,7 @@ }, "0xb40e060fffe717c5": { "battery": 100, - "occupancy": false, + "occupancy": true, "tamper": false, "battery_low": false, "linkquality": 145,