DSMR Reader Add-on for Home Assistant

@sanderdw any ideas?
I cant upgrade my timescale db

Try to put all the databases also in the Timescale enabled listing, see Automatic updater is broken - missing libraries · Issue #18 · Expaso/hassos-addon-timescaledb · GitHub

But before you do make sure the DSMR addon is stopped.

1 Like

This is my config now
databases:

  • homeassistant
  • dsmrreader
    timescale_enabled:
  • homeassistant
    timescaledb:
    telemetry: basic
    maxmemory: 512MB
    maxcpus: ‘4’
    max_connections: 20
    system_packages: []
    init_commands: []

So you say i need to put dsmrreader also in the timescale enbaled thing?

Like this:

databases:

  • homeassistant
  • dsmrreader
    timescale_enabled:
  • homeassistant
  • dsmrreader
    timescaledb:
    telemetry: basic
    maxmemory: 512MB
    maxcpus: ‘4’
    max_connections: 20
    system_packages: []
    init_commands: []

ok that did the trick ! Thx for the problem solving !

Update to 1.2.0
Where did the nice UI go?

2022-05-09: DSMR Reader Add-on v1.2.0, Support for Ingress in BETA, see changelog
Changelog here

Because of Ingress support the ‘OPEN WEB UI’ button in the addon will always try to open up the Ingress page. As it’s standard disabled for now in Configuration (ENABLE_INGRESS) you need to open up the url manually in the browser, something like http://yourhomeassistant:7777/admin or check the log for the correct url.

If you want to try out the new Ingress support you need to set ENABLE_INGRESS to on in the Configuration. After this you can use the ‘OPEN WEB UI’ as normal again and it will open up in HA internally.
If this is not working, you probably need to uninstall and install the addon again :face_with_monocle:.

Can you let me now if my explanation works out for you?

Yes, the ip:7777 works
Can you explain why i should enable ingress?
what are the benifits?

Basically it integrates DSMR Reader in HA on UI level without having to mess with ports, so security wise it’s also a little safer (when you remove the 7777 port config aswell after activating and running Ingress correctly).

See Introducing Hass.io Ingress - Home Assistant

But you don’t have to use it, you can still use the manual ip:7777 option, only downside is now that you can’t use the ‘OPEN WEB UI’ button anymore.

i enabled the ingress toggle, and webui is back :wink:
easier than, 7777

Hi sanderdw, after viewing your post on Tweakers I decided to try your DSMR reader adon. I followed all the steps and i saw the data flowing in and the charts building. Which was great!

However after a while I noticed some very high strange readings coming into the regular HA energy dashboard. See screenshot below

2022-05-11_07-21-35

I already had the dsmr integration installed before i tried your add on. Can you help me trouble shoot these very strange spikes? And how can i fix them?

Do you have the same spikes in DSMR Reader itself? You must be using the DSMR Reader - Home Assistant in combination with the addon right?

I dont think so, will check at home this evening. They also appear in the gas readings. This is the integration I am using next to the adons you described:

image

I guess i “broke” something because i cannot get to the graphs anymore. Even a reinstall of both the db and the add on didn’t work:

Seems like you didn’t open the correct url. Do you have Ingress enabled? If yes open the UI trough Home Assistant itself. If you didn’t switch Ingress to on in the configuration, go manually to the url in your browser. You can find the correct url in the beginning of the log file when you start it up.

Thanks! That worked, I never saw in the steps you needed to turn on Ingress. I can now see the graphs being populated. Currently I cannot check historical values as I deleted the postgres db addon. I did notice that that deletion didn’t remove the very values in the energy dashboard, where are these stored and would you know how to remove them?

Also in the final optional step you mentioned to include the dsmr reader integration: DSMR Reader - Home Assistant However if i use that one I cannot use the entities in the energy dashboard.

If I use this integration all seems to work well: DSMR Slimme Meter - Home Assistant
Could they be interfering with each other?

Yes agree it’s not very clear yet, it’s because how the addon system works. If my code says the addon has Ingress support, the ‘OPEN WEB UI’ suddenly only works with Ingress. But Ingress is not default yet in the addon (it’s in BETA), so after upgrading you need to go to the url in your browser manually. It’s mentioned in the changelog though.

About that final step, that is answered here: DSMR Reader Add-on for Home Assistant - #175 by woutercoppens

So yes they interfere as they both using the USB port.

Ok thanks. Altough I didnt install the integration at first and still had the spikes.

I have an old slimme meter, only a v3 I believe. Can i then still take advantage of the advanced capabilities as you stated there? And if so, how can I add the sensors in the energy dashboard? Your final step isn’t really clear on that and the documentation on the integration page also doesnt state it. Because this is what i get when i try to use it:

image

I can now compare the charts between the energy dashboard and your addon. Some very strange and large spikes in the return graph during the night:

Unfortunately very strange readings in the energy dashboard which is very different from your add on:

image

image

Any advice?

That’s not looking ok (but usage looks fine right?). Just to verify, you are using the usb device directly with the addon now and using the integration i mentioned in step 12 to get it in HA with mqtt right?

Did you try these settings?

DATALOGGER_SERIAL_BAUDRATE: '9600'
DATALOGGER_SERIAL_BYTESIZE: '7'
DATALOGGER_SERIAL_PARITY: 'E'

Mostlikely your spikes has nothing to do with the addon and its more a question for the DSMR Reader project itself. You can create an issue here, specifying your Smart Reader hardware model: Issues · dsmrreader/dsmr-reader · GitHub

Just don’t mention the Home Assistant part yet. You first have to make sure your usage is correctly registered in DSMR Reader.