From 1799c1bad3f6b440ac4c10d2135406cffe5dbe84 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Fri, 7 Aug 2026 02:09:22 +0000 Subject: [PATCH] 3 files --- .ha_mcp/logs/mcp_usage.jsonl | 2 ++ automations.yaml | 40 +++++++++++++++++++++++++++++++ zigbee2mqtt/state.json | 46 ++++++++++++++++++------------------ 3 files changed, 65 insertions(+), 23 deletions(-) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index e62adf0..018cb0e 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -556,3 +556,5 @@ {"timestamp": "2026-08-07T01:44:10.966602+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "light.bedroom_lamp", "fields": ["state", "last_updated"], "attribute_keys": null}, "execution_time_ms": 9.422540664672852, "success": true, "error_message": null, "response_size_bytes": 419, "user_context": null} {"timestamp": "2026-08-07T01:44:14.077941+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "mqtt", "service": "publish", "entity_id": null, "data": {"topic": "octoPrint/event/PrintStarted", "payload": "{\"_event\": \"PrintStarted\", \"filename\": \"test-automation-2.gcode\"}", "retain": false}, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 17.46201515197754, "success": true, "error_message": null, "response_size_bytes": 293, "user_context": null} {"timestamp": "2026-08-07T01:44:17.303902+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "light.bedroom_lamp", "fields": ["state", "last_updated"], "attribute_keys": null}, "execution_time_ms": 7.877826690673828, "success": true, "error_message": null, "response_size_bytes": 418, "user_context": null} +{"timestamp": "2026-08-07T02:09:16.079455+00:00", "tool_name": "ha_config_set_helper", "parameters": {"helper_type": "input_boolean", "name": "3D Printer Running", "helper_id": null, "entry_id": null, "subentry_type": null, "subentry_id": null, "show_advanced_options": false, "icon": "mdi:printer-3d", "area_id": null, "labels": null, "min_value": null, "max_value": null, "step": null, "unit_of_measurement": null, "options": null, "initial": null, "mode": null, "has_date": null, "has_time": null, "restore": null, "duration": null, "monday": null, "tuesday": null, "wednesday": null, "thursday": null, "friday": null, "saturday": null, "sunday": null, "latitude": null, "longitude": null, "radius": null, "passive": null, "user_id": null, "device_trackers": null, "picture": null, "tag_id": null, "description": null, "category": null, "config": null, "wait": true, "action": null, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 67.46530532836914, "success": true, "error_message": null, "response_size_bytes": 281, "user_context": null} +{"timestamp": "2026-08-07T02:09:21.524480+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "3D Printer Running - Playroom Light & Basement Heat", "description": "When the 3D printer running helper turns on (print started), turn on the playroom light and bedroom lamp and set the basement to 22 degrees C. When it turns off (print ended), turn off only the playroom light.", "triggers": [{"trigger": "state", "entity_id": "input_boolean.3d_printer_running", "to": "on", "id": "printer_started"}, {"trigger": "state", "entity_id": "input_boolean.3d_printer_running", "to": "off", "id": "printer_stopped"}], "actions": [{"choose": [{"conditions": ["[REDACTED]"], "sequence": ["[REDACTED]", "[REDACTED]", "[REDACTED]"]}, {"conditions": ["[REDACTED]"], "sequence": ["[REDACTED]"]}]}], "mode": "single"}, "identifier": null, "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 410.34889221191406, "success": true, "error_message": null, "response_size_bytes": 241, "user_context": null} diff --git a/automations.yaml b/automations.yaml index e5c07f7..46881b3 100644 --- a/automations.yaml +++ b/automations.yaml @@ -3205,3 +3205,43 @@ temperature: 22 hvac_mode: heat mode: single +- id: '1786068561172' + alias: 3D Printer Running - Playroom Light & Basement Heat + description: When the 3D printer running helper turns on (print started), turn on + the playroom light and bedroom lamp and set the basement to 22 degrees C. When + it turns off (print ended), turn off only the playroom light. + triggers: + - trigger: state + entity_id: input_boolean.3d_printer_running + to: 'on' + id: printer_started + - trigger: state + entity_id: input_boolean.3d_printer_running + to: 'off' + id: printer_stopped + actions: + - choose: + - conditions: + - condition: trigger + id: printer_started + sequence: + - action: light.turn_on + target: + entity_id: light.playroom_light + - action: light.turn_on + target: + entity_id: light.bedroom_lamp + - action: climate.set_temperature + target: + entity_id: climate.basement + data: + temperature: 22 + hvac_mode: heat + - conditions: + - condition: trigger + id: printer_stopped + sequence: + - action: light.turn_off + target: + entity_id: light.playroom_light + mode: single diff --git a/zigbee2mqtt/state.json b/zigbee2mqtt/state.json index aaa4227..9ad039c 100644 --- a/zigbee2mqtt/state.json +++ b/zigbee2mqtt/state.json @@ -4,7 +4,7 @@ "state": "ON", "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 121.6, + "voltage": 122, "countdown_to_turn_on": 0, "ac_frequency": 60, "power_factor": 0.13, @@ -22,12 +22,12 @@ }, "0xffffb40e0607af27": { "state": "ON", - "voltage": 122.3, + "voltage": 121.3, "ac_frequency": 60, "led_brightness": 100, "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, - "power": 2.7, + "power": 2.8, "current": 0.12, "energy": 26.75, "power_factor": 0.16, @@ -45,9 +45,9 @@ "state": "ON", "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 121.2, + "voltage": 121.6, "countdown_to_turn_on": 0, - "energy": 49.8, + "energy": 49.82, "power_factor": 0.2, "ac_frequency": 60, "update": { @@ -58,8 +58,8 @@ "latest_release_notes": null }, "linkquality": 134, - "power": 0.4, - "current": 0.04, + "power": 0.9, + "current": 0.01, "power_on_behavior": "on" }, "0xb40e060fffe031e3": { @@ -77,10 +77,10 @@ "voltage": 120.3, "state": "ON", "ac_frequency": 60, - "energy": 101.47, - "power": 0.8, - "current": 0.02, - "power_factor": 0.41, + "energy": 101.51, + "power": 98.3, + "current": 0.88, + "power_factor": 0.95, "update": { "state": "idle", "installed_version": 268513381, @@ -96,12 +96,12 @@ "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, "voltage": 121.6, - "energy": 43.29, + "energy": 43.3, "state": "ON", - "power": 30.9, - "current": 0.39, + "power": 23.9, + "current": 0.35, "ac_frequency": 60, - "power_factor": 0.64, + "power_factor": 0.56, "update": { "state": "idle", "installed_version": 268513381, @@ -114,12 +114,12 @@ }, "0xffffb40e060895b3": { "state": "ON", - "voltage": 120.9, + "voltage": 121.9, "ac_frequency": 60, "energy": 6.29, "current": 0.01, "power": 0.1, - "power_factor": 0.11, + "power_factor": 0.22, "linkquality": 123, "update": { "state": "idle", @@ -136,7 +136,7 @@ "0xffffb40e0608864e": { "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 120.9, + "voltage": 122, "energy": 17.34, "countdown_to_turn_on": 0, "state": "ON", @@ -172,13 +172,13 @@ "0xffffb40e060893d8": { "state": "ON", "led_brightness": 100, - "voltage": 121.9, + "voltage": 122.2, "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, "energy": 3.03, "power_on_behavior": "on", "linkquality": 87, - "current": 0.01, + "current": 0.03, "ac_frequency": 60, "update": { "state": "idle", @@ -187,8 +187,8 @@ "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 }, - "power_factor": 0, - "power": 0 + "power_factor": 0.13, + "power": 0.2 }, "0xa4c1380d0679ffff": { "battery": 100, @@ -245,7 +245,7 @@ }, "0xb40e060fffe717c5": { "battery": 100, - "occupancy": true, + "occupancy": false, "tamper": false, "battery_low": false, "linkquality": 72,