"DSMR Slimme Meter" integration: can't get it to work with the new HA Energy Dashboard

Sorry if this is not the correct place to post this question (i find it rather difficult to find where to post :frowning: )

Hi. I’m trying to configure the Energy section of HA (being at 2021.08.02 on HA OS on a RPi4 with P1 cable). For Energy-consumption, i think i would need sensor.power_consumption from the ‘DSMR Slimme Meter’ integration. But that entity is unavailable in the drop down for consumption. I had a look on GitHub and think i see many HA-people have contributed to ‘DSMR Slimme Meter’, so assume it is compatible with the new Energy feature of HA? Am i missing something?

The answer is sort of in the question. You want energy consumption so you need sensor.energy_consumption…

There should be two, for high an low tariff.

Best I’ve seen sofar is to setup utility meter integration that uses you sensors from P1 as input. The those sensors are available for energy setup

It worked here without problem… using the DSMR Reader also

Thanks for all the replies. @poudenes : you mention using ‘DSMR Reader’, which i think is something different than ‘DSMR Meter’ (DSMR Slimme Meter - Home Assistant)? I’m using HA OS, so would not know how to run DSMR Reader parallel to HA.

Just checking: the ‘DSMR Slimme Meter’ integration (an official HA integration) offers me sensor.energy_consumption_tarif_1 and sensor.energy_consumption_tarif_2 for consumption. Do i need to add those to the Energy Dashboard as consumption data? (i assumed i needed to use sensor.power_consumption , but that sensor is not shown in the drop down of the Energy dashboard)

Btw: the ‘DSMR Meter’ integration also offers “sensor.power_tariff”, but i can’t use that sensor for tariff during configuring the Energy Dashboard?

Indeed, both tarif 1 and 2 need to be added, they contain day and night counter.

The power consumption sensor is useless for energy management, it contains an instantaneous value which is only polled every 10 seconds, so integrating that one will lead to highly inaccurate results.

I’m not sure about sensor.power_tariff, but if I’m correct day and night tariffs have been merged, so you have only one tariff.

Experiencing the same issue as you, added sensor.energy_consumption_tarif_1 and sensor.energy_consumption_tarif_2.

Might be because the value of kWh is not reset to 0 every night, therefore not knowing where to start on the first day of setup. I’ll let it run through the night to see what happens.

Maybe in our case we need to use an utility meter, but as I see other folks having it work out of the box I’m not sure.

1 Like

Hi,

In my case i am using the total instead of tarif_1 and tarif_2.
image

From the sensor data it looks like it is being reset every night at midnight.
But from the Energy dashboard, it plots the whole consumption at 12am and then it only resets the data.

Like that the whole consumption graphs are showing bogus…
Any idea what i should do to fix this?

Replying to myself here, it started working after midnight. stats are flowing in :slight_smile:

1 Like

Don’t use the total?

I might give that a try, but I have the same problem for my solar data as well, which is not coming from DSMR. I wonder if it might be a timezone issue, but in the HASS config it is properly configured.

I think the problem has to do with the last_reset propery of the sensor. If the sensor resets every day the last_reset property must set correct.

I don’t have dsrm meter but most sensor of dsmr reader has a last_reset property of `homeassistant.util.dt.utc_from_timestamp(0)’ which means the sensor never will reset. If the sensor actually will reset every night this conflicts with the last_reset property

Im also having issues pulling in data from the ‘DSMR Slimme Meter’ integration. I got sensor.energy_consumption_tarif_1 and sensor.energy_consumption_tarif_2 getting updates in the integration and I have added them to the Energy Dashboard as consumption data.

Now, about 16 hours later, there is still no data showing up in the Energy Dashboard.

Got it working now. If there’s no data showing up, make sure that sensor.energy_consumption_tarif_1 and sensor.energy_consumption_tarif_2 are added tot the recorder in the configuration file.

I have exactly the same issue here, also using a combined sensor, and having the issue you described both with energy data and solar data. This scrambles the complete graph. Did you manage to solve this?

Yes, i am now using sensors that never reset instead of daily sensors.

Hi, sorry, didnt tag you, could you explain a bit more, which sensors are you using now?

Hi,

So i just upgraded to 2021.9 release and incorporated my gas usage from DSMR as well.

For electricity consumption these are the sensors i am using:

Low tariff usage = sensor.dsmr_reading_electricity_delivered_1
High tariff usage = sensor.dsmr_reading_electricity_delivered_2

For electricity return these are the sensors i am using:

Low tariff returned = sensor.dsmr_reading_electricity_returned_1
High tariff returned = sensor.dsmr_reading_electricity_returned_2

For gas usage

Gas usage = sensor.dsmr_consumption_gas_delivered

If you look at the graphs for each of those sensors, they never reset. They keep accumulating.
This is really what you need, from DSMR you also get sensors that give you daily stats, you shouldn’t use those, because they reset at night and will screw up the energy graphs.
image

Thanks for your help! This is working!

when using this sensors it is giving the energy dashboard as real meter values instead of daily values, so now is used 14000kwh today…seems not working :frowning: