sysfs gpio with active_low on startup

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
markzealey
Posts: 1
Joined: Monday 13 November 2017 18:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

sysfs gpio with active_low on startup

Post by markzealey »

I've got pull-up gpio switches on a pi; exporting like:

/usr/bin/gpio export 17 in; /usr/bin/gpio -g mode 17 up; echo 1 > /sys/class/gpio/gpio17/active_low

prior to starting domoticz. /sys/class/gpio/gpio17/value correctly shows 0 ; and if I toggle active_low false and then true again, domoticz registers the correct value. However when domoticz first starts up for some reason it registers the input value without the active_low toggling the value correctly. Any ideas?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest