PIGPIO: relais switched when reconnecting

Hi,

I have a problem with pigpio, when a raspi reconnects all relays suddenly simultaneously switch to ON (and I have 18 connected relays (From GPIO4-22).

Setup: 1 remote raspi 3 running pigpiod and connected to 18 relays for motor controller of shutters.

1 openhab instance on a raspi5. On this I have defined:

Blockquote
Thing gpio:pigpio-remote:raspi2Rollo “Raspi 2 Rollo GPIO” [ host=“192.168.1.124”, port=8888,
heartBeatInterval=10000,
outputConnectAction=“ALLOFF”,
outputDisconnectAction=“SETUNDEF”,
outputReconnectAction=“NOTHING” ]
{
Channels:
Type pigpio-digital-output : GPO4 [ gpioId=4, invert=true, pulse=1700,pulseCommand=“OFF” ]

Item:
Group Rollos
Switch Rollo4Down_1 (Rollos)
Switch Rollo4Down_1_Proxy {channel=“gpio:pigpio-remote:raspi2Rollo:GPO4”}

The Thing works correctly once everything is connected and I have manually switched all gpios to OFF.

If I now reboot the remote raspi, everything ok, after a while ( I presume reconnect of raspi5) all relays suddenly on. This is regardless of the state the items are before the reconnect. I have tried different Actions in the action setting to no avail.

Any ideas?
Thanks for any input.

Hi,
finally solved this by editing
boot/config.txt
and explicitly setting the relays to output and also setting correct state which in my case is “high”. This way no switching of relays occurs at all.
Just for future reference.

2 Likes