One meter energy - two tariffs - two charts

I have a meter SDM 630 measurement output OK.


I can set utility meter

trigger:
  - type: opened
    platform: device
    device_id: 58aa44508b8ba8cb78d517db91942d2e
    entity_id: binary_sensor.0x00158d0001c0e48c_contact
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - type: not_opened
    platform: device
    device_id: 58aa44508b8ba8cb78d517db91942d2e
    entity_id: binary_sensor.0x00158d0001c0e48c_contact
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
condition: []
action:
  - service: utility_meter.next_tariff
    data:
      entity_id: utility_meter.energy
mode: single

this is the output

power3

utility_meter:
  energy:
    source: sensor.630_total_system_power
    cycle: hourly
    tariffs:
     - peak
     - offpeak

the problem is cycle: hourly – also quarter-hourly

best cycle: online .-)
I would like to divide one energy sdm630 measurement into two peak - offpeak graphs, where the record will be the same as energy sdm630.

What do you mean?
The utility_meter basically transforms your measurement in Power (e.g. Watts) to Energy (e.g. kW/h).
It makes no sense without a “cycle”, ie. the time component of Energy.

Not using it myself (yet, recently found out about it), but according to the doc (see " Advanced Configuration"), you should already have sensor.energy_peak and sensor.energy_offpeak .
Isn’t that what you need?

yes, I use this as seen in the second picture.
But I need to divide the same course of the graph into peak and offpeak as in the first picture. I don’t need a graph of energy + time.

So you want power peak and offpeak?
As peak and offpeak are energy/tariff related, I don’t really see the point.

I guess you could create 2 templates, one that returns Watts during peak hours, and 0 offpeak, and the other that do the other way.

yes i also think i don’t need an energy meter.
I need two graphs:
day and night
I don’t know how to do it.
source: sensor.630_total_system_power
switch: device_id: 58aa44508b8ba8cb78d517db91942d2e.

  • when the daily graph is opened
  • when nod_opened night graph