Hey guys,
I am running a hass.io on my rpi3b+.
Aside from all the wireless/mqtt switches that are in my system, i also have a total of around 20 switches hardwired to the pi with 5v relay boards. (3x4relay and 1x8relay boards)
For ease of use and some sort of cable management i am using a gpio cable connected to a breadboard where all my cables connect. I am also supplying external 5v power to the breadboard through a branded phone charger.
I know my cable management is not good but im working on it.
Here is my problem:
I have noticed that when i try to turn on all or most of the switches, some specific ones fail to turn on.
example: If i turn on my garden floodlights when everything else is off, they work ok. if i try to turn them on when several other lights are on, they wont work. Same with two (of my 8) living room lights.
Here is a map of my gpio wiring in case someone has some idea. The blue/red/green tinted names are the relays, and the ones that fail the most are GPIO23/20/21 and occasionally GPIO27 and 17 (on the bcm numbering)
What is this behavior? some sort of power shortage?
The strange thing is that it’s not happening on any switch. Some switches always work, no matter what else is on, and those specific 4-5 gpios seem to always fail when others are on.
I mean i tried switching them all on one by one with different order, and it’s not the last ones that fail, its always those specific ones.
Also, i have found that if i turn them on on a specific order, i can manage to light everything up.
I did already seek advice at the rpi corner of stack exchange where i was advised to add the aforementioned 5v power on my relays, but that didnt make any difference. They did also advise me to get rid of the breadboard (see pic) but i have not found a good alternative way to wire them yet.
I also tried a different rpi, with the same results.
Any ideas or tips to troubleshoot would be greatly appreciated!
(also please let me know if another subreddit would be a more appropriate to post such issue)
Thank you in advance guys
PS: part of my switch.yaml:
- platform: rpi_gpio
ports:
4: saloni_1
3: saloni_2
...
8: radiator_upstairs
13: air_condition_upstairs
invert_logic: true