WLED icon indicating copy to clipboard operation
WLED copied to clipboard

Shelly 1 SW pin (GPIO5) does not work correctly

Open To0wnn opened this issue 3 years ago • 10 comments

What happened?

Not responding to SW (GPIO5) when conntected to L

To Reproduce Bug

Connect SW(GPIO5) to L

Expected Behavior

Switching the relay / Responding to the input

Install Method

Binary from WLED.me

What version of WLED?

WLED beta release 0.13.0-b6

Which microcontroller/board are you seeing the problem on?

ESP8266

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

To0wnn avatar Jan 18 '22 10:01 To0wnn

Have you set the relay pin in LED settings (not switch/button pin) to GPIO5? you may need to reboot WLED once as well

Aircoookie avatar Jan 18 '22 11:01 Aircoookie

Yes I changed the settings and did the reboot. Also changed the relay and is working with the GPIO0 image

To0wnn avatar Jan 18 '22 11:01 To0wnn

Also tried it with a different shelly 1 so it is not broken. I do run on 230VAC do not know if this is the issue for WLED for detecting SW/GPIO5 as input? image

To0wnn avatar Jan 18 '22 11:01 To0wnn

Tried it with the shelly in the 12VDC config same result also not responding to SW

To0wnn avatar Jan 18 '22 12:01 To0wnn

Ah, now I get what you are trying to do :)

Firstly, change Button 1 type from Pushbutton to Switch Then save and return to the main UI. Make two presets. For both, uncheck Use current state and enter T=0 and T=1 as the API command. Now remember the ID of the preset (number displayed left of the preset name) and enter it in Time setting as the short and long action of button 1. Afterwards, the switch should work!

Aircoookie avatar Jan 18 '22 13:01 Aircoookie

Tried it what you said but I think it is just not detecting the input somehow. Also i want to connect a pushbutton not a switch.

To0wnn avatar Jan 18 '22 13:01 To0wnn

Hmm, you could also give the Push Inverted type a try, if the pin goes HIGH if the button is pushed.

Aircoookie avatar Jan 21 '22 00:01 Aircoookie

Tried that as well. But then the brightness constantly changed or something.. So that is not solving it unfortunately

To0wnn avatar Jan 21 '22 08:01 To0wnn

Please post internal wiring schematics of Shelly 1 to help solve the issue. Most likely there is some circuitry that allows L (110V~230V) to trigger GPIO5 and this may prevent external switch/button from working with WLED button logic.

blazoncek avatar Feb 12 '22 10:02 blazoncek

Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. Thank you for using WLED!

stale[bot] avatar Jul 10 '22 22:07 stale[bot]

Loses due to inactivity - stale since > 6 month.

softhack007 avatar Jan 06 '23 21:01 softhack007