Hello à tous,
J’ai récemment tenté d’intégrer un onduleur GreenCell à mon Home Assistant tournant sur un Raspberry Pi (HAOS). Pour cela, j’ai essayé de le connecter directement via USB.
Malheureusement, apparemment le RPi ne détecte pas le branchement USB entre lui et l’onduleur. Est-ce que quelqu’un a déjà réussi cette intégration ou pourrait m’offrir des conseils sur comment faire reconnaître cet onduleur par le RPi ?
Merci par avance pour votre aide ! =)
Hello,
qu’as tu essayé de faire pour ça?
Normalement il faut passer l’add-on NUT qui gèrera l’interface avec l’onduleur.
La documentation de l’add-on donne une lien avec la liste des onduleurs compatibles avec le protocole. Généralement GreenCell c’est compatible je crois.

Merci pour ta réponse @AlexHass
En effet j’ai bien essayé de l’ancer l’addon après avoir défini un nom d’utilisateur et un mot de passe.
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting
-----------------------------------------------------------
Add-on: Network UPS Tools
Manage battery backup (UPS) devices
-----------------------------------------------------------
Add-on version: 0.12.2
You are running the latest version of this add-on.
System: Home Assistant OS 11.1 (aarch64 / raspberrypi4-64)
Home Assistant Core: 2023.11.1
Home Assistant Supervisor: 2023.10.1
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[21:42:49] INFO: Configuring timezone (Europe/Paris)...
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/nut.sh
[21:42:50] INFO: Setting mode to netserver...
[21:42:51] INFO: Generating /etc/nut/upsd.users...
[21:42:51] INFO: Configuring user: jeanyvon
[21:42:52] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[21:42:53] INFO: Configuring Device named onduleur_Salon...
[21:42:54] INFO: Starting the UPS drivers...
libusb1: Could not open any HID devices: insufficient permissions on everything
No matching HID UPS found
Network UPS Tools - Generic HID driver 0.47 (2.8.0)
USB communication driver (libusb 1.0) 0.43
Network UPS Tools - UPS driver controller 2.8.0
Driver failed to start (exit status=1)
cont-init: info: /etc/cont-init.d/nut.sh exited 1
cont-init: info: running /etc/cont-init.d/nutclient.sh
cont-init: info: /etc/cont-init.d/nutclient.sh exited 0
cont-init: warning: some scripts exited nonzero
s6-rc: warning: unable to start service legacy-cont-init: command exited 1
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-timezone: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-timezone successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
Ce que j’en déduis c’est qu’il ne détecte pas mon onduleur avec ces deux lignes :
libusb1: Could not open any HID devices: insufficient permissions on everything
No matching HID UPS found
C’est allé vite !
Ton intervention m’a permis de voir le problème différent. ( Problème que je rencontrais depuis plusieurs semaines déjà)
Alors au cas où une personne rencontrerait les mêmes difficultés
-
Dans l’add-on j’ai défini driver: nutdrv_qx
Et là finalement mon onduleur a été détecté.
-
Dans l’intégration Network UPS Tools (NUT)
le localhost ne fonctionne pas et dans la doc de l’add-on il est noté :
Note : The host a0d7b954-nut
can be used to allow Home Assistant to communicate directly with the addon
Du coup, j’ai mis a0d7b954-nut
en hôte
J’ai laissé le port sur 3493
Et le nom d’utilisateur et le mot de passe, c’est celui qui a été défini dans l’add-on
Finalement c’est pas si compliqué, mais il fallait connaitre les petites subtilités 
merci @AlexHass
2 « J'aime »