Page 1 of 1

GPIO switch not working on Domoticz (but workin manualy in pi)

Posted: Thursday 30 July 2020 23:39
by n4rs
Hi everyone,
I'm trying to finish my first setup but it is complicated...
The Pi GPIO is wired to a 16 channel relay (with it's own 12 V power supply).
I can export the GPIO's in the correct order on the terminal, and created the boot file to load them on boot.
I even loaded Domoticz only after loading the GPIOs.
In the terminal I can turn them on and off, no problem.
In Domoticz they appear as switch devices (so as it should be supposed), but clicking on the Switch Icons won't turn them on or off (eg.: They are all on, I click on the icon and it shows on domoticz that it was turned of, but the relay stays on, no change. Same thing happens the opposite way).

Re: GPIO switch not working on Domoticz (but workin manualy in pi)

Posted: Monday 27 June 2022 9:54
by Dnpwwo
I use a plugin to control output GPIO pins and don't have an issue, you could try that if the built in functionality isn't working for you.

Its here: https://github.com/dnpwwo/Domoticz-GPIO-Plugin

Re: GPIO switch not working on Domoticz (but workin manualy in pi)

Posted: Monday 27 June 2022 11:34
by mgugu
n4rs wrote: Thursday 30 July 2020 23:39 Hi everyone,
I'm trying to finish my first setup but it is complicated...
The Pi GPIO is wired to a 16 channel relay (with it's own 12 V power supply).
I can export the GPIO's in the correct order on the terminal, and created the boot file to load them on boot.
I even loaded Domoticz only after loading the GPIOs.
In the terminal I can turn them on and off, no problem.
In Domoticz they appear as switch devices (so as it should be supposed), but clicking on the Switch Icons won't turn them on or off (eg.: They are all on, I click on the icon and it shows on domoticz that it was turned of, but the relay stays on, no change. Same thing happens the opposite way).
In Domoticz there are 2 different hardwares for GPIO: "Raspberry's Gpio port" and "Generic sysfs Gpio".
I use "Generic sysfs Gpio" for years without any problem.