mhendriks / P1-Dongel-ESP32

P1-Dongel-ESP32
MIT License
27 stars 13 forks source link

Feature: Possibility to add belgian peak usage data #34

Open Runesmacher opened 5 months ago

Runesmacher commented 5 months ago

Hi

Since i live in flanders, we have peak usage billing, it would be nice if we could also track this.

Reference topic for the default DSMR integration for HASS which provides a lot of info: https://community.home-assistant.io/t/dsmr-monthly-15-minute-peak-values-for-belgium/493105/37

mhendriks commented 4 months ago

In the DSMR-API firmware those are available

  /* FixedValue */            ,peak_pwr_last_q
  /* TimestampedFixedValue */ ,highest_peak_pwr
  /* String */                ,highest_peak_pwr_13mnd

... or do you mention the ESPHome config?

Runesmacher commented 4 months ago

I am using DSMR-API indeed, would it be possible to send them to home assisant via MQTT?

mhendriks commented 4 months ago

I see in the code that the "peak_pwr_last_q" and "highest_peak_pwr" are sent via the mqtt interface.

Runesmacher commented 4 months ago

Could you also add it to the auto discovery of Home assistant, seems to be missing there

Also did a quick repo search for those values but can;t seem to find it? (I am looking at the master branch) image

Runesmacher commented 1 month ago

Any update on this?

mhendriks commented 1 month ago

In my opinion those values are sent via MQTT (and could be read via REST JSON API). Only omitting issue is the MQTT HA Auto discovery ... but because 99% of the program storage is full modifications like this could be done. The new version (5.0.0) will have some big refactoring improvements and this will gain space.