sanderdw / hassio-addons

DSMR Reader Datalogger and Metabase Home Assistant Add-ons
https://community.home-assistant.io/search?q=%40sanderdw%20%23home-assistant-os
Other
54 stars 14 forks source link

Is is possible to disable the dsmr_datalogger process from starting all together? #7

Closed cyberjunky closed 3 years ago

cyberjunky commented 3 years ago

I'm trying out your DSMR Reader add-on, nice work, was trying to port it too, but stopped of course. Is there a way to disable the dsmr_datalogger process from being started? I use the API to supply data to the instance via rest calls. So no network or serial device involved. I'm on version 0.1.0 now.

...
...
2021-02-22 10:56:40,919 INFO exited: dsmr_datalogger (exit status 0; expected)
2021-02-22 10:56:41,925 INFO spawned: 'dsmr_datalogger' with pid 5844
2021-02-22 10:56:42,928 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-02-22 10:56:48,896 INFO exited: dsmr_datalogger (exit status 0; expected)
2021-02-22 10:56:49,900 INFO spawned: 'dsmr_datalogger' with pid 5845
2021-02-22 10:56:50,902 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2021-02-22 10:56:56,860 INFO exited: dsmr_datalogger (exit status 0; expected)
2021-02-22 10:56:57,866 INFO spawned: 'dsmr_datalogger' with pid 5846
2021-02-22 10:56:58,869 INFO success: dsmr_datalogger entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
sanderdw commented 3 years ago

Hi! Yes it's possible. You need to set the 'DATALOGGER_MODE' to 'receiver' and restart the addon.

cyberjunky commented 3 years ago

Yes, working, thanks!