Is there a way to guarantee that relay stays closed?
Opened this issue · 3 comments
I'm using a Kauf Plug as a power meter for my desk, which includes my computer. Twice in the past few months my power has suddenly glitched, computer restarts, chaos ensues, etc. Today I figured out that the Kauf plug was responsible. I think it lost its connection to the internet, and like any ESPHome device rebooted in the hopes of restoring the connection.
That's normally a great feature, but in this case it makes the plug a lot less useful for my intended purpose.
I see reboot_timeout
in https://esphome.io/components/wifi, and I'm about to try it like so:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
reboot_timeout: 0s
Does this sound right? Is there anything else I can do to configure the plug to never, ever, ever turn off the outlet?
If it is rebooting normally I don't think it should be toggling the relay, so it might be crashing. I'd try using the -minimal.yaml config package. The issue might be something glitching with our new HLW component, so using minimal or lite will eliminate using that.
just change the packages line to add -minimal or -lite like so:
packages:
kauf.plf10: github://KaufHA/PLF10/kauf-plug-minimal.yaml
Yea sorry I should have been more specific but you're right HLW and new HLW component is one written by me to replace the ESPHome default. For now run lite or minimal and let me know if you have the issue again.