openhab-addons: [Netatmo] Polling leads to missing values in some channels - Smart Video Doorbell
Issue came-up during the webhook investigations in : https://github.com/openhab/openhab-addons/pull/12972#issuecomment-1164042787
Expected Behavior
Periodical polling should deliver the values from /getevents
Current Behavior
Polling does update the following channels with NULL:
sub-event#snapshot
sub-event#snapshot-url
sub-event#event
sub-event#event-url
sub-event#message
Possible Solution
Values must be taken from /getevents call. Example (I left 1 event in, but all the follwowing events also contain the same attributes and all with values):
{
body: {
home: {
id: "xxxxxxxxxxxxxxxxxxxxxxxx",
events: [{
id: "xxxxxxxxxxxxxxxxxxxxxxxx",
type: "outdoor",
time: 1655917778,
module_id: "xx:xx:xx:xx:xx:xx",
video_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
video_status: "available",
subevents: [{
id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
type: "human",
time: 1655917778,
verified: true,
offset: 1,
snapshot: {
url: "https://netatmocameraimage.blob.core.windows.net/production/xxxxxxxxxxxxxxxxxxx",
},
vignette: {
url: "https://netatmocameraimage.blob.core.windows.net/production/xxxxxxxxxxxxxxxxxxx",
},
message: "Person erfasst"
}]
},
.. around 40 entries, all with the same attributtes and values are present in all ..
]
}
},
status: "ok",
time_exec: 0.042575836181640625,
time_server: 1655967343
}
If required, I can also post examples from: /homedata /homestatus
According to the documentation, all other GET API’s are deprecated https://dev.netatmo.com/apidocumentation/security#documentation
Steps to Reproduce (for Bugs)
- Install/configure netatmo binding incl. webhook
- add all available channels
- add item to the channels
- check the values after polling
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (14 by maintainers)
Commits related to this issue
- Adressing issue #13002 Signed-off-by: Gaël L'hopital <gael@lhopital.org> — committed to clinique/openhab-addons by clinique 2 years ago
- [netatmo] Fix doorbell channels flapping (#17367) * Adressing issue #13002 * Second row of url validity check * Take snapshot expiration in account Signed-off-by: Gaël L'hopital <gael@lhopital.o... — committed to openhab/openhab-addons by clinique 2 years ago
- [netatmo] Fix doorbell channels flapping (#17367) * Adressing issue #13002 * Second row of url validity check * Take snapshot expiration in account Signed-off-by: Gaël L'hopital <gael@lhopital.o... — committed to digitaldan/openhab-addons by clinique 2 years ago
- [netatmo] Fix doorbell channels flapping (#17367) * Adressing issue #13002 * Second row of url validity check * Take snapshot expiration in account Signed-off-by: Gaël L'hopital <gael@lhopital.org> ... — committed to pgfeller/openhab-addons by clinique 2 years ago
- [netatmo] Fix doorbell channels flapping (#17367) * Adressing issue #13002 * Second row of url validity check * Take snapshot expiration in account Signed-off-by: Gaël L'hopital <gael@lhopital.o... — committed to joni1993/openhab-addons by clinique 2 years ago
- [netatmo] Fix doorbell channels flapping (#17367) * Adressing issue #13002 * Second row of url validity check * Take snapshot expiration in account Signed-off-by: Gaël L'hopital <gael@lhopital.o... — committed to matchews/openhab-addons by clinique 2 years ago
- [netatmo] Fix doorbell channels flapping (#17367) * Adressing issue #13002 * Second row of url validity check * Take snapshot expiration in account Signed-off-by: Gaël L'hopital <gael@lhopital.org> ... — committed to cipianpascu/openhab-addons by clinique 2 years ago
Thanks @clinique I just updated to 4.3.0.M1 and installed your patched version of the Netatmo binding. I’ll observe the events in the next couple of days and will provide feedback here.