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

Feature request: 'switch on with the last configuration' #164

Open
vlavorini opened this issue Aug 17, 2023 · 4 comments
Open

Feature request: 'switch on with the last configuration' #164

vlavorini opened this issue Aug 17, 2023 · 4 comments

Comments

@vlavorini
Copy link

Hi there,

what I suggest is a simple 'turn on' button, which function is to use the last configuration (ex. cooling function, automatic fan spin, etc) and just turn on the device(s).

This will be useful in case someone (like me) want to integrate it in the simplest possible way to a dashboard. Moreover, it can be used in an 'Entities' card in the dashboard to turn on/off all the desired devices with a single action.

Is this feasible?

@rospogrigio
Copy link
Owner

Maybe with an automation, try to work on it! 😉

@vlavorini
Copy link
Author

too much advanced for me at the moment, no idea where to start. Any suggestion?

@rospogrigio
Copy link
Owner

I think you should store the last status that you want to restore in a template sensor, probably, and then use an automation to store and restore it.
To start studying you probably want to read:
https://www.home-assistant.io/integrations/template/
https://www.home-assistant.io/docs/automation/basics/
Bye!

@Xander-V
Copy link

Xander-V commented Aug 30, 2023

You can easily use a snapshot of the climate entity. Have a look at a blueprint by raffy-ops: https://gist.github.com/raffy-ops/2bdf967036d8d274fb1f62572ed5e545

Then it is as simple as importing that blueprint, creating a helper binary value and using that as the pause trigger. To toggle, you simply add that binary helper as a button in your dashboard! To make it a bit more fancy/reliable, set the climate state as the actual state for the button so you will actually see the status of the aircon change a few seconds after you push the button.

Be aware, since the blueprint uses a standard snapshot name, if you have multiple aircons, you have to copy the blueprint yaml, change the name for the snapshot both in line 84 (save name) and 101 (reload).

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

No branches or pull requests

3 participants