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

Restore previous settings from hassio #33

Open
perrykipkerrie opened this issue Aug 25, 2022 · 3 comments
Open

Restore previous settings from hassio #33

perrykipkerrie opened this issue Aug 25, 2022 · 3 comments

Comments

@perrykipkerrie
Copy link

First thank you for this nice port of the software, it works almost flawlessly for me.
However, sometimes the esphome restarts (once a day or something, due to unknown reasons) and the HAVC is turned off (due to the default off setting in the code).

Do you know if there is a possibility to read out the current value exposed by home assistant?, as you do not want to default the HAVC to cooling (as restarting the system will consequently turn on the unit.)

@ervee
Copy link

ervee commented Aug 30, 2022

I'm not sure if this works for your case. Just passing by trying to help. But did you see #30 (comment) and perhaps if that works for you?

@perrykipkerrie
Copy link
Author

Thank you for passing by :)

The problem is actually the other way around, in #30 the status is the one provided by home assistant, while it is supposed to be off. However, in my case, when it reboots it is powered off, while it should be powered on (it should get the state from the hassio instance).

I will mess around with the code soon to see if i can implement this, defaulting to off seems in most cases a safe consideration.

@arpiecodes
Copy link
Contributor

It's not really reliable to try to get/save power status from HASS or any external source. It may cause weird behaviour where AC's will spontaneously turn on while they in fact should be off. I think the default of power off is the best.

You could probably create a sync automation which checks whether the state from HA mismatches the one in the unit, and then apply the requested mode by setting the mode if it does.

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