Skip to content

Can't set up notifications that repeat until the condition is no longer met #36

Description

@Solarbytes

Hi,

I am trying to set up notifications that repeat until the trigger is n longer met. I have set up a trigger as follows:

trigger: numeric_state
entity_id:

  • sensor.home_power_flow
    for:
    hours: 0
    minutes: 15
    seconds: 0
    above: -1.1
    below: 1

What I expected was one notiifcation every 15 minutes but instead, I found 3 notifications:

  1. Zero production turned on, at 9:56am yesterday
  2. Zero production became unavailable, yesterday at 10am (both of those seem to be related to the switchover to this integration and reboots)

nothing after sunset yesterday (I was expecting a notiifcatin 15 mintues after the system stopped producing)

  1. at 6.34am today, I get my first proper notification, 19mins after sunrise, saying that my production has been zero for 15 mins, which, coincidence or not, matches sunrise.

Can someone help me make sense of that? I have seen examples advising to use float(0) to cover cases where the production is "Unknown" or "Unavailable", could that be the solution?

Can someone advise how to set up notifications that repeat until the condition is no longer met? i.e. I want the notification to be fired the first time the system doesn't produce energy for 24h straight, and every 24h after that, until the system starts producing again.

Distinguishing between the system being offline due to a comms issue and the system being online but not producing would be ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions