From bc07fd1017689dc751587bccbfacf753a76dc716 Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Tue, 28 Jul 2026 23:44:46 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl, automations.yaml --- .ha_mcp/logs/mcp_usage.jsonl | 2 + automations.yaml | 84 +++++++++++++++++++++++++----------- 2 files changed, 62 insertions(+), 24 deletions(-) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 2a906b3..5506894 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -203,3 +203,5 @@ {"timestamp": "2026-07-28T23:43:34.108567+00:00", "tool_name": "ha_search", "parameters": {"query": "in meeting toggle", "domain_filter": null, "area_filter": null, "search_types": null, "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": 5540.334701538086, "success": true, "error_message": null, "response_size_bytes": 1255, "user_context": null} {"timestamp": "2026-07-28T23:43:36.628935+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "light.office_lamp", "fields": null, "attribute_keys": null}, "execution_time_ms": 8.53872299194336, "success": true, "error_message": null, "response_size_bytes": 1008, "user_context": null} {"timestamp": "2026-07-28T23:43:36.807208+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "input_boolean.in_a_meeting", "fields": null, "attribute_keys": null}, "execution_time_ms": 5.08880615234375, "success": true, "error_message": null, "response_size_bytes": 749, "user_context": null} +{"timestamp": "2026-07-28T23:44:39.494746+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"id": "1784073759556", "alias": "Office: Desk Lamp Meeting Alert", "description": "Flashes the desk lamp red when meeting starts, green when it ends, then returns to original state.", "triggers": [{"trigger": "state", "entity_id": "input_boolean.in_a_meeting", "to": "on", "id": "meeting_on"}, {"trigger": "state", "entity_id": "input_boolean.in_a_meeting", "to": "off", "id": "meeting_off"}], "conditions": [{"condition": "state", "entity_id": "input_boolean.meeting_lamp_override", "state": "off"}, {"condition": "state", "entity_id": "input_boolean.away_mode", "state": "off"}], "actions": [{"choose": [{"conditions": ["[REDACTED]"], "sequence": ["[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]"]}, {"conditions": ["[REDACTED]"], "sequence": ["[REDACTED]", "[REDACTED]", "[REDACTED]", "[REDACTED]"]}], "default": []}], "mode": "queued", "max": 2}, "identifier": "automation.office_desk_lamp_meeting_alert", "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 179.1234016418457, "success": true, "error_message": null, "response_size_bytes": 59553, "user_context": null} +{"timestamp": "2026-07-28T23:44:43.113017+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.office_desk_lamp_meeting_alert"}, "execution_time_ms": 74.56326484680176, "success": true, "error_message": null, "response_size_bytes": 1776, "user_context": null} diff --git a/automations.yaml b/automations.yaml index 6a44aa2..a9743e2 100644 --- a/automations.yaml +++ b/automations.yaml @@ -2147,11 +2147,17 @@ dim_turns_lights_on: true - id: '1784073759556' alias: 'Office: Desk Lamp Meeting Alert' - description: Flashes the desk lamp color temperature for a few seconds when a meeting - status changes (on or off) to confirm the button press registered. + description: Flashes the desk lamp red when meeting starts, green when it ends, + then returns to original state. triggers: - trigger: state entity_id: input_boolean.in_a_meeting + to: 'on' + id: meeting_on + - trigger: state + entity_id: input_boolean.in_a_meeting + to: 'off' + id: meeting_off conditions: - condition: state entity_id: input_boolean.meeting_lamp_override @@ -2160,28 +2166,58 @@ entity_id: input_boolean.away_mode state: 'off' actions: - - action: scene.create - data: - scene_id: desk_lamp_before_alert - snapshot_entities: - - light.office_lamp - - action: light.turn_on - target: - entity_id: light.office_lamp - data: - brightness_pct: 100 - color_temp_kelvin: 2261 - transition: 1 - - delay: - hours: 0 - minutes: 0 - seconds: 2 - milliseconds: 0 - - action: scene.turn_on - target: - entity_id: scene.desk_lamp_before_alert - data: - transition: 1 + - choose: + - conditions: + - condition: trigger + id: meeting_on + sequence: + - action: scene.create + data: + scene_id: desk_lamp_before_alert + snapshot_entities: + - light.office_lamp + - action: light.turn_on + target: + entity_id: light.office_lamp + data: + brightness_pct: 100 + hs_color: + - 0 + - 100 + transition: 0.5 + - delay: + seconds: 1.5 + - action: scene.turn_on + target: + entity_id: scene.desk_lamp_before_alert + data: + transition: 1 + - conditions: + - condition: trigger + id: meeting_off + sequence: + - action: scene.create + data: + scene_id: desk_lamp_before_alert + snapshot_entities: + - light.office_lamp + - action: light.turn_on + target: + entity_id: light.office_lamp + data: + brightness_pct: 100 + hs_color: + - 120 + - 100 + transition: 0.5 + - delay: + seconds: 1.5 + - action: scene.turn_on + target: + entity_id: scene.desk_lamp_before_alert + data: + transition: 1 + default: [] mode: queued max: 2 - id: '1784153893584'