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

This commit is contained in:
Home Assistant Version Control
2026-08-02 17:05:27 +00:00
parent f3b037910e
commit 785b63932e
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -420,3 +420,5 @@
{"timestamp": "2026-08-02T17:03:34.521617+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "light", "service": "turn_on", "entity_id": "light.office_lamp", "data": {"rgb_color": "{{ states('input_text.office_lamp_previous_color').split(',') | map('int') | list }}", "entity_id": "light.office_lamp"}, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 4.5871734619140625, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"VALIDATION_FAILED\",\n \"message\": \"API error: 400 - 400: Bad Request\",\n \"suggestion\": \"Verify light.office_lamp exists using ha_get_state()\",\n \"suggestions\": [\n \"Verify light.office_lamp exists using ha_get_state()\",\n \"Check available services for light domain using ha_get_skill_guide\",\n \"Use ha_search() to find correct entity IDs\",\n \"For automation: ha_call_service('automation', 'trigger', entity_id='light.office_lamp')\",\n \"For universal control: ha_call_service('homeassistant', 'toggle', entity_id='light.office_lamp')\"\n ]\n },\n \"domain\": \"light\",\n \"service\": \"turn_on\",\n \"entity_id\": \"light.office_lamp\"\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-08-02T17:04:36.087464+00:00", "tool_name": "ha_get_state", "parameters": {"entity_id": "light.office_lamp", "fields": ["state", "attributes"], "attribute_keys": ["rgb_color", "color_mode", "brightness", "color_temp_kelvin", "hs_color"]}, "execution_time_ms": 5.828380584716797, "success": true, "error_message": null, "response_size_bytes": 516, "user_context": null}
{"timestamp": "2026-08-02T17:04:36.543574+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "input_text", "service": "set_value", "entity_id": "input_text.office_lamp_previous_color", "data": {"value": "50,50,50", "entity_id": "input_text.office_lamp_previous_color"}, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 10.24770736694336, "success": true, "error_message": null, "response_size_bytes": 522, "user_context": null}
{"timestamp": "2026-08-02T17:05:21.308882+00:00", "tool_name": "ha_config_set_script", "parameters": {"script_id": "test_rgb_restore", "config": {"alias": "TEMP Test RGB Restore", "sequence": [{"action": "light.turn_on", "target": {"entity_id": "light.office_lamp"}, "data": {"rgb_color": "{{ states('input_text.office_lamp_previous_color').split(',') | map('int') | list }}"}}]}, "python_transform": null, "config_hash": null, "category": null, "wait": true, "MandatoryBPS": true, "BestPracticeKey": null}, "execution_time_ms": 203.22751998901367, "success": true, "error_message": null, "response_size_bytes": 62179, "user_context": null}
{"timestamp": "2026-08-02T17:05:24.810196+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "script", "service": "test_rgb_restore", "entity_id": "script.test_rgb_restore", "data": {}, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 122.13563919067383, "success": true, "error_message": null, "response_size_bytes": 601, "user_context": null}
+9
View File
@@ -240,3 +240,12 @@ light_color_temp_helper:
name: Mode
description: Select switch mode
description: "Switch color temperature of light in steps \nVersion: 2026-03-22"
test_rgb_restore:
alias: TEMP Test RGB Restore
sequence:
- action: light.turn_on
target:
entity_id: light.office_lamp
data:
rgb_color: '{{ states(''input_text.office_lamp_previous_color'').split('','')
| map(''int'') | list }}'