diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index c2baad20..3c2a3543 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -3072,3 +3072,4 @@ {"timestamp": "2026-08-28T06:17:17.657483+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": ["light.3d_printer_lights_local", "input_boolean.3d_printer_lights", "light.bedroom_lamp_2"], "fields": ["entity_id", "state"], "attribute_keys": null}, "execution_time_ms": 92.13829040527344, "success": true, "error_message": null, "response_size_bytes": 669, "user_context": null} {"timestamp": "2026-08-28T06:17:18.752536+00:00", "tool_name": "ha_get_history", "parameters": {"entity_ids": "input_boolean.3d_printer_lights", "source": "history", "start_time": "2d", "end_time": null, "minimal_response": true, "significant_changes_only": true, "limit": 40, "offset": null, "period": "day", "statistic_types": null, "order": "desc", "fields": null, "ctx": {"_STATE_TTL_SECONDS": 86400}}, "execution_time_ms": 32.74345397949219, "success": true, "error_message": null, "response_size_bytes": 5015, "user_context": null} {"timestamp": "2026-08-28T06:17:37.794874+00:00", "tool_name": "ha_get_entity", "parameters": {"entity_id": "light.3d_printer_lights_local", "unique_id": null, "domain": null, "platform": null}, "execution_time_ms": 27.77099609375, "success": true, "error_message": null, "response_size_bytes": 600, "user_context": null} +{"timestamp": "2026-08-28T06:18:58.423164+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.3d_printer_light_sync_boolean", "python_transform": "config['triggers'][0]['id'] = 'light_changed'; config['triggers'].append({'trigger': 'homeassistant', 'event': 'start', 'id': 'ha_start'}); config['actions'].insert(0, {'if': [{'condition': 'trigger', 'id': 'ha_start'}], 'then': [{'delay': {'seconds': 15}}]})", "config_hash": "cba31906167d3daf", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 1197.1848011016846, "success": true, "error_message": null, "response_size_bytes": 60378, "user_context": null} diff --git a/automations.yaml b/automations.yaml index fd5c7e78..9eb75aa4 100644 --- a/automations.yaml +++ b/automations.yaml @@ -3697,11 +3697,21 @@ triggers: - trigger: state entity_id: light.3d_printer_lights_local + id: light_changed + - trigger: homeassistant + event: start + id: ha_start conditions: - condition: template value_template: '{{ is_state(''input_boolean.3d_printer_lights'', ''on'') != is_state(''light.3d_printer_lights_local'', ''on'') }}' actions: + - if: + - condition: trigger + id: ha_start + then: + - delay: + seconds: 15 - if: - condition: state entity_id: light.3d_printer_lights_local