Posiadam UPS IMV/Victron Match Lite 500 i zainspirowany działaniami innych postanowiłem go monitorować w HassOS na RPi4. UPS do monitoringu ma port RS232, zastosowałem przejściówkę/konwerter na USB i podłączyłem do RPi które widzi to:
Podsystem:
tty
Ścieżka urządzenia:
/dev/ttyUSB0
Identyfikator:
/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0
Atrybuty:
DEVLINKS: >-
/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0
/dev/serial/by-path/platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0-port0
DEVNAME: /dev/ttyUSB0
DEVPATH: >-
/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/ttyUSB0/tty/ttyUSB0
ID_BUS: usb
ID_MODEL: USB-Serial_Controller
ID_MODEL_ENC: USB-Serial\x20Controller
ID_MODEL_ID: '2303'
ID_PATH: platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.1:1.0
ID_PATH_TAG: platform-fd500000_pcie-pci-0000_01_00_0-usb-0_1_1_1_0
ID_REVISION: '0300'
ID_SERIAL: Prolific_Technology_Inc._USB-Serial_Controller
ID_TYPE: generic
ID_USB_DRIVER: pl2303
ID_USB_INTERFACES: ':ff0000:'
ID_USB_INTERFACE_NUM: '00'
ID_VENDOR: Prolific_Technology_Inc.
ID_VENDOR_ENC: Prolific\x20Technology\x20Inc.
ID_VENDOR_ID: 067b
MAJOR: '188'
MINOR: '0'
SUBSYSTEM: tty
TAGS: ':systemd:'
USEC_INITIALIZED: '215321293942'
Zainstalowałem dodatek NUT który w .yaml mam skonfigurowany:
devices:
- config: []
driver: victronups
name: Match_lite_500
port: /dev/ttyUSB0
mode: netserver
shutdown_host: false
users:
- actions: []
instcmds:
- all
password: Piotr
username: piotr123
ale po uruchomieniu zatrzymuje się :
*s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/00-banner.sh
-----------------------------------------------------------
Add-on: Network UPS Tools
Manage battery backup (UPS) devices
-----------------------------------------------------------
Add-on version: 0.11.0
You are running the latest version of this add-on.
System: Home Assistant OS 8.2 (aarch64 / raspberrypi4-64)
Home Assistant Core: 2022.6.7
Home Assistant Supervisor: 2022.05.3
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
cont-init: info: /etc/cont-init.d/00-banner.sh exited 0
cont-init: info: running /etc/cont-init.d/01-log-level.sh
cont-init: info: /etc/cont-init.d/01-log-level.sh exited 0
cont-init: info: running /etc/cont-init.d/02-set-timezone.sh
[15:33:45] INFO: Configuring timezone
cont-init: info: /etc/cont-init.d/02-set-timezone.sh exited 0
cont-init: info: running /etc/cont-init.d/nut.sh
[15:33:46] INFO: Setting mode to netserver...
[15:33:46] INFO: Generating /etc/nut/upsd.users...
[15:33:46] INFO: Configuring user: piotr123
[15:33:47] WARNING: Password is in the Have I Been Pwned database!
[15:33:47] WARNING: Password appeared 198 times!
[15:33:47] FATAL:
[15:33:47] FATAL: We are trying to help you to protect your system the
[15:33:47] FATAL: best we can. Therefore, this add-on checks your
[15:33:47] FATAL: configured password against the HaveIBeenPwned database.
[15:33:47] FATAL:
[15:33:47] FATAL: Unfortunately, your configured password is considered
[15:33:47] FATAL: unsafe. We highly recommend you to pick a different one.
[15:33:47] FATAL:
[15:33:47] FATAL: Please change the password in the 'users[0].password' option.
[15:33:47] FATAL:
[15:33:47] FATAL: Check the add-on manual for more information.
[15:33:47] FATAL:
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 fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped*
Nie mam pojęcia co robię źle i jak podejść do temetu.