Shelly Plug S vs. "Send a notification via mobile_app"

Well… That is interesting! The attribute once said “power”. I don’t use this parameter anymore since the last hint.

I’m measuring between 2 and 115 watts because when the dryer is on but no longer active, the display in Homeassistant says it’s in that range. So it comes from >115W and does not fall below 2W. I have therefore chosen the same structure as for the washing machine. And there it has been working smoothly for more than a year.

Now it´s:

alias: Nachricht - Trockner fertig
description: ''
trigger:
  - platform: numeric_state
    below: '115'
    for:
      hours: 0
      minutes: 5
      seconds: 0
      milliseconds: 0
    entity_id: sensor.trockner_power
    attribute: ''
    above: '2'
condition: []

Must admit I was seeing the graph, which could be at 2 rather than 0.

But do you need above:2 at all? If it goes below 115 for 5 minutes, surely that is enough for a trigger?

Would you elaborate on that a little more?

My understanding based on my functional automation for the washing machine: If the dryer is actively running, it reliably needs >115W. And when it’s done, it’s reliably between 2W and 115W. This is because the dry laundry will be moved at intervals for another 5 minutes. Key word: anti-crease. At this point, however, I declare the dryer complete and would like a message. But it doesn’t come at all. I was already wondering whether the trigger value of 2W-115W will be triggered at some point beforehand and the 5 minutes will start at some point in between. Maybe it’s the case that it doesn’t start a second time?!

What does the automation trace say?

It says “No traces found”. I´ve removed the range from >2W to <115W and check only a value <115. But unfortunately that didn’t help either.

And the power has made the transition from over 115 to under 115?

Yes. When I turn on my dryer, it’s well over 115W. If it follows and only moves the laundry, it is between 3W and 85W. And when it’s idle, it’s at 2.xW

Ok because the automation won’t trigger unless there is a transition from over 115 to under Makes it hard to check.

One thing more - not sure if the trigger should be '115' or 115. The difference between a string and a number?

I’ll try it! I’ll report back when the dryer is back on! Thanks!

Sorry, it always takes me a few days before it’s worth using the dryer. But I’ve tried both: Integer and String. So 115 and ‘115’. Both without success. :frowning:

Could you show a graph of the power sensor, or a logbook output showing when you think it should have activated.

The Shelly Plug S entity bears the name “sensor.trockner_power”. When I look at the history I see this:

And if i search “sensor.trockner_power” at the logbook, there is no entry! Annndd: My automation trace continues to say: “No traces found”.

It is hard ti tell from that graph. Could you try and zoom up to the relevant period?

Excuse me. I thought you wanted to see the general output.

That’s cool. The relevant period is 17.25 to just after 17.30. Are you sure that the value is less than 5 for all of that period. It is hard to tell precisely on the graph.

Well, if I go by what Homeassistant says, the consumption ranges from 3W to 115W once the drying process is complete. And when it turns off, consumption jumps to around 1W. That’s why I’m checking for <115W and >3W consumption. And that should always be when the dryer has finished the program but has not yet switched off. And I check that for 5 minutes, because then I can be sure that the dryer is really finished and not just having a program break.

In my current and untested version, I now check <115 first. Maybe that’s enough… But the dryer just wasn’t on yet.

Also check the attribute: line is completely gone from the yaml.

Yeah I think attribute: '' is pointless and maybe unhelpful.

I tried the first attempts without the attribute. Unfortunately didn’t help either. But: I threw it out again and will let you know when the dryer was back on! Thank you for your help!

Short sign of life: Although Homeassistant receives the current power values of the Shelly Plug S and also records them in Grafana, the automation does not manage to react to them. I just don’t get any notifications. In the next step I try it now with MQTT.

Grafana: