From 181198522cc881c2257c767720e4d1b34a29b72e Mon Sep 17 00:00:00 2001 From: Home Assistant Version Control Date: Wed, 29 Jul 2026 15:57:20 +0000 Subject: [PATCH] .ha_mcp/logs/mcp_usage.jsonl, .session_nest_snapshot_20260729.md --- .ha_mcp/logs/mcp_usage.jsonl | 1 + .session_nest_snapshot_20260729.md | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.ha_mcp/logs/mcp_usage.jsonl b/.ha_mcp/logs/mcp_usage.jsonl index 1c4057b..32e4aa0 100644 --- a/.ha_mcp/logs/mcp_usage.jsonl +++ b/.ha_mcp/logs/mcp_usage.jsonl @@ -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} diff --git a/.session_nest_snapshot_20260729.md b/.session_nest_snapshot_20260729.md index 8d968ad..463439b 100644 --- a/.session_nest_snapshot_20260729.md +++ b/.session_nest_snapshot_20260729.md @@ -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)