Hello everyone - curious if there’s anyone that has ran into this issue.
I have some Wyze Outdoor Plugs that I reflashed. They are ESP32 devices and a great cheap design to run 15A 120v loads that are also outdoor capable.
Some of these devices drive higher amperage devices, and I’ve really struggled with getting them to boot with the switches by default set to off. I just did a generator test before winter and it amplified the issue as heaters engaged when they should have defaulted to off.
I have already set the restore state of the switches to ALWAYS_OFF, but even that doesn’t work. They start up on and I’ve found that the on_boot is the only way to address the state issue.
There’s so much more to unload, but I wanted to start with something more simple. Take the following:
The priority value is of particular interest for me. In the ESPHome documentation, the higher the value, with 800 being called during hardware initialization, the faster that the subsequent command should be…but in my case, it seems to be inverted. If I do a 800 priority, nothing happens, but if I do a -100, then it kind of works - the switches are on for a second and then turn off.
Any common observations on this that may explain the behavior?
Thanks @nickrout for the reply - I did try the ALWAYS_OFF but that also didn’t behave the way I anticipated - I’m going to do some other tests as maybe it was inverted.
It is a GPIO device - GPIO 15 and 32 are the relay switches.
I just double checked and they are not inverted. I’ll need to setup a better test case.
@Mahko_Mahko - that’s a good idea - I’ll give it a try.
Interestingly, when I did a higher value it took longer to turn off. The documentation for the priority states that a higher value takes longer on a shutdown operation, but as this is a boot I assumed it wasn’t considered a shutdown operation…
I have tried with the light, and 1000 nothing happens, 700 works ok and even takes precedence to always_on settings, when i use 700, i do not see color that appears with always_on.