.ha_mcp/logs/mcp_usage.jsonl, automations.yaml
This commit is contained in:
@@ -435,3 +435,5 @@
|
||||
{"timestamp": "2026-08-02T17:07:09.291991+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.ikea_bilresa_e2489_dual_button_matter"}, "execution_time_ms": 92.4692153930664, "success": true, "error_message": null, "response_size_bytes": 950, "user_context": null}
|
||||
{"timestamp": "2026-08-02T17:08:20.260655+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "OFFICE: IKEA BILRESA E2489 Dual Button (Matter) - In Meeting and Away Mode", "description": "Ikea BILRESA E2489 Dual Button controls in Meeting toggle, and enable Away Mode", "use_blueprint": {"path": "censay/ikea-bilresa-e2489-matter-smart-button.yaml", "input": {"target_device": "0c00a80e3106a9d7089f44c4781e0187", "button1_event": "event.office_button_button_1", "button2_event": "event.office_button_button_2", "button1_single": [{"action": "input_boolean.toggle", "metadata": {}, "target": {"entity_id": "[REDACTED]"}, "data": {}}], "button2_single": [{"action": "input_boolean.toggle", "metadata": {}, "target": {"entity_id": "[REDACTED]"}, "data": {}}], "button2_double": [{"choose": {"conditions": "[REDACTED]", "default": "[REDACTED]"}}], "button1_long_press": [], "button2_long_press": []}}}, "identifier": "automation.ikea_bilresa_e2489_dual_button_matter", "python_transform": null, "config_hash": "0c5505fbf78217ff", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 50.73690414428711, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"Invalid automation configuration: API error: 400 - Message malformed: Unexpected value for condition: 'None'. Expected a condition, a list of conditions or a valid template @ data['actions'][1]['choose'][5]['sequence'][0]['choose'][0]['conditions'][0]\",\n \"suggestion\": \"Check automation configuration format\",\n \"suggestions\": [\n \"Check automation configuration format\",\n \"Ensure required fields: alias, triggers, actions\",\n \"Use entity_id format: automation.morning_routine or unique_id\",\n \"Use ha_search(domain_filter='automation') to find automations\",\n \"Use ha_get_skill_guide for automation examples\",\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 \"identifier\": \"automation.ikea_bilresa_e2489_dual_button_matter\"\n}", "response_size_bytes": null, "user_context": null}
|
||||
{"timestamp": "2026-08-02T17:08:35.270330+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "OFFICE: IKEA BILRESA E2489 Dual Button (Matter) - In Meeting and Away Mode", "description": "Ikea BILRESA E2489 Dual Button controls in Meeting toggle, and enable Away Mode", "use_blueprint": {"path": "censay/ikea-bilresa-e2489-matter-smart-button.yaml", "input": {"target_device": "0c00a80e3106a9d7089f44c4781e0187", "button1_event": "event.office_button_button_1", "button2_event": "event.office_button_button_2", "button1_single": [{"action": "input_boolean.toggle", "metadata": {}, "target": {"entity_id": "[REDACTED]"}, "data": {}}], "button2_single": [{"action": "input_boolean.toggle", "metadata": {}, "target": {"entity_id": "[REDACTED]"}, "data": {}}], "button2_double": [{"choose": {"conditions": "[REDACTED]", "default": "[REDACTED]"}}], "button1_long_press": [], "button2_long_press": []}}}, "identifier": "automation.ikea_bilresa_e2489_dual_button_matter", "python_transform": null, "config_hash": "0c5505fbf78217ff", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 76.14254951477051, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"Invalid automation configuration: API error: 400 - Message malformed: Unexpected value for condition: 'None'. Expected a condition, a list of conditions or a valid template @ data['actions'][1]['choose'][5]['sequence'][0]['choose'][0]['conditions'][0]\",\n \"suggestion\": \"Check automation configuration format\",\n \"suggestions\": [\n \"Check automation configuration format\",\n \"Ensure required fields: alias, triggers, actions\",\n \"Use entity_id format: automation.morning_routine or unique_id\",\n \"Use ha_search(domain_filter='automation') to find automations\",\n \"Use ha_get_skill_guide for automation examples\",\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 \"identifier\": \"automation.ikea_bilresa_e2489_dual_button_matter\"\n}", "response_size_bytes": null, "user_context": null}
|
||||
{"timestamp": "2026-08-02T17:08:47.827987+00:00", "tool_name": "ha_config_set_automation", "parameters": {"config": {"alias": "OFFICE: IKEA BILRESA E2489 Dual Button (Matter) - In Meeting and Away Mode", "description": "Ikea BILRESA E2489 Dual Button controls in Meeting toggle, and enable Away Mode", "use_blueprint": {"path": "censay/ikea-bilresa-e2489-matter-smart-button.yaml", "input": {"target_device": "0c00a80e3106a9d7089f44c4781e0187", "button1_event": "event.office_button_button_1", "button2_event": "event.office_button_button_2", "button1_single": [{"action": "input_boolean.toggle", "metadata": {}, "target": {"entity_id": "[REDACTED]"}, "data": {}}], "button2_single": [{"action": "input_boolean.toggle", "metadata": {}, "target": {"entity_id": "[REDACTED]"}, "data": {}}], "button2_double": [{"choose": ["[REDACTED]"], "default": ["[REDACTED]", "[REDACTED]"]}], "button1_long_press": [], "button2_long_press": []}}}, "identifier": "automation.ikea_bilresa_e2489_dual_button_matter", "python_transform": null, "config_hash": "0c5505fbf78217ff", "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 274.07312393188477, "success": true, "error_message": null, "response_size_bytes": 62307, "user_context": null}
|
||||
{"timestamp": "2026-08-02T17:08:52.503058+00:00", "tool_name": "ha_config_get_automation", "parameters": {"identifier": "automation.ikea_bilresa_e2489_dual_button_matter"}, "execution_time_ms": 71.08163833618164, "success": true, "error_message": null, "response_size_bytes": 1803, "user_context": null}
|
||||
|
||||
+36
-1
@@ -2017,7 +2017,42 @@
|
||||
target:
|
||||
entity_id: input_boolean.away_mode
|
||||
data: {}
|
||||
button2_double: []
|
||||
button2_double:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: '{{ states(''input_text.office_lamp_previous_color'')
|
||||
== '''' }}'
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.office_lamp
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.office_lamp_previous_color
|
||||
data:
|
||||
value: '{{ state_attr(''light.office_lamp'', ''rgb_color'') | join('','')
|
||||
}}'
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.office_lamp
|
||||
data:
|
||||
rgb_color:
|
||||
- 135
|
||||
- 206
|
||||
- 250
|
||||
default:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: light.office_lamp
|
||||
data:
|
||||
rgb_color: '{{ states(''input_text.office_lamp_previous_color'').split('','')
|
||||
| map(''int'') | list }}'
|
||||
- action: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.office_lamp_previous_color
|
||||
data:
|
||||
value: ''
|
||||
button1_long_press: []
|
||||
button2_long_press: []
|
||||
- id: '1783972932942'
|
||||
|
||||
Reference in New Issue
Block a user