From 2829438493ea1d0efa8929573c789978ea9120ad Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Wed, 26 Aug 2026 05:57:41 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl, automations.yaml --- .ha_mcp/logs/mcp_usage.jsonl | 1 + automations.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index def6c97b..adda152c 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -2405,3 +2405,4 @@ {"timestamp": "2026-08-26T05:55:52.542182+00:00", "tool_name": "ha_search", "parameters": {"query": "3d_printer", "domain_filter": "light", "area_filter": null, "search_types": null, "limit": 20, "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": 437.81065940856934, "success": true, "error_message": null, "response_size_bytes": 920, "user_context": null} {"timestamp": "2026-08-26T05:56:08.603858+00:00", "tool_name": "ha_search", "parameters": {"query": "input_boolean.3d_printer_light", "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": 15709.805011749268, "success": true, "error_message": null, "response_size_bytes": 1384, "user_context": null} {"timestamp": "2026-08-26T05:56:55.894009+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "3D Printer Light - Toggle from Boolean", "description": "Turns 3D printer light on/off when input_boolean.3d_printer_light is toggled", "triggers": [{"trigger": "state", "entity_id": "input_boolean.3d_printer_light"}], "actions": [{"if": [{"condition": "state", "entity_id": "input_boolean.3d_printer_light", "state": "on"}], "then": [{"action": "light.turn_on", "target": {"entity_id": "[REDACTED]"}, "data": {}}], "else": [{"action": "light.turn_off", "target": {"entity_id": "[REDACTED]"}, "data": {}}]}], "mode": "single"}, "identifier": null, "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 1126.3349056243896, "success": true, "error_message": null, "response_size_bytes": 219, "user_context": null} +{"timestamp": "2026-08-26T05:57:35.539979+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "3D Printer Light - Sync Boolean", "description": "Syncs input_boolean.3d_printer_light when 3D printer light is toggled manually", "triggers": [{"trigger": "state", "entity_id": "light.3d_printer_lights"}], "conditions": [{"condition": "template", "value_template": "{{ is_state('input_boolean.3d_printer_light', 'on') != is_state('light.3d_printer_lights', 'on') }}"}], "actions": [{"if": [{"condition": "state", "entity_id": "light.3d_printer_lights", "state": "on"}], "then": [{"action": "input_boolean.turn_on", "target": {"entity_id": "[REDACTED]"}, "data": {}}], "else": [{"action": "input_boolean.turn_off", "target": {"entity_id": "[REDACTED]"}, "data": {}}]}], "mode": "single"}, "identifier": null, "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": false, "BestPracticeKey": null}, "execution_time_ms": 701.0107040405273, "success": true, "error_message": null, "response_size_bytes": 5030, "user_context": null} diff --git a/automations.yaml b/automations.yaml index 36c241c3..de225eca 100644 --- a/automations.yaml +++ b/automations.yaml @@ -3604,3 +3604,30 @@ entity_id: light.3d_printer_lights data: {} mode: single +- id: '1787723854939' + alias: 3D Printer Light - Sync Boolean + description: Syncs input_boolean.3d_printer_light when 3D printer light is toggled + manually + triggers: + - trigger: state + entity_id: light.3d_printer_lights + conditions: + - condition: template + value_template: '{{ is_state(''input_boolean.3d_printer_light'', ''on'') != is_state(''light.3d_printer_lights'', + ''on'') }}' + actions: + - if: + - condition: state + entity_id: light.3d_printer_lights + state: 'on' + then: + - action: input_boolean.turn_on + target: + entity_id: input_boolean.3d_printer_light + data: {} + else: + - action: input_boolean.turn_off + target: + entity_id: input_boolean.3d_printer_light + data: {} + mode: single