1.4 KiB
1.4 KiB
Nest Snapshot Session — July 29, 2026
Goal
Capture still images from Nest cameras (Google Nest SDM API) for AI (Ollama) analysis.
What Was Built (Previous Session)
Custom integration nest_snapshot at /homeassistant/custom_components/nest_snapshot/:
manifest.json,services.yaml,__init__.py- Uses WebRTC (
aiortc) to grab one video frame → saves as JPEG - Test automation
automation.test_nest_snapshot_capture
What Was Fixed (This Session)
Bug: Nest integration data not available for camera.front_door_front_door
Root cause: The integration was written for an older Nest SDM API. In HA 2026.7:
- Nest stores runtime data in
entry.runtime_data(aNestDatadataclass), not inhass.data["nest"] - Camera entity
unique_idhas a-camerasuffix, butdevice_manager.devicesis keyed by the raw Google device name
Changes in __init__.py:
- Line 69: Replaced
hass.data.get(NEST_DOMAIN, {}).get(config_entry_id)withconfig_entry.runtime_data - Lines 78-81: Added
-camerasuffix stripping before device_manager lookup
To Resume Testing
- Restart HA — required for custom component file changes to take effect
- Trigger automation
automation.test_nest_snapshot_captureor callnest_snapshot.captureoncamera.front_door_front_door - Check
/media/for output file (>10 KB = success, ~1-2 KB = placeholder)