-
Notifications
You must be signed in to change notification settings - Fork 20
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
Prevent V3 plug relay toggle during restart/flash? #7
Comments
Are you able to add the below in, i believe this will solve our issue early_pin_init (Optional, boolean): Specifies whether pins should be initialised as early as possible to known values. Recommended value is false where switches are involved, as these will toggle when updating the firmware or when restarting the device. Defaults to true. |
Unfortunately that's not an option for this variant of the plug. That flag is available on the ESP8266 platform but not on the ESP32 platform. |
I don't think this is just the v3 plug. Recently my V2 plug has been toggling off and on during flash and restart. I use it to monitor power usage to my PC, so this is not good. The flash update power cycle can be worked around but I've had the plug restart without warning a couple of times and lost my work on my PC. I've taken the PC off the plug for the time-being until the issue is sorted. |
If necessary we can release a version without relays, which will avoid the problem of power disconnection. |
@tarontop Aiden, Sounds interesting, the main issue with the Athom plugs is that after a while a % of them have the relay fail. Only way around that at the moment is using something like a Shelly Gen3 Mini PM (no relay), but the option of an "Athom Smart Plug v3 PM" would be a good (easier to install) option. Would also be of interest to a friend for his customers wanting to be able to easily/rapidly install or replace plugs in a commerical environment and NOT have the risk of relays failing and causing stock losses (or someone accidentally turning the relay off). No relay should mean a saving of a couple of $ on the parts cost.... maybe ESP32-C6 (Matter / Thread and 802.11ax WiFi) boards also ? ;-) |
I would buy this :) I do have devices were it is just for monitoring the energy consumption |
While just a PM variant can def. be interesting for certain situations, it can not cover the same uses as a switched one. |
The EU version has been released, and the AU/NZ version will be released later https://www.athom.tech/blank-1/no-relay-consumption-monitoring-eu-plug-for-esphome |
|
@tarontop assume same PCB as the plug v3, but without relay. I note that the non-relay version though still has the button.. ? What does this do, given there's no relay for it to on/off? |
Yes, they are the same PCB, just the relays removed, the buttons don't actually do much |
I assume 'buttons don't actually do much', means they don't actually do anything, or maybe they just turn the LED on/off and Reset ? Will these 'no relay' plugs use the existing v3 plug yaml, or a new version with the switch, power button is to be published? |
The version being sold (linked above) is not actually based on a v3 plug but on a v2 plug (esp8285). |
Aiden, Say this isn't so ! Is there any update on the AU version of the 'no relay' and will it be on the ESP32-C3 ? |
Currently the relay state is restored to ON during boot just fine but during a restart (through HA or caused by flashing an update), the relay shortly flips to OFF before being restored back to ON. Is there a way to prevent this toggle from happening or is that just something that will always happen due to how it's wired?
Going by how it sounds like when it looses power as a whole, it seems like the latter might be true. The relay always toggles off; it's wired up as a normally open relay?
It switching to OFF when there's no power is honestly fine. If there's a complete power outtage it really does not matter. When just simply updating it, it is quite inconvenient that it toggles and, as a result, powers off everything connected to it or that you need to first power off everything connected to it before you can safely update one.
The text was updated successfully, but these errors were encountered: