-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[hue] Add channel for last motion (API v2) #15546
Comments
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/philips-hue-clip-2-api-v2-discussion-thread/142111/256 |
Yeah. @jlaur do you want to do it? Or shall I? |
On GETs it would need to use 'motion_report' if that element is present, or 'motion' if it is not. And we would need to check if the SSE event DTO contains either or both elements. |
I'll give it a go. I hope assistance can be arranged. 🙂 |
Resolves openhab#15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Some context about when this was introduced: https://hueblog.com/2023/03/14/hue-bridge-update-brings-back-popular-feature/ |
Resolves openhab#15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Resolves openhab#15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Add channels for last motion/temperature sensor update (API v2) * Add channel for last light level sensor update (API v2) * Add channel for last rotary steps update (API v2) * Add channel for last button update (API v2) Resolves #15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
…5552) * Add channels for last motion/temperature sensor update (API v2) * Add channel for last light level sensor update (API v2) * Add channel for last rotary steps update (API v2) * Add channel for last button update (API v2) Resolves openhab#15546 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
As reported here:
https://community.openhab.org/t/philips-hue-clip-2-api-v2-discussion-thread/142111/216
The Hue API v2 implementation in 4.0 does not support the equivalent of Hue API v1 channel
last_updated
for thing type 0107.This is actually supported by the API, so we are simply missing a channel for this:
GET /clip/v2/resource/device/00000000-0000-0000-0000-000000000000
Response:
GET /clip/v2/resource/motion/00000000-0000-0000-0000-000000000005
Response:
I believe a new DTO should be created for
motion_report
, which could then be included in the motion DTO here:openhab-addons/bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal/dto/clip2/Motion.java
Lines 29 to 30 in a0dc5c0
I now also noticed that
motion
used in the current DTO is deprecated since it has been moved tomotion_report
:https://developers.meethue.com/develop/hue-api-v2/api-reference/#resource_motion__id__get
As a work-around a profile can be used:
However, this does not support historical timestamps, i.e. when the binding is started after last motion was detected, the value will obviously not be reflected. Also, it's not accurate or fully corresponding to the timestamps seen in the Hue app.
Your Environment
The text was updated successfully, but these errors were encountered: