attr active_low bei ESP-Relaisansteuerung

Begonnen von Jogi, 04 August 2017, 12:16:24

Vorheriges Thema - Nächstes Thema

Jogi

Hallo,
wenn ich über den Raspberry Pi ein Relais ansteuere setze ich das Attribut active_low auf yes um sicherzustellen, dass das Relais nur bei "on" anzieht.
Wie kann ich das bei der Ansteiuerung eines Relais über ESPEasy realisieren. Dabei gibt es das Attribut scheinbar nicht.
Momentan sieht meine Schaltung so aus:
define Pumpenrelais dummy
attr Pumpenrelais group Gartenhaus
attr Pumpenrelais room 7.Aussen
attr Pumpenrelais webCmd on:off
define nPumpenrelaison notify Gartenpumpe:on set Pumpenrelais on
define nPumpenrelaisoff notify Gartenpumpe:off set Pumpenrelais off

define Pumpenrelais_ein_aus notify Pumpenrelais { \
    if ("$EVENT" eq "on") { \
    system "wget -O /dev/null -q http://192.168.178.70/control?cmd=GPIO,05,1&" \
    }0;;\
    if ("$EVENT" eq "off") { \
    system "wget -O /dev/null -q http://192.168.178.70/control?cmd=GPIO,05,0&" \
    }0;;\
}


Dabei zieht das Relais allerdings im off-Zustand an und im on-Zustand fällt es ab.
Ich könnte das natürlich umgekehrt programmieren, aber es muss doch auch anders gehen?

Vielen Dank für Tipps.