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

Request: activate/deactivate scene #123

Open
HLueken opened this issue Aug 26, 2024 · 6 comments
Open

Request: activate/deactivate scene #123

HLueken opened this issue Aug 26, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@HLueken
Copy link

HLueken commented Aug 26, 2024

I have scenes defined which I activate/deactivate in certain cases. Would it be possible to add this functionality to the Rademacher integration?

@peribeir
Copy link
Owner

Hi, since version 2.1.0 I added support for scenes. Unfortunately I cannot test it since I have the smaller start2smart which doesn't support scenes.
But can you check in home assistant if the scenes you have defined in Home pilot are shown in HA? They should have the prefix Homepilot.

@HLueken
Copy link
Author

HLueken commented Sep 23, 2024

Hi,
Scenes are available in HA, however how can I activate/deactivate a scene?
Example: I have a scene Vacation (to change the blinds randomly over the day). I want to activate the scene before vacation and deactivate it after vacation.
I solved it via REST services to Homepilot, however it would be nicer to use your integration.

@peribeir
Copy link
Owner

Activation is available in HA so it should be possible either in the GUI (by going to Automations & Scenes -> Scenes and pressing Activate) or in automations by choosing Scene action and Activate and choose scene. Can you confirm that this works?

Deactivation is not currently possible because HA scenes are actually stateless.
I didn't even know that scenes could be deactivated in HP.
But I think we can overcome this, I can add all HP scenes as switches in HA. This way you can switch on (activate) or off (deactivate).

At this point, I don't know how to deactivate scenes using the API, can you provide me the json used in the REST request to deactivate a scene?

@peribeir peribeir added the enhancement New feature or request label Sep 23, 2024
@HLueken
Copy link
Author

HLueken commented Sep 24, 2024

This is how I defined the REST:
IMG_0964

@HLueken
Copy link
Author

HLueken commented Sep 25, 2024

I guess there is a misunderstanding about the meaning of „activate“. I do not mean execute. I mean more activate like enable, deactivate like disable.
The definition of a scene allows to disable the scene.

executing a scene is already possible in your integration.

IMG_0965

@peribeir
Copy link
Owner

Ok, that's clear now. Then I'll leave scenes as they are. I'll add a switch for each scene so that you can activate/deactivate them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants