DSMR Reader Add-on for Home Assistant

If I understand there are 3 possibilities to get the dsmr data:

What is the difference between these? Advantages/disadvantages?

The first one is indeed a separate solution, which works on it’s own. Downside is that you don’t get all the features the DSMR Reader is providing: About DSMR-reader — DSMR-reader v4 documentation

The second option is in fact an addition to this addon (see step 12 in hassio-addons/dsmr_reader at master · sanderdw/hassio-addons · GitHub). This addon by itself don’t integrate any ‘sensors’ into HA. So use them in a combination :slight_smile: .

Ok, can’t help you with that unfortunately, but I hope you can find a solution soon! :grinning:

Hi Rednas, could you explain what you did to solve so that the pluging doesn’t restart everytime? Mine is also crashing al the time and the webinterface is not reachable.

I had to disable the default platform: dsmr as it’s not able to use the same USB port together.

Who is willing to test the 1.0.0 beta release which includes DSMR Reader 5.0?
I want to be sure it’s properly tested first before putting it into production.

You will need to uninstall the repository version and manually download and install this beta version.
You can download the new version here: https://github.com/sanderdw/hassio-addons/tree/v5

  1. On the v5 branch download the zip file of the repository (Code → Download ZIP)
  2. From the zip file, place only the dsmr_reader folder in \\yourhomeassistant\addons
  3. Go to the addons page and remove the 0.7.4 version (remember your settings).
  4. On the addons page go to the ADD-ON STORE
  5. On the top right right press the 3 dots and “Check for updates”
  6. You should see DSMR Reader appearing under local addons
  7. Install and reconfigure (options are changed)

Please report here if there are any issue’s, questions.

Thanks!

2022-02-23: 1.0.0 DSMR Reader Add-on v1.0.0, check changelog before upgrading
Changelog here

2 Likes

updated and everything works fine :+1:

1 Like

Working great @sanderdw. Not even needed to reset settings. Only put my usb back to usb-by-name.

Only is it posible to stop the log flooding with the “http get” command in the plugin log?

Good to hear. I would advice to reset the settings though to make sure you don’t get any problems in the future.

I will have a look at the logging issue indeed.
Edit: It’s going to be in DSMR 5.1, see (dutch though) https://github.com/xirixiz/dsmr-reader-docker/issues/268#issuecomment-1039550259

1 Like

Same experience here, couldn’t get the add-on running for long since v.0.73, but this version is working like a charm.

I have an issue I’m running into… Since yesterday I have migrated DSMR from PI to Homeassistant addon and it is running great.

Now i’ve changed my energy contract prices and want to recalculate the prices. I can SSH to Homeassistant and open a SSH session to the docker image with “docker exec -it addon_0826754b_dsmr_reader bash”

DSMR manual tells me to run this command:

sudo su - dsmr
./manage.py dsmr_stats_recalculate_prices

But this is not possible. it gives errors like “env: ‘python3’: No such file or directory”

How can i recalculate the prices?

First get into the addon container:

docker exec -it addon_0826754b_dsmr_reader bash

Then set the Home Assistant configuration:

. /etc/cont-init.d/01-set-hassio-vars

En then you execute DSMR commands:

python manage.py dsmr_stats_recalculate_prices
1 Like

Thanks for the quick reply, problem solved!

Trying to get this to work, ending up with this?

Solved by changing host.

Is it possible to import. csv historical data?

You van check the docs about import and export of data: https://dsmr-reader.readthedocs.io

2022-03-02: DSMR Reader Add-on v1.1.0, check changelog before upgrading
Changelog here

I’m running DSMR reader a long time and now i’m getting some errors in the supervisor log.

22-03-10 12:40:41 WARNING (MainThread) [supervisor.addons.options] Option 'DATALOGGER_MODE' does not exist in the schema for DSMR Reader (0826754b_dsmr_reader)
22-03-10 12:40:41 WARNING (MainThread) [supervisor.addons.options] Option 'DATALOGGER_SERIAL_PORT' does not exist in the schema for DSMR Reader (0826754b_dsmr_reader)
22-03-10 12:40:41 WARNING (MainThread) [supervisor.addons.options] Option 'DATALOGGER_INPUT_METHOD' does not exist in the schema for DSMR Reader (0826754b_dsmr_reader)
22-03-10 12:40:41 WARNING (MainThread) [supervisor.addons.options] Option 'DATALOGGER_SERIAL_BAUDRATE' does not exist in the schema for DSMR Reader (0826754b_dsmr_reader)
22-03-10 12:40:41 WARNING (MainThread) [supervisor.addons.options] Option 'DATALOGGER_NETWORK_HOST' does not exist in the schema for DSMR Reader (0826754b_dsmr_reader)
22-03-10 12:40:41 WARNING (MainThread) [supervisor.addons.options] Option 'DATALOGGER_NETWORK_PORT' does not exist in the schema for DSMR Reader (0826754b_dsmr_reader)
22-03-10 12:40:41 WARNING (MainThread) [supervisor.addons.options] Option 'DATALOGGER_SLEEP' does not exist in the schema for DSMR Reader (0826754b_dsmr_reader)

After upgrading do you mean? After the update go to the addon “Configuration” tab and next to “Options” choose “Reset to defaults” (Not the one below “Network”) and apply your settings again.

1 Like

Thanks, i have to rtfm better :wink: