ah ok i did try 17 and also 8 gpio for the switch and test.
ya i noticed that the relay wont click for 5 seconds if i rang that button/ touch the 2 wires together like a kid on a door bell… and that would delay the binary_sensor of switch would still lock up
it would either stick to ON or it also would not flip off so goto OFF from ON… so u had to click it a couple of times
oh and the 2 times out of 10 i didnt mean the relay i actually ment when running the code wouldnt a For time
2 times would be 2 times it work it wouldnt stick the binary sensor to ON button
i tried a reboot and got it 3-4 times it would work out of 10 meaning the binary sensor go from off to on to off again
other times it either not goto “on” or not release “on” to goto off…
and i did read that bounce time… for me that made no sense…
there explanation is “The time in milliseconds for port debouncing.” well that means nothing to someone that knows nothing
so i never used it… what does it mean for a dummie book type of person to understand…
so with that and that bounce time…
touching 2 wires together to activate binary sensor
it would work the first time then if you were doing
touch/release wait 1 second touch release wait 1 second
doing that 10 times… it would only work 3 times meaning the binary sensor on the screen
would toggle from Off - ON -OFF other then that it would stay OFF or stay ON
is the bounce time just a delay before you can press the button again?
like you need to hold the Button in for a 1000 bounce time before you can release the switch or is it 1000 bounce time before you can press the button again?
so i tried waiting between button press’s like pres release wait 2 seconds repeate
then i tried press release wait 5 seconds and repeat
and it still locks up the Binary sensor in either On or OFF
now is it because im running HA on raspbian… and would it act better if i was running HA on RPI as a OS instead?
if you have a spare rpi4 and couple wires maybe you can see my same issue i having? is it version issues maybe firmware? or is it arduninos more accurate then rpi? i dunno what works the best is the darn switch on the card to flip the relay
the purpose of the physical switch is
1… to turn it on and off if my mom chooses to
2… if its already running (pump) you can shut it off
same way the Light switchs work press it on the Dashboard turns on turn it off at the physical switch
just seems to get stuck… or is it HA doesnt like the gpios? or they just not accurate light a light switch like i using from TPlink or costco light switchs or ardunios…
or maybe something i have to live with?
i had thought of using light switch but dont have extra light on them to show they working…
and there is no software in it to run timer… which sucks as i want it independent and isnt depenedent on HA main… incase its running or shut off or rebooting…
i run different ways in my head to try to solve issue
but perfer thise current one we on to utilize a RPI4 to run HA on it and Caller ID since its realivity easier to setup with Main HA since you guys got that card to link mulitple HA to 1…
but least for now i have a a rpi4 running for her now just runs every hour for 15 min using crontab and python script so this build your helping me with isnt bad to work on… since
that was just runs raspbarian crontab and python script…
but when i had the Ardunino it works well you could click it on and off like a door bell it wouldnt stick on… so its frustrating lol but when i linked Ardunio it rebooted it
but i had question
i notice on these 4 pack Relays for ardunio/raspberry pi
its supposed to be off… there is a red light on it.
Off is dark… On is bright red…
when i reboot RPI that red light doesnt go off it actually a Dull red light
then when it boots up the relay clicks and the light goes off
what is that?? this also happens if you shut the power off to RPI and turn back on the LED on the relay board is dimmed lightly then shuts off when i guess HA boots up?
does that mean the RPI is broken? or the relay board? if you need pics i can take some later
but i noticed that
does bounce time for that issue? too
update:
i tried a bunch of different pins… lot of the pins keeps it light red
but if i stick on GPIO 8 its dark on boot up but when HA boots up does that mean anything?
could that be the issue with the toggle switch 1 for when i had ardunino it was sending power? just that little power triggered it?
also could it be the cause why the binary sensor is getting stuck?