feat: Enhance device info with camera details and serial number#39
Open
BenWolstencroft wants to merge 1 commit intomainfrom
Open
feat: Enhance device info with camera details and serial number#39BenWolstencroft wants to merge 1 commit intomainfrom
BenWolstencroft wants to merge 1 commit intomainfrom
Conversation
b18b0c9 to
510df34
Compare
…ce registry - Add get_camera_details() async API function to extract detailed camera info from /user/cameras endpoint - Enhance CuboBabyInfoSensor to use get_camera_details instead of get_camera_profiles_raw - Add serial_number (license_id) to device_info for device registry - Expand BabyInfoSensor attributes to include: - Device info: license_id, created date, role - Profile: avatar_url (baby name, birth, gender already existed) - Settings: alexa_enabled, timezone, sleep/wake times, report settings - Add 4 tests for get_camera_details API function
510df34 to
b07339f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enhances the device registry and Baby Info sensor with additional camera details from the CuboAI API.
Changes
Device Registry Enhancement
The device now shows the serial number (license ID) in the Home Assistant device info page.
Expanded BabyInfoSensor Attributes
The
sensor.cuboai_baby_info_{baby_name}entity now includes additional attributes:license_idcreatedroleavatar_urlalexa_enabledtimezonesleep_timewakeup_timereport_timegmt_offsetExisting attributes (baby, birth, gender, device_id) remain unchanged.
Technical Changes
get_camera_details()function to fetch comprehensive camera dataCuboBabyInfoSensorto use new API and provideserial_numberindevice_infoget_camera_detailsAPI functionTesting
All 72 tests pass