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