-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore camera battery_voltage and wifi_strength #877
Conversation
these fields do exist,
Note that the "full" cameras have their own URL API which must be queried for their attributes.
the wifi_strength key is no longer missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also add a property for battery voltage? (I think so)
That said, the raw JSON returned from the camera REST call is pretty lengthy (about 175 fields), and I don't know what many of the fields even mean. In particular, there are a number of fields which have a |
A property like this: Lines 76 to 79 in bb47175
This allows an application to get the value without getting the whole JSON - a bit redundant, but we have properties for the other values HA uses. We should also have and _ in the self version so that it's not confused with the property version... |
From what I've been able to "decode" - LFR_ is the network the blink cameras use to talk to the sync module (it's not wifi). My doorbells report the LFR signal strength. |
The
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestions...
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #877 +/- ##
=======================================
Coverage 99.79% 99.79%
=======================================
Files 8 8
Lines 1482 1486 +4
=======================================
+ Hits 1479 1483 +4
Misses 3 3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Well... They all should have properties at some point, we have the json as a fallback. At this point, we keep moving forward slowly :) |
Description:
Full cameras (outdoor XT, XT2, and indoor) lost their battery voltage and wifi_strength fields in release v0.22.5. Due to a logic bug, these cameras no longer had their REST API queried for their full set of information; only the "base" information contained on the "home screen" was being stored.
This should restore the REST API call, and those fields should appear again.
Related issue: fixes #865
Alas, a number of "downstream" changes were made in v0.22.6 which possibly need to be reverted, now that the "full camera attributes" are available again.
Consider looking at changes made in #835, #837, and #867.
Checklist:
tox
run successfully PR cannot be meged unless tests pass