-
-
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
[hdpowerview] Support activation of scene collections #11533
Comments
Fixes openhab#11533 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
@andrewfg - just received this response from Hunter Douglas (only relevant part quoted):
|
Fixes openhab#11533 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
@andrewfg - good news, I just managed to manually create a new scene collection, so it's still supported by the hub. I compared how scenes are created/fetched with how scene collections are fetched and deducted from this how scene collections are created (as I could no longer trace it because app doesn't support it anymore): POST /api/sceneCollections/
Response:
Using this returned id and some known id's from existing scenes, sent two additional requests to link the scene collection with these two scenes: POST /api/scenecollectionmembers/
POST /api/scenecollectionmembers/
After this, the scene group shows up in the app and can of course also be triggered from openHAB with #11534. Once the scene group is created, it can even be edited within the app. |
Cool |
Just wondering how you would DELETE a scene from a scene collection, (via the REST API)..? |
@andrewfg - it can be deleted through the API, also from the app. |
What is the JSON POST payload to delete a scene from a collection? The examples you showed above are only for adding a scene to a collection.. |
@andrewfg - I'll trace it in the evening, will post update. |
@andrewfg - okay, that was pretty straight-forward:
|
@andrewfg - oh, wait, I deleted the scene collection, you asked about removal of a scene from a scene collection. I can try that later, will need to create a new scene collection again. That's really going into details, only use-case is probably it someone would write a new app/client, it's not something we'll really need for the binding or even for testing the binding. To get same result as deleting a scene from a scene collection, the scene collection could simply be created from scratch without adding the scene. |
Interesting (but obvious) to use HTTP DELETE method. However I guess that method deletes the whole scene collection, rather than deleting one scene from a collection. Or?? |
@andrewfg - okay, got it: Note that from the app you cannot delete 2nd last scene, as you need at least two scenes in a scene collection. And to update a scene collection: with body as when creating, except that id is obviously included: |
Ah cool. For posterity, perhaps it would be helpful if you would add a description of those method's syntax (say) somewhere in the class that implements the other REST API calls for scene collections? Just an idea.. |
* Add support for scene collections. Fixes #11533 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add unit test for parsing of scene collections response. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add default i18n properties file. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Update documentation with scene collections. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix formatting. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Split offline tests into separate distinct tests. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Increase test coverage for scene/scene collection parsing. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Internationalization of dynamic scene/scene collection channels. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Rename scene collections to scene groups. Renamed for all user-oriented texts/references to be consistent with now abandoned feature of the PowerView app. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Change custom text keys to not collide with framework. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Avoid multiple thing updates. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add missing label/description texts for secondary channel. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Remove unneeded @nullable annotations. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
@andrewfg - I'll try to see if I can figure how who maintains this document: Hunter Douglas PowerView® Hub API |
@jlaur, sorry, I don't know the origin of the API document. I found the link to it in a previous issue. I tried to find a version on the Hunter Douglas website, but it doesn't seem to be there any more. |
@jlaur did you have any luck with this? (reason: for Issue #11557 I would like to contact them to learn the meaning of the shade's PS I found a newer version of the PowerView API PowerView-Hub-REST-API-v2.pdf but unfortunately that also does not include the answer to my question.. |
@andrewfg - no luck so far, but I also was in possession of that v2 document already which I found in some forum. Didn't realize the difference. Now searched for it and found this guy who may know something - I'll try to reach out to him in the upcoming weekend: https://community.hubitat.com/badges/2/member?username=sstretchh If I don't find any document maintainer, I'll create an appendix document myself so we'll have documentation also for the findings from my reverse engineering, i.e. scene group (scene collection) update/deletion and automations (scheduled events). |
Mine is a V2 hub.
I discovered this address 'david(dot)flynn(at)hunterdouglas(dot)com' -- but I sent him a mail a week ago, and did not get any response yet.
Perhaps you could add these shade type and shade capabilities data to the appendix as well? :) |
@jlaur, I also have a V2 hub. |
A couple of further pieces of information that might relate to this..
|
@andrewfg - I haven't forgotten about documenting the reverse engineered findings, it just didn't make it high enough on my TODO list yet. However, a few days ago I managed to come up with a small draft, so early sharing: @arroyoj - for your information also. I still need to add more and make all links work etc. and find a way to embed your document Shade.Types.and.Capabilities.xlsx. |
^ |
* Add support for scene collections. Fixes openhab#11533 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add unit test for parsing of scene collections response. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add default i18n properties file. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Update documentation with scene collections. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix formatting. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Split offline tests into separate distinct tests. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Increase test coverage for scene/scene collection parsing. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Internationalization of dynamic scene/scene collection channels. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Rename scene collections to scene groups. Renamed for all user-oriented texts/references to be consistent with now abandoned feature of the PowerView app. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Change custom text keys to not collide with framework. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Avoid multiple thing updates. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add missing label/description texts for secondary channel. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Remove unneeded @nullable annotations. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Nick Waterton <n.waterton@outlook.com>
@andrewfg - not sure if you received my mail with the documents. Otherwise please let me know. |
@jlaur yes I got your documents, many thanks; and I plan to start work on it tomorrow... |
* Add support for scene collections. Fixes openhab#11533 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add unit test for parsing of scene collections response. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add default i18n properties file. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Update documentation with scene collections. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix formatting. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Split offline tests into separate distinct tests. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Increase test coverage for scene/scene collection parsing. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Internationalization of dynamic scene/scene collection channels. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Rename scene collections to scene groups. Renamed for all user-oriented texts/references to be consistent with now abandoned feature of the PowerView app. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Change custom text keys to not collide with framework. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Avoid multiple thing updates. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add missing label/description texts for secondary channel. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Remove unneeded @nullable annotations. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Michael Schmidt <mi.schmidt.83@gmail.com>
* Add support for scene collections. Fixes openhab#11533 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add unit test for parsing of scene collections response. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add default i18n properties file. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Update documentation with scene collections. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix formatting. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Split offline tests into separate distinct tests. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Increase test coverage for scene/scene collection parsing. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Internationalization of dynamic scene/scene collection channels. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Rename scene collections to scene groups. Renamed for all user-oriented texts/references to be consistent with now abandoned feature of the PowerView app. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Change custom text keys to not collide with framework. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Avoid multiple thing updates. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add missing label/description texts for secondary channel. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Remove unneeded @nullable annotations. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
For anyone reading this issue with interest in the API documentation, and for you @andrewfg: Without further ado, the document is now published: PowerView-Hub-REST-API-v2-appendix.pdf. Thanks for collaborating on this! |
* Add support for scene collections. Fixes openhab#11533 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add unit test for parsing of scene collections response. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add default i18n properties file. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Update documentation with scene collections. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix formatting. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Split offline tests into separate distinct tests. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Increase test coverage for scene/scene collection parsing. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Internationalization of dynamic scene/scene collection channels. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Rename scene collections to scene groups. Renamed for all user-oriented texts/references to be consistent with now abandoned feature of the PowerView app. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Change custom text keys to not collide with framework. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Avoid multiple thing updates. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add missing label/description texts for secondary channel. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Remove unneeded @nullable annotations. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Add support for scene collections. Fixes openhab#11533 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add unit test for parsing of scene collections response. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add default i18n properties file. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Update documentation with scene collections. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix formatting. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Fix CAT: File does not end with a newline. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Split offline tests into separate distinct tests. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Increase test coverage for scene/scene collection parsing. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Internationalization of dynamic scene/scene collection channels. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Rename scene collections to scene groups. Renamed for all user-oriented texts/references to be consistent with now abandoned feature of the PowerView app. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Change custom text keys to not collide with framework. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Avoid multiple thing updates. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Add missing label/description texts for secondary channel. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Remove unneeded @nullable annotations. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
The Hunter Douglas PowerView Hub supports two different scene concepts:
A scene collection is a collection of scenes and can be used to group multiple scenes and activate them all with a single click or automation.
Currently the binding supports only scenes, but not scene collections.
Note: Hunter Douglas has removed scene collections from the app, but they are still supported by the hub. Any user already having scene collections will be able to still trigger them - also from the app. In order to implement #11516 without filtering scene collections, this issue is still relevant, although a bit late.
The text was updated successfully, but these errors were encountered: