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

Moderator: leecollings

Post Reply
n4rs
Posts: 5
Joined: Tuesday 28 April 2020 11:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Portugal
Contact:

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

Post 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).
User avatar
Dnpwwo
Posts: 819
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

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

Post 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
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
mgugu
Posts: 217
Joined: Friday 04 November 2016 12:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: France
Contact:

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

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests