kr0ner / OneESP32ToRuleThemAll

17 stars 5 forks source link

Switch off LUEFT_STUFE_TAG automatically #18

Closed Nebnenut closed 4 months ago

Nebnenut commented 4 months ago

I currently have the phenomenon that the LUEFT_STUFE_TAG switches off automatically as soon as the entry "no longer available" is in the log.

The same thing happens when the ESP controller is disconnected from the power and powered again.currently only detectable with the LUEFT_STUFE_TAG sensor.

edit: I have a Stiebel Eltron 5s Plus, which is the same as the THZ 504 on which your Git is based.

image

kr0ner commented 4 months ago

Hi, I have a suspicion: After boot we ask the heat pump for the value of LUEFT_STUFE_TAG ... but we are somehow reading the request and not the response. Requests always have 0 as a value. On reception of zero we turn the fan off ... which might be the second problem. I will try to prepare a fix.

Side question: why is your esp so often not reachable? :thinking:

Nebnenut commented 4 months ago

the problem with the device losing connection has been going on since this morning. If necessary, I'll swap the ESP for another one, of course everyone has a few ESP controllers on reserve at home :-D

EDIT: i use a WLAN-based ESP controller

kr0ner commented 4 months ago

of course everyone has a few ESP controllers on reserve at home

Yes :) you never know :D

hm ... so it might be caused by my changes from yesterday evening? When did you do the last update? So it's definitely a bug in the code ... but we should also tackle the resets. If it is reproducible it would be nice to have the log output so that I can check what the last command was and then guess what could've been the problem.

Nebnenut commented 4 months ago

Ok, the ESP has problems with the wifi chip or with the WiFi reception. The Fritzbox says cancels registrations. I'll swap it out.

https://pastebin.com/AEt0RfVd

kr0ner commented 4 months ago

ok, first thing that I have overlooked 😅 https://esphome.io/components/fan/#base-fan-configuration

restore_mode (Optional): Control how the fan attempts to restore state on boot. ALWAYS_OFF (Default) - Always initialize the fan as OFF on bootup.

That explains a lot ... but this is only half the story ... once this is fixed, fan speeds behave weird ... still investigating

// when turning on, if current speed is zero, set speed to 100%

bug reported to ESPHOME: https://github.com/esphome/issues/issues/6062