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

auto_mode reset to 1 #57

Open
ilfandango opened this issue Nov 18, 2023 · 3 comments
Open

auto_mode reset to 1 #57

ilfandango opened this issue Nov 18, 2023 · 3 comments

Comments

@ilfandango
Copy link

ilfandango commented Nov 18, 2023

Hi, every time I try to set loop_mode to a value (0, 1 or 2) it resets the value of auto_mode to 1.
I tried with the "Beok" app and it works fine, but if I change loop_mode via Home Assistant, auto_mode resets to 1.
From my tests I understand that "auto_mode = (loop_mode + 1)" but I can't go beyond that.

So if i set loop_mode via Beok app to:

  • 0 - [12345,67] auto_mode change to 1
  • 1 - [123456,7] auto_mode change to 2
  • 2 - [1234567] auto_mode change to 3

Instead via Home Assistant Services [hysen_set_advanced] the auto_mode always remaing to 1.

service: climate.hysen_set_advanced
data:
  entity_id: climate.termostato
  loop_mode: 2

In the Climate.py file on line 1199 I can find ((loop_mode + 1) << 4) + auto_mode and it seems to follow my thoughts...

Also, I didn't find the service to forcibly change the value of auto_mode.

sfw_version: 2.3.1

Thanks in advance

@PaskoMoto
Copy link

Hi.

If you manually change the temperature, the attribute "auto_override" will change from '0' to '1' but certainly, auto_mode will remain with a value of '1'.
Also, in the lovelace card I use to control the thermostat, there's a button to turn it back to 'auto' mode.
I my opinion this behavior makes sense.

Best Regards.

@ilfandango
Copy link
Author

Hi PaskoMoto,
thanks for your reply but.. what does this have to do with the open issue?
My problem is that if I wanted to have the same programming every day (i.e. loop mode = 2 [1234567]) this is not possible because auto_mode is always on 1.

Instead, with Beok app, when I setting loop_mode=2, then auto_mode switch to 3.

"auto_override" has nothing to do.

@PaskoMoto
Copy link

PaskoMoto commented Nov 26, 2023

Ah, ok.
You have the same problem I had.
For some reason, loop_mode=2 and auto_mode=3 does not work with this integration.
In my case, the anti_freeze_function is activated, so that first I use:

service: climate.hysen_set_advanced data: entity_id: climate.house_thermostat anti_freeze_function: 0
And, since I'm not using the app, I have to set loop_mode=2 manually in the thermostat. In that case, the integration shows automode=3, as you said and everything works fine.

Best regards.

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

2 participants