[Nut-upsuser] Je ne parviens pas à faire communiquer mon UPS avec HomeAssistant
Nicolas
nicolas.fanjat at gmail.com
Wed Mar 27 13:05:07 GMT 2024
Bonjour à tous,
Je n'arrive pas a faire marcher NUT avec HomeAssistant.
Cela fait des mois que je suis la-dessus, mais sans succès !
Je ne vois plus quoi faire ! Help !
*
Ubuntu 23.10
*
NUT version = 2.7.4-14ubuntu2
*
NUT installation method: Package
*
exact device name and related information : Riello IDG800
Voici les commandes que je tape sur le PC connecté par USB à l'UPS :
/
$ lsusb
Bus 001 Device 002: ID 04b4:5500 Cypress Semiconductor Corp. HID->COM
RS232 Adapter
$ nut-scanner
Neon library not found. XML search disabled.
IPMI library not found. IPMI search disabled.
Scanning USB bus.
No start IP, skipping SNMP
No start IP, skipping NUT bus (old connect method)
[nutdev1]
driver = "riello_usb"
port = "auto"
vendorid = "04B4"
productid = "5500"
bus = "001"
/
/
/
/$ sudo upsdrvctl start
Network UPS Tools - UPS driver controller 2.7.4
Network UPS Tools - Riello USB driver 0.03 (2.7.4)
Warning: This is an experimental driver.
Some features may not function correctly./
Fichier : ups.conf/
/
/[//UPS_Bureau//]
driver = riello_usb
port = auto
# vendorid = "04B4" # Lignes commentées car sinon //upsdrvctl
start => //Fatal error: 'vendorid' is not a valid variable name for
this driver.
# productid = "5500"//# //upsdrvctl start => //Fatal error:
'productid' is not a valid variable name for this driver./
/# bus = "001"//# //upsdrvctl start => //Fatal error: '//bus//'
is not a valid variable name for this driver./
/ desc = "Riello IDG 800 du bureau"
/
Si Fichier : upsd.conf
/LISTEN localhost 3493/
/LISTEN 127.0.0.1 3493/
/LISTEN 192.168.0.49 # Adresse IP de mon HomeAssistant/
/LISTEN 192.168.0.49 3493//# Adresse IP de mon HomeAssistant/
Alors/:
/
/$ upsc UPS_Bureau/
/Error: Connection failure: Connection refused/
/$ systemctl restart nut-server.service
Job for nut-server.service failed because the control process exited
with error code.
See "systemctl status nut-server.service" and "journalctl -xeu
nut-server.service" for details./
/$ systemctl status nut-server.service
× nut-server.service - Network UPS Tools - power devices information server
Loaded: loaded (/lib/systemd/system/nut-server.service; enabled;
vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2024-03-27 10:28:00
CET; 16s ago
Process: 10715 ExecStart=/sbin/upsd (code=exited, status=1/FAILURE)
CPU: 12ms
mars 27 10:28:00 nicolas-MS-7B19 upsd[10715]: not listening on
192.168.0.49 port 3493
mars 27 10:28:00 nicolas-MS-7B19 upsd[10715]: listening on 127.0.0.1
port 3493
mars 27 10:28:00 nicolas-MS-7B19 upsd[10715]: no listening interface
available
mars 27 10:28:00 nicolas-MS-7B19 upsd[10715]: not listening on
192.168.0.49 port 3493
mars 27 10:28:00 nicolas-MS-7B19 upsd[10715]: Network UPS Tools upsd 2.7.4
mars 27 10:28:00 nicolas-MS-7B19 upsd[10715]: listening on 127.0.0.1
port 3493
mars 27 10:28:00 nicolas-MS-7B19 upsd[10715]: no listening interface
available
mars 27 10:28:00 nicolas-MS-7B19 systemd[1]: *nut-server.service:
Control process exited, code=exited, status=1/FAILURE*
mars 27 10:28:00 nicolas-MS-7B19 systemd[1]: nut-server.service: Failed
with result 'exit-code'.
mars 27 10:28:00 nicolas-MS-7B19 systemd[1]: Failed to start Network UPS
Tools - power devices information server.
/
Si Fichier : upsd.conf
/LISTEN 127.0.0.1 3493/
Alors/:
/
/$upsc UPS_Bureau
Init SSL without certificate database
battery.capacity: 7
battery.charge: 255
[...]
ups.serial:
ups.status: OL
ups.temperature: 255
ups.vendorid: 04b4
/
/$systemctl status nut-server.service
● nut-server.service - Network UPS Tools - power devices information server
Loaded: loaded (/lib/systemd/system/nut-server.service; enabled;
vendor preset: enabled)
Active: active (running) since Wed 2024-03-27 12:04:45 CET; 3min
48s ago
Process: 17682 ExecStart=/sbin/upsd (code=exited, status=0/SUCCESS)
Main PID: 17683 (upsd)
Tasks: 1 (limit: 19016)
Memory: 620.0K
CPU: 32ms
CGroup: /system.slice/nut-server.service
└─17683 /lib/nut/upsd
mars 27 12:04:45 nicolas-MS-7B19 systemd[1]: Starting Network UPS Tools
- power devices information server...
mars 27 12:04:45 nicolas-MS-7B19 upsd[17682]: fopen /run/nut/upsd.pid:
No such file or directory
mars 27 12:04:45 nicolas-MS-7B19 upsd[17682]: listening on 127.0.0.1
port 3493
mars 27 12:04:45 nicolas-MS-7B19 upsd[17682]: listening on 127.0.0.1
port 3493
mars 27 12:04:45 nicolas-MS-7B19 upsd[17682]: Connected to UPS
[UPS_Bureau]: riello_usb-UPS_Bureau
mars 27 12:04:45 nicolas-MS-7B19 upsd[17682]: Connected to UPS
[UPS_Bureau]: riello_usb-UPS_Bureau
mars 27 12:04:45 nicolas-MS-7B19 upsd[17683]: Startup successful
mars 27 12:04:45 nicolas-MS-7B19 systemd[1]: Started Network UPS Tools -
power devices information server./
/
/
Dans le fichier upsd.users :
/[nut-admin]
password = motdepasse
upsmon master
/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20240327/a82d5086/attachment.htm>
More information about the Nut-upsuser
mailing list