Closed championc closed 5 months ago
Try the instructions https://kellerza.github.io/sunsynk/guide/standalone-deployment#mbusd
Ok, I'm doing something wrong
My docker-compose.yaml file contains the following
_mbusd: container_name: mbusd restart: unless-stopped image: ghcr.io/kellerza/hass-addon-sunsynk-multi/amd64:stable devices:
I got the following errors after running docker compose up mbusd
root@Solar-M93:/opt# _docker compose up mbusd
[+] Running 1/0
✔ Container mbusd Created 0.0s
Attaching to mbusd
mbusd | s6-rc: info: service s6rc-oneshot-runner: starting
mbusd | s6-rc: info: service s6rc-oneshot-runner successfully started
mbusd | s6-rc: info: service fix-attrs: starting
mbusd | s6-rc: info: service fix-attrs successfully started
mbusd | s6-rc: info: service legacy-cont-init: starting
mbusd | s6-rc: info: service legacy-cont-init successfully started
mbusd | s6-rc: info: service legacy-services: starting
mbusd | services-up: info: copying legacy longrun sunsynk (no readiness notification)
mbusd | s6-rc: info: service legacy-services successfully started
mbusd | 09:39:53 ERROR No configuration file found
mbusd | 09:39:53 INFO sunsynk library version: 0.6.4
mbusd | 09:39:53 INFO Schedules:
mbusd | +-----------+-----+------+--------+-----------+----------+------------+
mbusd | | Key | src | Read | Report | Change by | Change % | Change any |
mbusd | +-----------+-----+------+--------+-----------+----------+------------+
mbusd | | date_time | | 60 | 60 | | | True |
mbusd | | rw | | 5 | 300 | | | True |
mbusd | | w | | 5 | 60 | 80 | | |
mbusd | | kwh | | 300 | 300 | | | |
mbusd | | any_unit | | 15 | 300 | | | |
mbusd | | no_unit | | 15 | 300 | | | True |
mbusd | +-----------+-----+------+--------+-----------+----------+------------+
mbusd | 09:39:53 INFO Using Single phase sensor definitions.
mbusd | 09:39:53 INFO Added hidden sensors as other sensors depend on it: Rated power, Serial
mbusd | Traceback (most recent call last):
mbusd | File "~~~~~^^^
mbusd | IndexError: list index out of range
mbusd | [09:39:53] WARNING: Halt add-on with exit code 1
mbusd | s6-rc: info: service legacy-services: stopping
mbusd | s6-rc: info: service legacy-services successfully stopped
mbusd | s6-rc: info: service legacy-cont-init: stopping
mbusd | s6-rc: info: service legacy-cont-init successfully stopped
mbusd | s6-rc: info: service fix-attrs: stopping
mbusd | s6-rc: info: service fix-attrs successfully stopped
mbusd | s6-rc: info: service s6rc-oneshot-runner: stopping
mbusd | s6-rc: info: service s6rc-oneshot-runner successfully stopped
mbusd exited with code 0
Apologies if I have misunderstood your instructions
Ok, making progress
I used ghcr.io/home-assistant/amd64-base, and now it has started
But do I need to add the "config.yaml" file, and then add to volumes ? Like this
mbusd: container_name: mbusd image: ghcr.io/home-assistant/amd64-base restart: unless-stopped devices:
Ok, something not right
All looks OK with mbusd 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 s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started
But from Sunsynk-Multi No response on the Modbus interface tcp://192.168.1.22:502
From a cli, doing "ss -ltn" shows port 502 is NOT listening
What is 192.168.1.22? The host address? What do you use in the addon?
If you move away from docker name resolution (tcp://mbusd:502) - you probably want to expose the ports
Is there details of how to create an mbusd docker container please ? I want to be able to share the /dev/ttyUSB0 port with the sunsynk-multi, node-red and homeassistant docker containers, and it seems like the way to go
Should I be making a sort of bash script file and putting the contents of the Dockerfile into it ? I tried to run that but it didn't work, so I am clearly going about it the wrong way.