Skip to content
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] Managing automations #16904

Closed
jlaur opened this issue Jun 22, 2024 · 3 comments · Fixed by #16980
Closed

[hue] Managing automations #16904

jlaur opened this issue Jun 22, 2024 · 3 comments · Fixed by #16980
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@jlaur
Copy link
Contributor

jlaur commented Jun 22, 2024

I see some use-cases in being able to manage automations from openHAB:

image

It would be useful if openHAB could turn these automations on or off.

I imagine exposing each automation as a Switch channel. These channels could be on the Bridge thing, since there would be only once instance of them, and they do not represent any physical devices. This would be similar to automations on the Hunter Douglas PowerView Hub. They should belong to a channel group, and they could be marked as advanced.

The resource type representing these automations is behavior_instance.

Getting all instances:
GET https://{{host}}/clip/v2/resource/behavior_instance
(also included in GET https://{{host}}/clip/v2/resource)

Example for enabling an automation:

PUT https://{{host}}/clip/v2/resource/behavior_instance/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Payload:

{
    "enabled": true
}
@jlaur jlaur added the enhancement An enhancement or new feature for an existing add-on label Jun 22, 2024
@jlaur
Copy link
Contributor Author

jlaur commented Jun 22, 2024

@andrewfg - WDYT?

@andrewfg
Copy link
Contributor

Yes.

@andrewfg
Copy link
Contributor

andrewfg commented Jul 2, 2024

@jlaur I will create a PR for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants