GPIO et domoticz 2020.1

Posez ici vos questions d'utilisation, de configuration de DomoticZ, de bugs, de conseils sur le logiciel lui même dans son utilisation et son paramétrage.
Des forums spécifiques sont ouverts ci-dessous pour regrouper les différents sujets.
daniel4860
Messages : 84
Inscription : 26 sept. 2016, 18:31
Localisation : Lapoutroie Haut-Rhin

GPIO et domoticz 2020.1

Message par daniel4860 »

Bonjour,
Je souhaite utiliser les GPIO mais elle sont inaccessible dans domoticz, j'ai toujours dans l'onglet ajout de matériel/
Type: gpio
GPIO: GPIO INIT ERROR

Quand je fait un sudo service domoticz.sh status, j'obtiens:
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (running) since Sun 2020-03-29 16:01:19 BST; 21min ago
Docs: man:systemd-sysv-generator(8)
Process: 404 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
Memory: 24.8M
CGroup: /system.slice/domoticz.service
└─417 /home/pi/domoticz/domoticz -daemon -www 8080 -sslwww 443


mars 29 16:01:19 raspberrypi domoticz.sh[404]: /etc/init.d/domoticz.sh: 158: /etc/init.d/domoticz.sh: /usr/local/bin/gpio: not found
mars 29 16:01:19 raspberrypi domoticz.sh[404]: /etc/init.d/domoticz.sh: 159: /etc/init.d/domoticz.sh: /usr/local/bin/gpio: not found
mars 29 16:01:19 raspberrypi systemd[1]: Started LSB: Home Automation System.

Effectivement il n'y a pas de fichier gpio dans /usr/local/bin/gpio

Dans le fichier /etc/init.d/domoticz.sh j'ai rajouter à la fin:
#Run export GPIO Raspberry

/usr/local/bin/gpio export 4 out
/usr/local/bin/gpio export 12 out

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DESC="Domoticz Home Automation System"

Ou est mon erreur?

Merci par avance.

Daniel
Domoticz sur Raspberry sur lequel 3 sondes prennent la température.
Une Gpio Out fait basculer un relais pour enclencher un circulateur.
Neutrino
Messages : 2662
Inscription : 10 juil. 2015, 15:42
Localisation : Les Herbiers(85)

Re: GPIO et domoticz 2020.1

Message par Neutrino »

https://www.domoticz.com/wiki/GPIO

Essaye le "Generic Sysfs GPIO" comme matériel, c'est le plus compatible.
Ma maison à plein d'IP ! :mrgreen:
SAV Bonjour. Vous avez vidé le cache ?
daniel4860
Messages : 84
Inscription : 26 sept. 2016, 18:31
Localisation : Lapoutroie Haut-Rhin

Re: GPIO et domoticz 2020.1

Message par daniel4860 »

Rebonjour,
J'ai trouver mon erreur, une erreur de chemin et avec les correction dans domoticz.sh:
/usr/bin/gpio export 4 out
/usr/bin/gpio export 12 out

PATH=/usr/bin
DESC="Domoticz Home Automation System"

Je peux utiliser les sorties et commandé mes relais.

Daniel
Domoticz sur Raspberry sur lequel 3 sondes prennent la température.
Une Gpio Out fait basculer un relais pour enclencher un circulateur.
Répondre