Dsmr current electricity deliverde above value

Hello,

I want to make an automation that sends an telegram-message when the dsmr entity sensor.dsmr_reading_electricity_currently_delivered is above a value.

Development tools->states
shows for example 0.362 with unit_of_measurement: kW
So I have the following code:

automation:
- alias: current_electricity_above_value
  initial_state: false
  trigger:
    platform: numeric_state
    entity_id: sensor.dsmr_reading_electricity_currently_delivered 
    above: 1.0
    for: 
      seconds: 10
  action:
    - service: notify.telegram
      data:
        title: xxxx
        message: xxxx

The ‘idle’ value is about 0.362 but when a heavy load (ex. Oven) it raises above 1.0 (1000 Watts). But I don’t get a message.

Because your automation is likely disabled every time you restart or reload automations because of this:

initial_state: false
1 Like

:flushed: :sleeping: thanks. I overlooked it completly…

1 Like