Hi everyone, recently I purchased this ESP-01. Before configurate it, I can control the relay on home assistant without any issue. But Trying to setup a mechanical switch it doesn’t toggle the relay status, can any one help me please, this is my code. Thanks in advance:
*Edit: I connected ground pin and the specified pin to the mechanical switch
Unfortunately I having other issues, the esp sometimes connect to my wifi, sometimes doesn’t. When it connects I can’t connect to it, always says that can not connect to the API, I think it is a esp hardware issue or deep sleep function (although I set power_save_mode:high )
Hello , new here , i allso want to add a phosical button and i got stuck .
The funny thing is ,if i touch gpio 2 and ground with my hand it do the job and trigger the gpio 0 and actuates the relay .
Don’t know why does not do the job from the button ?
Does anyone have suggestions?
Hi, I know is a bit late but if anyone gets the same problem, this is how I make it work.
It looks like binary sensor needs ground to be off, so all I did was add a resistor (100k worked fine) to the same gpio pin as the mechanical switch from ground to set the off state and the mechanical switch should supply VCC to trigger the on state.