diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index ab7960b7..8ab58484 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -1895,3 +1895,4 @@ {"timestamp": "2026-08-24T00:54:05.734974+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "automation.alert_thread_node_offline", "fields": ["state", "attributes"], "attribute_keys": ["last_triggered", "friendly_name"]}, "execution_time_ms": 15.182018280029297, "success": true, "error_message": null, "response_size_bytes": 483, "user_context": null} {"timestamp": "2026-08-24T16:35:02.619391+00:00", "tool_name": "ha_search", "parameters": {"query": "3D Printer Running", "domain_filter": null, "area_filter": null, "search_types": ["automation"], "limit": 10, "offset": 0, "exact_match": true, "include_hidden": true, "include_config": false, "group_by_domain": false, "per_domain_limit": null, "state_filter": null, "result_fields": null, "fields": null, "config_time_budget": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 9030.248165130615, "success": true, "error_message": null, "response_size_bytes": 1129, "user_context": null} {"timestamp": "2026-08-24T16:35:11.123052+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.3d_printer_running_playroom_light_basement_heat"}, "execution_time_ms": 99.14183616638184, "success": true, "error_message": null, "response_size_bytes": 1678, "user_context": null} +{"timestamp": "2026-08-24T16:37:56.597791+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.3d_printer_running_playroom_light_basement_heat", "python_transform": "for b in config['actions'][0]['choose']:\n if b['conditions'][0].get('id') == 'printer_stopped':\n lamp_seq = b['sequence']\n b['sequence'] = [{'parallel': [\n {'sequence': lamp_seq},\n {'sequence': [\n {'delay': {'hours': 1}},\n {'action': 'switch.turn_off', 'target': {'entity_id': 'switch.filter'}}\n ]}\n ]}]\nconfig['description'] = 'When the 3D printer running helper turns on (print started), set the 3D printer lights to bright white, turn on the bedroom lamp, set the basement to 22 degrees C, and turn on the filter. When it turns off (print ended), set the 3D printer lights to light blue at 25%, turn off the bedroom lamp after 10 minutes, and turn off the filter after 1 hour.'", "config_hash": "f3bc8f346ca90ec2", "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 1400.2737998962402, "success": true, "error_message": null, "response_size_bytes": 1165, "user_context": null} diff --git a/automations.yaml b/automations.yaml index bb5970e5..5a05ab2c 100644 --- a/automations.yaml +++ b/automations.yaml @@ -3194,9 +3194,10 @@ - id: '1786068561172' alias: 3D Printer Running - Playroom Light & Basement Heat description: When the 3D printer running helper turns on (print started), set the - 3D printer lights to bright white, turn on the bedroom lamp, and set the basement - to 22 degrees C. When it turns off (print ended), set the 3D printer lights to - light blue at 25% and turn off the bedroom lamp after 10 minutes. + 3D printer lights to bright white, turn on the bedroom lamp, set the basement + to 22 degrees C, and turn on the filter. When it turns off (print ended), set + the 3D printer lights to light blue at 25%, turn off the bedroom lamp after 10 + minutes, and turn off the filter after 1 hour. triggers: - trigger: state entity_id: input_boolean.3d_printer_running @@ -3237,20 +3238,28 @@ - condition: trigger id: printer_stopped sequence: - - action: light.turn_on - target: - entity_id: light.3d_printer_lights - data: - brightness_pct: 25 - rgb_color: - - 173 - - 216 - - 230 - - delay: - minutes: 10 - - action: light.turn_off - target: - entity_id: light.bedroom_lamp + - parallel: + - sequence: + - action: light.turn_on + target: + entity_id: light.3d_printer_lights + data: + brightness_pct: 25 + rgb_color: + - 173 + - 216 + - 230 + - delay: + minutes: 10 + - action: light.turn_off + target: + entity_id: light.bedroom_lamp + - sequence: + - delay: + hours: 1 + - action: switch.turn_off + target: + entity_id: switch.filter mode: restart - id: '1786107704090' alias: Count OctoPrint Print Outcomes