diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 2988bd6..7446c07 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -13,3 +13,4 @@ {"timestamp": "2026-07-23T19:06:38.734934+00:00", "tool_name": "ha_search", "parameters": {"query": "entryway motion", "domain_filter": null, "area_filter": null, "search_types": null, "limit": 10, "offset": 0, "exact_match": false, "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": 7804.042100906372, "success": true, "error_message": null, "response_size_bytes": 4501, "user_context": null} {"timestamp": "2026-07-23T19:07:02.132122+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.entryway_lamp_temporary"}, "execution_time_ms": 86.78007125854492, "success": true, "error_message": null, "response_size_bytes": 633, "user_context": null} {"timestamp": "2026-07-23T19:07:06.747984+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.office_lamp_on_at_6pm"}, "execution_time_ms": 103.78479957580566, "success": true, "error_message": null, "response_size_bytes": 413, "user_context": null} +{"timestamp": "2026-07-23T19:07:15.081115+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.office_lamp_on_at_6pm", "python_transform": "config['triggers'].append({'trigger': 'state', 'entity_id': ['binary_sensor.entryway'], 'to': ['on'], 'id': 'entryway_motion'})\nconfig['description'] = 'Turn on the office lamp every day at 6:00 PM, or whenever motion is detected in the entryway'", "config_hash": "5f51e207357bbf3f", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 350.6944179534912, "success": true, "error_message": null, "response_size_bytes": 59968, "user_context": null} diff --git a/automations.yaml b/automations.yaml index 75385ff..04d81f2 100644 --- a/automations.yaml +++ b/automations.yaml @@ -2960,10 +2960,17 @@ mode: single - id: '1784833526221' alias: Office Lamp On at 6PM - description: Turn on the office lamp every day at 6:00 PM + description: Turn on the office lamp every day at 6:00 PM, or whenever motion is + detected in the entryway triggers: - at: '18:00:00' trigger: time + - trigger: state + entity_id: + - binary_sensor.entryway + to: + - 'on' + id: entryway_motion actions: - action: light.turn_on target: