kamaradclimber / heishamon-homeassistant

An integration for heatpumps handled by heishamon
Apache License 2.0
50 stars 25 forks source link

Switch symbol behavior for holiday mode #75

Closed Bucky2k closed 1 year ago

Bucky2k commented 1 year ago

Hi,

I oberserved a strange behavior of the holiday mode switch. If operated from HA, the switch is shown as a usual left/right slider. If it gets it's status from Heishamon, it changes to the flash / electricity symbol. Operating it again from HA, it shows the slider again.

Local problem of my installation?

Br

Bucky

Screenshot_20221225_100938_Home Assistant

Bucky2k commented 1 year ago

It seems there exists a workaround, but I prefer of course to find the root cause. It's something around an unclear "assumed state" I guess:

https://community.home-assistant.io/t/some-switches-use-the-flash-icon-instead-of-a-switch-icon/222409

Bucky2k commented 1 year ago

Wurde unbekannt --> became unknown (few seconds after it showed correct status & symbol after changing mode on Aquarea)

Screenshot_20221225_102923_Home Assistant

Bucky2k commented 1 year ago

Got it: Holiday Mode has three status values:

Holiday mode (0=off, 1=scheduled, 2=active)

Mode 2 / active is not properly captured

So the flash symbol only comes up, when the holiday mode becomes active at scheduled time

kamaradclimber commented 1 year ago

Good catch. We now need to find the proper entity to reflect this. My first idea is to split between entities:

Bucky2k commented 1 year ago

I think this is adequate, as we cannot "force" state active anyway. So On/off as a slider and the three states just read only

I am on holiday until 04.01, so unfortunately I cannot test your PR commit

sermayoral commented 1 year ago

Good catch. We now need to find the proper entity to reflect this. My first idea is to split between entities:

* one showing the holiday mode status (3 possible states)

* one switch to configure holiday mode

Hi. First of all, thank you very much for this custom component :-)

Could the same thing happen with defrost? I had a defrost sensor (TOP26) that I use to know when the pump goes into defrost mode. In this component I find a switch and no sensor.

geduxas commented 1 year ago

Yes but it will turn on in defrost mode.. also it will be in history of that switch.. is it some problems with that?

Bucky2k commented 1 year ago

Defrost switch works as expected on my side

sermayoral commented 1 year ago

Yes but it will turn on in defrost mode.. also it will be in history of that switch.. is it some problems with that?

You mean, this switch turns on when the pump goes into defrost mode. Beside that, you can force the pump to startt the defrost mode turning on the switch. Don't you?

geduxas commented 1 year ago

Yes but it will turn on in defrost mode.. also it will be in history of that switch.. is it some problems with that?

You mean, this switch turns on when the pump goes into defrost mode. Beside that, you can force the pump to startt the defrost mode turning on the switch. Don't you?

yes, it's shows state and you can force set state.. If pump decides to defrost, so state of defrost will trigger switch on. And if you wan't force to defrost, you click on it.

sermayoral commented 1 year ago

Thanks @geduxas. No problem with that behaviour