.ha_mcp/logs/mcp_usage.jsonl, .session_nest_snapshot_20260729.md

This commit is contained in:
Home Assistant Version Control
2026-07-29 15:57:20 +00:00
parent 79c7bffd86
commit 181198522c
2 changed files with 9 additions and 3 deletions
+1
View File
@@ -306,3 +306,4 @@
{"timestamp": "2026-07-29T15:53:57.434178+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "nest_snapshot", "service": "capture", "entity_id": null, "data": {"entity_id": "camera.front_door_front_door", "filename": "/media/nest_snapshot_test_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg"}, "return_response": false, "wait": true, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 981.1010360717773, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"SERVICE_CALL_FAILED\",\n \"message\": \"API error: 500 - 500 Internal Server Error\\n\\nServer got itself in trouble\",\n \"suggestion\": \"Specify an entity_id for targeted service calls\",\n \"suggestions\": [\n \"Specify an entity_id for targeted service calls\",\n \"Check available services for nest_snapshot domain using ha_get_skill_guide\",\n \"Use ha_search() to find correct entity IDs\"\n ]\n },\n \"domain\": \"nest_snapshot\",\n \"service\": \"capture\",\n \"entity_id\": null\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-07-29T15:54:17.030596+00:00", "tool_name": "ha_restart", "parameters": {"confirm": true}, "execution_time_ms": 198.91071319580078, "success": true, "error_message": null, "response_size_bytes": 221, "user_context": null}
{"timestamp": "2026-07-29T15:56:26.786490+00:00", "tool_name": "ha_call_service", "parameters": {"domain": "nest_snapshot", "service": "capture", "entity_id": null, "data": {"entity_id": "camera.front_door_front_door", "filename": "/media/nest_snapshot_test_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg"}, "return_response": false, "wait": false, "verbose": false, "result_fields": null, "result_attribute_keys": null, "ws_command": null}, "execution_time_ms": 2814.3739700317383, "success": false, "error_message": "{\n \"success\": false,\n \"error\": {\n \"code\": \"SERVICE_CALL_FAILED\",\n \"message\": \"API error: 500 - 500 Internal Server Error\\n\\nServer got itself in trouble\",\n \"suggestion\": \"Specify an entity_id for targeted service calls\",\n \"suggestions\": [\n \"Specify an entity_id for targeted service calls\",\n \"Check available services for nest_snapshot domain using ha_get_skill_guide\",\n \"Use ha_search() to find correct entity IDs\"\n ]\n },\n \"domain\": \"nest_snapshot\",\n \"service\": \"capture\",\n \"entity_id\": null\n}", "response_size_bytes": null, "user_context": null}
{"timestamp": "2026-07-29T15:57:18.340424+00:00", "tool_name": "ha_restart", "parameters": {"confirm": true}, "execution_time_ms": 859.7550392150879, "success": true, "error_message": null, "response_size_bytes": 221, "user_context": null}
+8 -3
View File
@@ -20,7 +20,12 @@ Custom integration `nest_snapshot` at `/homeassistant/custom_components/nest_sna
- Line 69: Replaced `hass.data.get(NEST_DOMAIN, {}).get(config_entry_id)` with `config_entry.runtime_data`
- Lines 78-81: Added `-camera` suffix stripping before device_manager lookup
## SDP candidate fix (round 3)
- Added `re` import
- Added `_sanitize_sdp()` — inserts missing `1` component ID before `udp` in ICE candidate lines
- Applied `_sanitize_sdp()` to `stream.answer_sdp` before `setRemoteDescription`
- Still pending: restart + test
## To Resume Testing
1. **Restart HA** — required for custom component file changes to take effect
2. Trigger automation `automation.test_nest_snapshot_capture` or call `nest_snapshot.capture` on `camera.front_door_front_door`
3. Check `/media/` for output file (>10 KB = success, ~1-2 KB = placeholder)
1. Trigger automation `automation.test_nest_snapshot_capture` or call `nest_snapshot.capture` on `camera.front_door_front_door`
2. Check `/media/` for output file (>10 KB = success, ~1-2 KB = placeholder)