-
- Downloads
Add Logi Circle component, camera and sensor platform (#16540)
* Added Logi Circle platform, camera and sensor * Integrated with Logo Circle API’s feature detection to exclude sensors not supported by device. Added services for recording livestream and taking a snapshot from the livestream. * Migrated livestream snapshot and recording functionality out of home assistant components and into the logi circle API wrapper. Added services.yaml entries for logi services. * Added new Logi sensor types, updated to latest version of `logi_circle` and tidy up in preparation for pull request. - Renamed `logi_set_mode` to `logi_set_config`. - Live stream recording and snapshot methods now respect whitelisted path configuration. - Added `streaming_mode` and `speaker_volume` sensors. - Moved model-specific turn on/off logic to `logi_circle` library. * Renamed `logi` component domain to `logi_circle`. * Updates based on PR feedback * Added timeout of 15s to logi_circle initial setup requests (login and grabbing cameras). * Added unique ID (uses MAC address for camera platform, MAC address + sensor type for sensor platform). * Added battery level and battery charging attributes to camera. * Removed static attributes from device_state_attributes. * Replaced STATE_UNKNOWN with None, replaced ‘on’ & ‘off’ with STATE_ON and STATE_OFF. * Removed redundant SCAN_INTERVAL in sensor, removed redundant hass param from async_setup_platform in camera and sensor. * Style tweaks. * Replaced `asyncio.wait_for` with `async_timeout` to be consistent with other components.
Showing
- .coveragerc 3 additions, 0 deletions.coveragerc
- homeassistant/components/camera/logi_circle.py 210 additions, 0 deletionshomeassistant/components/camera/logi_circle.py
- homeassistant/components/camera/services.yaml 36 additions, 0 deletionshomeassistant/components/camera/services.yaml
- homeassistant/components/logi_circle.py 80 additions, 0 deletionshomeassistant/components/logi_circle.py
- homeassistant/components/sensor/logi_circle.py 156 additions, 0 deletionshomeassistant/components/sensor/logi_circle.py
- requirements_all.txt 3 additions, 0 deletionsrequirements_all.txt
Loading
Please register or sign in to comment