athom-tech / esp32-configs

ESP32 configuration for athom device
26 stars 8 forks source link

athom-smart-plug.yaml relay not on pin5? #1

Closed TeraHz closed 7 months ago

TeraHz commented 7 months ago

Hi,

I followed https://github.com/esphome/esphome/pull/5535 to get ESPHome on my https://www.athom.tech/blank-1/tasmota-esp32-c3-us-plug-v3 but the relay doesn't seem to be working with pin5. I tried 1,2,and 4 and none of them enable the relay.

The button on pin3 seems to work.

I did confirm everything works on the original Tasmota firmware.

Any suggestion?

Thanks

TeraHz commented 7 months ago

I was able to get the relay to toggle by switching to esp-idf framework. Basically no other change.

Now the last thing I notice is that the LED seems to be in a constant blink mode (blue). But other than that, it looks like the plug is now working.

TeraHz commented 7 months ago

OK, the blinking LED was because I had not integrated with Home Assistant yet. Problem solved.

To summarize:

TeraHz commented 7 months ago

I think the issue actually was that the plug needs to fully power cycle(not just reboot). Then the relay works fine.