.ha_mcp/logs/mcp_usage.jsonl, automations.yaml

This commit is contained in:
Home Assistant Version Control
2026-08-26 16:23:27 +00:00
parent 9f0de263f2
commit b5e0bb5dce
2 changed files with 6 additions and 5 deletions
+1
View File
@@ -2737,3 +2737,4 @@
{"timestamp": "2026-08-26T16:22:45.809500+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.playroom_light_toggle", "python_transform": "config['triggers'][0]['event_data']['entity_id'] = 'event.office_button_button_2'", "config_hash": "f2642eaf27a5035c", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 345.4403877258301, "success": true, "error_message": null, "response_size_bytes": 59802, "user_context": null}
{"timestamp": "2026-08-26T16:22:55.979258+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.ikea_bilresa_e2489_dual_button_matter"}, "execution_time_ms": 75.70958137512207, "success": true, "error_message": null, "response_size_bytes": 1815, "user_context": null}
{"timestamp": "2026-08-26T16:23:04.495627+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.ikea_bilresa_e2489_dual_button_matter", "python_transform": "config['use_blueprint']['input']['button1_event'] = 'event.office_button_button_1'; config['use_blueprint']['input']['button2_event'] = 'event.office_button_button_2'; input_data = config['use_blueprint']['input']; input_data['button2_double'][0]['sequence'][0]['target']['entity_id'] = 'light.office_lamp'; input_data['button2_double'][0]['sequence'][2]['target']['entity_id'] = 'light.office_lamp'; input_data['button2_double'][0]['sequence'][2]['data']['rgb_color'] = [135,206,250]; input_data['button2_double'][0]['default'][0]['target']['entity_id'] = 'light.office_lamp'", "config_hash": "18fb794fd924e183", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 69.52691078186035, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"Expression raised at runtime: KeyError: 'sequence'\",\n \"suggestion\": \"Verify referenced keys/indices exist in the input\",\n \"suggestions\": [\n \"Verify referenced keys/indices exist in the input\",\n \"Check that types match (e.g. dict vs list operations)\",\n \"Use .get(key, default) to handle missing keys\",\n \"Expression: config['use_blueprint']['input']['button1_event'] = 'event.office_button_button_1'; config['use_blue...\",\n \"For Home Assistant best-practice guidance, call ha_get_skill_guide(skill='home-assistant-best-practices') and consult the relevant reference file before retrying.\"\n ]\n },\n \"action\": \"python_transform\",\n \"identifier\": \"automation.ikea_bilresa_e2489_dual_button_matter\"\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-08-26T16:23:23.077137+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": null, "identifier": "automation.ikea_bilresa_e2489_dual_button_matter", "python_transform": "bp = config['use_blueprint']['input']; bp['button1_event'] = 'event.office_button_button_1'; bp['button2_event'] = 'event.office_button_button_2'; bp['button2_double'][0]['choose'][0]['sequence'][0]['target']['entity_id'] = 'light.office_lamp'; bp['button2_double'][0]['choose'][0]['sequence'][2]['target']['entity_id'] = 'light.office_lamp'; bp['button2_double'][0]['default'][0]['target']['entity_id'] = 'light.office_lamp'", "config_hash": "18fb794fd924e183", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 1099.1737842559814, "success": true, "error_message": null, "response_size_bytes": 60178, "user_context": null}
+5 -5
View File
@@ -2019,8 +2019,8 @@
path: censay/ikea-bilresa-e2489-matter-smart-button.yaml
input:
target_device: 0c00a80e3106a9d7089f44c4781e0187
button1_event: event.office_button_button_1_2
button2_event: event.office_button_button_2_2
button1_event: event.office_button_button_1
button2_event: event.office_button_button_2
button1_single:
- action: input_boolean.toggle
metadata: {}
@@ -2042,7 +2042,7 @@
sequence:
- action: light.turn_on
target:
entity_id: light.office_lamp_2
entity_id: light.office_lamp
- action: input_text.set_value
target:
entity_id: input_text.office_lamp_previous_color
@@ -2051,7 +2051,7 @@
}}'
- action: light.turn_on
target:
entity_id: light.office_lamp_2
entity_id: light.office_lamp
data:
rgb_color:
- 135
@@ -2060,7 +2060,7 @@
default:
- action: light.turn_on
target:
entity_id: light.office_lamp_2
entity_id: light.office_lamp
data:
rgb_color: '{{ states(''input_text.office_lamp_previous_color'').split('','')
| map(''int'') | list }}'