setting a gio pin as input and export in domoticz
Posted: Saturday 04 November 2017 15:43
hi to all,
iam testing to use a pin on the gpio to use as an input in domoticz.
i connect a button (normally open) betwenn the physical pin 34 (ov) and the physycal pin 32 (name GPIO.26 and BCM 12).
in this mode when the button is unpressed, on the pin 32 i have nothing, when the buttun is pressed i must have 0v.
if i use the command gpio readall from shell i look always the value of the pin is V 0.
to export in domoticz i use a sysf gpio hardware. in the file to startup domoticz i add this line:
echo 12 > /sys/class/gpio/export
and i can add a virtual device connect to the sysf gpio on bcm 12. i set the type as contact as i find in the wiki.
i think in the export miss something, but i don't understand because from gpio readall the value is always 0.
someone can help me ?
iam testing to use a pin on the gpio to use as an input in domoticz.
i connect a button (normally open) betwenn the physical pin 34 (ov) and the physycal pin 32 (name GPIO.26 and BCM 12).
in this mode when the button is unpressed, on the pin 32 i have nothing, when the buttun is pressed i must have 0v.
if i use the command gpio readall from shell i look always the value of the pin is V 0.
to export in domoticz i use a sysf gpio hardware. in the file to startup domoticz i add this line:
echo 12 > /sys/class/gpio/export
and i can add a virtual device connect to the sysf gpio on bcm 12. i set the type as contact as i find in the wiki.
i think in the export miss something, but i don't understand because from gpio readall the value is always 0.
someone can help me ?