diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index d0a6ae43..83d50754 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -2867,3 +2867,4 @@ {"timestamp": "2026-08-26T17:18:23.510513+00:00", "tool_name": "ha_get_device", "parameters": {"device_id": null, "entity_id": "binary_sensor.night_light_occupancy", "integration": null, "area_id": null, "manufacturer": null, "limit": 50, "offset": 0, "detail_level": "summary"}, "execution_time_ms": 210.2060317993164, "success": true, "error_message": null, "response_size_bytes": 4978, "user_context": null} {"timestamp": "2026-08-26T17:18:43.634122+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.office_teams_webhook_busy_ligh"}, "execution_time_ms": 76.16567611694336, "success": true, "error_message": null, "response_size_bytes": 1057, "user_context": null} {"timestamp": "2026-08-26T17:18:43.898660+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.office_manual_meeting_status_busy_light_working_hours"}, "execution_time_ms": 54.89850044250488, "success": true, "error_message": null, "response_size_bytes": 3803, "user_context": null} +{"timestamp": "2026-08-26T17:19:10.367243+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_manual_meeting_status_busy_light_working_hours", "python_transform": "config['actions'][0]['variables']['is_dark'] = \"{{ states('sensor.night_light_illuminance') | float(0) < 15 }}\"", "config_hash": "7229e280401b260d", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 1736.283540725708, "success": true, "error_message": null, "response_size_bytes": 60707, "user_context": null} diff --git a/automations.yaml b/automations.yaml index 1111341f..b44703e7 100644 --- a/automations.yaml +++ b/automations.yaml @@ -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_2'') | float(0) < 15 }}' + is_dark: '{{ states(''sensor.night_light_illuminance'') | float(0) < 15 }}' - choose: - alias: '--- WORKING HOURS MODE ---' conditions: