The system is Backwards, all works “fine” but backwards, this happen only with the GPIO that are connected to the relays.
And went I restart the server all the relays connect to the Raspberry BEGGING in ON mode.
This is the code for the bottoms
Example configuration.yaml entry
switch:
- platform: rpi_gpio
ports:
02: Button2
03: Button3
04: Button4
05: Button5
06: Button6
07: Button7
08: Button8
09: Button9
10: Button10
11: Button11
12: Button12
13: Button13
14: Button14
15: Button15
16: Button16
17: Button17
18: Button18
19: Button19
20: Button20
21: Button21
22: Button22
23: Button23
24: Button24
25: Button25
26: Button26