From 38a584213220c6aaae3d9ae0ef18bf266444ce2e Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Wed, 26 Aug 2026 04:31:28 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl, automations.yaml --- .ha_mcp/logs/mcp_usage.jsonl | 1 + automations.yaml | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 24eaa32d..8b050695 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -2140,3 +2140,4 @@ {"timestamp": "2026-08-26T04:31:16.984507+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_desk_lamp_meeting_alert", "python_transform": "config['actions'][0]['choose'][0]['sequence'][0]['data']['snapshot_entities'][0] = 'light.office_lamp_2'; config['actions'][0]['choose'][0]['sequence'][1]['target']['entity_id'] = 'light.office_lamp_2'; config['actions'][0]['choose'][1]['sequence'][0]['data']['snapshot_entities'][0] = 'light.office_lamp_2'; config['actions'][0]['choose'][1]['sequence'][1]['target']['entity_id'] = 'light.office_lamp_2'", "config_hash": "b3ca17bbb2fa10ed", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 559.0348243713379, "success": true, "error_message": null, "response_size_bytes": 60143, "user_context": null} {"timestamp": "2026-08-26T04:31:19.420574+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_teams_webhook_busy_ligh", "python_transform": "config['actions'][0]['choose'][0]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][0]['choose'][1]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'", "config_hash": "09b42740ea112d26", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 691.199541091919, "success": true, "error_message": null, "response_size_bytes": 60380, "user_context": null} {"timestamp": "2026-08-26T04:31:21.356628+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_manual_meeting_status_busy_ligh", "python_transform": "config['triggers'][1]['entity_id'] = 'binary_sensor.night_light_occupancy_2'; config['triggers'][2]['entity_id'] = 'binary_sensor.night_light_occupancy_2'; config['actions'][0]['choose'][0]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][0]['choose'][1]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][0]['choose'][2]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][0]['choose'][3]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'", "config_hash": "9df44eab3a8eedb5", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 619.4148063659668, "success": true, "error_message": null, "response_size_bytes": 60297, "user_context": null} +{"timestamp": "2026-08-26T04:31:27.582043+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_manual_meeting_status_busy_light_working_hours", "python_transform": "config['triggers'][2]['entity_id'] = 'binary_sensor.night_light_occupancy_2'; config['triggers'][3]['entity_id'] = 'binary_sensor.night_light_occupancy_2'; config['actions'][0]['variables']['is_dark'] = config['actions'][0]['variables']['is_dark'].replace('sensor.night_light_illuminance','sensor.night_light_illuminance_2'); config['actions'][1]['choose'][0]['sequence'][0]['choose'][0]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][1]['choose'][0]['sequence'][0]['choose'][1]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][1]['choose'][1]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][1]['choose'][2]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][1]['choose'][3]['sequence'][1]['target']['entity_id'] = 'light.night_light_2'; config['actions'][1]['choose'][4]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'; config['actions'][1]['choose'][5]['sequence'][0]['target']['entity_id'] = 'light.night_light_2'", "config_hash": "92a53d9976cc3182", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 1255.3043365478516, "success": true, "error_message": null, "response_size_bytes": 61647, "user_context": null} diff --git a/automations.yaml b/automations.yaml index a8906674..9dc5ee46 100644 --- a/automations.yaml +++ b/automations.yaml @@ -1798,7 +1798,7 @@ state: 'on' sequence: - target: - entity_id: light.night_light + entity_id: light.night_light_2 data: brightness_pct: 100 rgb_color: @@ -1812,7 +1812,7 @@ state: 'off' sequence: - target: - entity_id: light.night_light + entity_id: light.night_light_2 data: brightness_pct: 20 rgb_color: @@ -2286,11 +2286,11 @@ entity_id: input_boolean.away_mode trigger: state - id: motion_detected - entity_id: binary_sensor.night_light_occupancy + entity_id: binary_sensor.night_light_occupancy_2 trigger: state to: 'on' - id: motion_cleared - entity_id: binary_sensor.night_light_occupancy + entity_id: binary_sensor.night_light_occupancy_2 trigger: state to: 'off' - id: work_day_started @@ -2305,7 +2305,7 @@ is_work_hours: '{{ 8 <= now().hour < 18 and now().isoweekday() in [1,2,3,4,5] }}' is_away: '{{ is_state(''input_boolean.away_mode'', ''on'') }}' - is_dark: '{{ states(''sensor.night_light_illuminance'') | float(0) < 15 }}' + is_dark: '{{ states(''sensor.night_light_illuminance_2'') | float(0) < 15 }}' - choose: - alias: '--- WORKING HOURS MODE ---' conditions: @@ -2323,7 +2323,7 @@ sequence: - action: light.turn_on target: - entity_id: light.night_light + entity_id: light.night_light_2 data: brightness_pct: 100 rgb_color: @@ -2338,7 +2338,7 @@ sequence: - action: light.turn_on target: - entity_id: light.night_light + entity_id: light.night_light_2 data: brightness_pct: 30 rgb_color: @@ -2352,7 +2352,7 @@ sequence: - action: light.turn_off target: - entity_id: light.night_light + entity_id: light.night_light_2 - alias: '--- AFTER HOURS / AWAY: MOTION DETECTED ---' conditions: - condition: template @@ -2361,7 +2361,7 @@ sequence: - action: light.turn_on target: - entity_id: light.night_light + entity_id: light.night_light_2 data: brightness_pct: 40 color_temp_kelvin: 2700 @@ -2374,7 +2374,7 @@ - delay: 00:00:05 - action: light.turn_off target: - entity_id: light.night_light + entity_id: light.night_light_2 - alias: '--- INSTANT AWAY TRANSITION ---' conditions: - condition: template @@ -2382,7 +2382,7 @@ sequence: - action: light.turn_off target: - entity_id: light.night_light + entity_id: light.night_light_2 - alias: '--- FALLBACK: MEETING ENDS AFTER HOURS ---' conditions: - condition: template @@ -2391,7 +2391,7 @@ sequence: - action: light.turn_off target: - entity_id: light.night_light + entity_id: light.night_light_2 mode: restart - id: '1784246257858' alias: Sync Alexa Volume Slider