evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.47k stars 640 forks source link

hems not working in home assistant docker mode (maybe all docker container?) #3027

Closed AnduriI closed 2 years ago

AnduriI commented 2 years ago

Describe the bug

I have a running evcc instance on my home assistant machine and one for test purpose and interactive usage (e.g. creating config.yaml). I tried to enable my sma hems. Directly installed on my RPi it works fine, but not in the docker environment.

Steps to reproduce

starting evcc with and without hems enabled.

Configuration details

hems:
  type: sma
#  AllowControl: false

Log details

in the log in my home assistant I see the following:

starting evcc: 'evcc --config  /config/evcc.yaml'
[main  ] INFO 2022/03/28 13:05:30 evcc 0.87
[main  ] INFO 2022/03/28 13:05:30 using config file /config/evcc.yaml
[main  ] INFO 2022/03/28 13:05:30 listening at 0.0.0.0:7070
[main  ] FATAL 2022/03/28 13:05:34 failed configuring hems: creating device id: machineid: machineid: open /etc/machine-id: no such file or directory

What type of operating system are you running?

Linux

Version

both are running evcc version 0.87

premultiply commented 2 years ago

We do not provide docker support, sorry. https://docs.evcc.io/docs/installation/docker/#docker-installation

andig commented 2 years ago

See https://github.com/denisbrodbeck/machineid/issues/5

AnduriI commented 2 years ago

Thanks both of your for the clarification, now I understand the problem. As I'm using https://github.com/evcc-io/hassio-addon/ could it be possible to mount the machine-id along with the config file?