Hi,
I’m trying to configure a raspi pi zero w as (only, su HA is running in another raspberry) nut server for my ups Tecnoware 1100.
I’m finding several issue and I don’t know how to go ahead. I installed nut into the raspi, then I defined with this command sudo nano /etc/nut/ups.conf
driver configuration:
[tecnoware]
driver = "blazer_usb"
port = auto
desc = "Technoware Era Plus 1100"
langid_fix = "0x409"
then into making the command
sudo nano /etc/nut/nut.conf
I defined the
MODE=standalone
Then I reboot it and checked if it’s currently communicating with ups. With
sudo upsdrvctl start
I see
Network UPS Tools - UPS driver controller 2.7.4 Network UPS Tools - Megatec/Q1 protocol USB driver 0.12 (2.7.4) Duplicate driver instance detected! Terminating other driver!
and after a while I find:
Broadcast message from nut@raspberrypi-upc-cameras (somewhere) (Fri Dec 24 15:42) Communications with UPS tecnoware@localhost lost
and after few seconds this message appears
`Supported UPS detected with mustek protocol
Vendor information unavailable
No values provided for battery high/low voltages in ups.conf
Using ‘guestimation’ (low: 10.400000, high: 13.000000)!
Battery runtime will not be calculated (runtimecal not set)
Broadcast message from nut@raspberrypi-upc-cameras (somewhere) (Fri Dec 24 15:4
Communications with UPS tecnoware@localhost established`
It seems like it lasts randomly and for few second the communication and then it comes back again.
Also I find this status if I send this command sudo service nut-server status
:
Dec 24 15:22:56 raspberrypi-upc-cameras upsd[439]: User upsmon@::1 logged into UPS [tecnoware] Dec 24 15:22:58 raspberrypi-upc-cameras upsd[439]: UPS [tecnoware] data is no longer stale Dec 24 15:23:26 raspberrypi-upc-cameras upsd[439]: Data for UPS [tecnoware] is stale - check driver Dec 24 15:23:26 raspberrypi-upc-cameras upsd[439]: UPS [tecnoware] data is no longer stale Dec 24 15:26:14 raspberrypi-upc-cameras upsd[439]: Can't connect to UPS [tecnoware] (blazer_usb-tecnoware): No such file or directory Dec 24 15:26:21 raspberrypi-upc-cameras upsd[439]: Connected to UPS [tecnoware]: blazer_usb-tecnoware Dec 24 15:43:28 raspberrypi-upc-cameras upsd[439]: Data for UPS [tecnoware] is stale - check driver Dec 24 15:44:41 raspberrypi-upc-cameras upsd[439]: UPS [tecnoware] data is no longer stale Dec 24 15:46:25 raspberrypi-upc-cameras upsd[439]: Can't connect to UPS [tecnoware] (blazer_usb-tecnoware): No such file or directory Dec 24 15:46:33 raspberrypi-upc-cameras upsd[439]: Connected to UPS [tecnoware]: blazer_usb-tecnoware
If I send then the command
upsc tecnoware
I found all the values of the ups, so it seems it’s communicating correctly:
Init SSL without certificate database battery.charge: 100 battery.voltage: 13.50 battery.voltage.high: 13.00 battery.voltage.low: 10.40 battery.voltage.nominal: 12.0 device.type: ups driver.name: blazer_usb driver.parameter.langid_fix: 0x409 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.parameter.synchronous: no driver.version: 2.7.4 driver.version.internal: 0.12 input.current.nominal: 2.0 input.frequency: 50.0 input.frequency.nominal: 50 input.voltage: 224.4 input.voltage.fault: 224.4 input.voltage.nominal: 230 output.voltage: 224.4 ups.beeper.status: disabled ups.delay.shutdown: 30 ups.delay.start: 180 ups.load: 0 ups.productid: 5161 ups.status: OL ups.type: offline / line interactive ups.vendorid: 0665
So I tried also to configure NUT add on into HA, and I used this configuration:
`devices:
- name: tecnoware
driver: blazer_usb
port: auto
config:- langid_fix = 0x0409
mode: netserver
shutdown_host: ‘false’
users:
- langid_fix = 0x0409
- username: genga91
password: clangit-ad-arma9
instcmds:- all
actions: []
list_usb_devices: true
upsd_maxage: 25
upsmon_deadtime: 25`
- all
but in the log file I found this error:
`[15:52:43] INFO: Setting mode to netserver…
[15:52:43] INFO: Connected USB devices:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[15:52:44] INFO: Generating /etc/nut/upsd.users…
[15:52:44] INFO: Configuring user: genga91
[15:52:45] INFO: Password is NOT in the Have I Been Pwned database! Nice!
[15:52:46] INFO: Configuring Device named tecnoware…
[15:52:46] INFO: Starting the UPS drivers…
Network UPS Tools - Megatec/Q1 protocol USB driver 0.12 (2.7.4)
No supported devices found. Please check your device availability with ‘lsusb’
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least ‘subdriver’, ‘vendorid’ and ‘productid’
options specified. Please refer to the man page for details about these options
(man 8 blazer_usb).
Network UPS Tools - UPS driver controller 2.7.4
Driver failed to start (exit status=1)
[cont-init.d] nut.sh: exited 1.
[cont-finish.d] executing container finish scripts…
[cont-finish.d] 99-message.sh: executing…
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when
starting or running this add-on.
Be sure to check the log above, line by line, for hints.
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.`
I really don’t know how to do, I tried everything. I defined the sub driver, vendorid and productid as the guide suggested, then I tried to modify the MAXAGE into the sudo nano /etc/nut/upsmon.conf
nothing worked for me. Any idea?
Thanks