DSMR - monthly 15 minute peak values for Belgium

My meter has not been able to communicate with Fluvius’ network for a couple years now, I also have old firmware.
Did your meter update by itself or how did you solve this?

via fluvius helpdesk, they updated it remotely, took a few days. But if your meter cannot communicate, then that won’t work obviously…

Thanks, that’s indeed what I expected, I recently also got a digital water meter and I’d kind of like to be able to read it out. I’ll reach out to their helpdesk, see if they maybe send somebody to manually update it without adding 1 of those ugly external antennas…

What plugin are you exactly using? Can’t find any information in the docs :frowning: .

The standard “DSMR Slimme Meter” integration

1 Like

Hi, Can you share the graph code?

Hi, sure …
The firstone:

type: custom:apexcharts-card
graph_span: 24h
update_interval: 1min
cache: true
span:
  start: day
header:
  show: true
  title: Kwartierpiek vandaag
  standard_format: true
  show_states: true
  colorize_states: true
apex_config:
  yaxis:
    - id: first
      forceNiceScale: true
      decimalsInFloat: 0
      min: 0
      opposite: false
      name: Piekverbruik
series:
  - entity: sensor.electricity_meter_huidig_gemiddelde_vraag
    unit: kW
    type: column
    name: Actueel piekverbruik
    color: rgba(72,143,194,255)
    float_precision: 2
    group_by:
      duration: 15m
      func: max
    show:
      datalabels: false
      extremas: max
      legend_value: false
  - entity: sensor.electricity_meter_maximale_vraag_huidige_maand
    unit: kW
    type: line
    name: Maandpiek
    float_precision: 2
    color: orange
    stroke_width: 2
    group_by:
      duration: 15m
      func: last
    show:
      datalabels: false
      extremas: max
      legend_value: false

The second one:

type: custom:apexcharts-card
graph_span: 1month
update_interval: 1h
span:
  start: month
header:
  show: true
  title: Piekverbruik per dag
  standard_format: true
apex_config:
  yaxis:
    - id: first
      forceNiceScale: true
      decimalsInFloat: 0
      min: 0
      opposite: false
      name: Piekverbruik maand
series:
  - entity: sensor.piekverbruik_gem_kwartier
    unit: kW
    type: column
    statistics:
      type: max
      period: day
      align: middle
    name: Dagpiek
    color: rgba(72,143,194,255)
    float_precision: 2
    group_by:
      duration: 1d
      func: max
    show:
      datalabels: false
      extremas: max
      legend_value: true
  - entity: sensor.piekverbruik_maand
    unit: kW
    type: line
    statistics:
      type: max
      period: day
      align: middle
    name: Maandpiek
    float_precision: 2
    color: orange
    stroke_width: 2
    group_by:
      duration: 1d
      func: max
    show:
      datalabels: false
      extremas: max
      legend_value: true

Hi, Thx for these! Just tried them. The first one works great, the second one keeps loading… any thoughts on what might be wrong?
Also, I’m looking for a way to ‘predict’ the next peak based on past x minutes of power use, but so far I came up with nothing that works. Did you try something liek this…

Hi,
The 2 standard sensors created by DSMR Slimme Meter integration were initially not long term statistics. That’s why I created LTS for them using the following:

template:
  - sensor:
# Piekverbruik gem kwartier
      - name: "Piekverbruik gem kwartier"
        unit_of_measurement: 'kW'
        device_class: 'power'
        state_class: 'measurement'        
        state: "{{ (states('sensor.electricity_meter_huidig_gemiddelde_vraag') | float ) | round (3) }}"
# Piekverbruik maand
      - name: "Piekverbruik maand"
        unit_of_measurement: 'kW'
        device_class: 'power'
        state_class: 'measurement'        
        state: "{{ (states('sensor.electricity_meter_maximale_vraag_huidige_maand') | float ) | round (3) }}"

The second graph is using my own created long term statistics sensors. So that’s maybe why it’s not working for you?

I just checked and it seems that the DSMR Slimme Meter integration apparently also included LTS for it’s own sensors since March '24:

  • sensor.electricity_meter_huidig_gemiddelde_vraag
  • sensor.electricity_meter_maximale_vraag_huidige_maand

So you should be able to use these sensor themself like this:

type: custom:apexcharts-card
graph_span: 1month
update_interval: 1h
span:
  start: month
header:
  show: true
  title: Piekverbruik per dag
  standard_format: true
apex_config:
  yaxis:
    - id: first
      forceNiceScale: true
      decimalsInFloat: 0
      min: 0
      opposite: false
      name: Piekverbruik maand
series:
  - entity: sensor.electricity_meter_huidig_gemiddelde_vraag
    unit: kW
    type: column
    statistics:
      type: max
      period: day
      align: middle
    name: Dagpiek
    color: rgba(72,143,194,255)
    float_precision: 2
    group_by:
      duration: 1d
      func: max
    show:
      datalabels: false
      extremas: max
      legend_value: true
  - entity: sensor.electricity_meter_maximale_vraag_huidige_maand
    unit: kW
    type: line
    statistics:
      type: max
      period: day
      align: middle
    name: Maandpiek
    float_precision: 2
    color: orange
    stroke_width: 2
    group_by:
      duration: 1d
      func: max
    show:
      datalabels: false
      extremas: max
      legend_value: true

Hi, I’m using a homewizard p1meter, so the sensors are sensor.p1meter_average_demand and sensor.p1meter_peak_demand_current_month.
I tried your latest graph with them, but the graph remains ‘loading’…

Update: Looks like for the p1meter these aren’t LTS sensors either. I guess I’ll make those then like in your example…

Update2: That doesn’t seem to make a difference. Graph stays ‘loading’…

We are getting an Electric car. I want to do the ‘load balancing’ myself using HomeAssistant and nodered.

I am on the latest version (2024.11) of HomeAssistant. I recreated the ‘DSMR Smart Meter’ integration… But i do not get the 2 peak sensors?
In the debug i can see the values are there:
1-0:1.4.0(00.000kW)
1-0:1.6.0(241103140000W)(04.697
kW)
So what I am missing? they do not appear in this integration / I can not find them in my entities…

EDIT:
i selected the wrong dsmr version (you need to select the ‘5B’ for Belgium)

Hi!

Could you maybe lend me a hand on this one?
My esp is reporting the following sensors. are these the ones you are referring to in your setup?

  • sensor.slimmelezer_peak_13_month_maximum_quarterly_demand
  • sensor.slimmelezer_peak_current_average_quarterly_demand
  • sensor.slimmelezer_peak_month_maximum_quarterly_demand

Were you able to get it working? Tried the same methods and indeed it keeps loading. Hope you have a solution :slight_smile: greetings,

update: it works it needed some time to calculate

Thanks for the templates i got both running. How can i make it so that i can create a log or overview of a whole year(s) of all the peaks? Tried to add the flex energy period selector plus, but does not work. Greetings :slight_smile:

Hi, No, for me I couldn’t get the second graph to ever load…

@ddeconin

Ow i use the p1 meter as well and used his templates to create sensors via helper for the sensor.piekverbruik_maand and sensor.piekverbruik_gem_kwartier and then could use his second card but it needed an hour or more for it to start.

I have DSMR reader running, have set up the 15min-peak (belgium) so that is all good, but de DSMR does not give me the costs (sensor.dsmr_day_consumption_total_cost). How do i have make this work? does the P1 port provide these numbers or do i have to ad/calculate them?