Problem with automation - Used to work

I had this automation and it stopped working after the upgrade to version 0.91.1.
This was triggering when the temperature was above 42 and then every 5 minutes.
Now it triggers only once.

> - id: '1551561834293'
>   alias: Speak Hot Water Temperature
>   trigger:
>   - above: '42'
>     entity_id: sensor.hot_water_temperature
>     platform: numeric_state
>   condition:
>   - condition: template
>     value_template: '{{ as_timestamp(now()) - as_timestamp(states.automation.speak_hot_water_temperature.attributes.last_triggered) > 300 }}'
>   - condition: state
>     entity_id: sensor.hot_water_state
>     state: Running
>   - after: '8:30'
>     condition: time
>   action:
>   - alias: ''
>     data_template:
>       entity_id: media_player.google_home
>       message: The temperature of the hot water has reached {{states('sensor.hot_water_temperature')}}
>         degrees celcius
>     service: tts.google_say

Please format your pasted code.

Is your automation enabled?

2 Likes

Please dont make your own formatting method for the forum. It makes it difficult to reuse your code in an answer. Just follow the instructions in the gif I posted.

You only have a trigger for the state going above 42. It wont and shouldn’t have ever triggered every five minutes (unless it kept going down and up over 42 every five minutes).

For it to trigger every five minutes you would have to add a time pattern trigger.

If you want it to trigger every five minutes only when above 42 you could do it a number of ways, the easiest would be to trigger every five minutes (time pattern trigger) and use a condition of ‘above 42’

my friend I have used the formating method you have displayed but for a reason it has added a > in front.
This automation used to work. Won’t trigger again if from 42.5 after 5 minutes goes to 45 degrees?
Why it should go down and then again go to trigger?

Something has changed in this version since it was working. The way you have suggested It will execute every 5 minutes and the temperature will be the condition right?

I have changed to this. Is this what you have suggested?

- id: '1551561834293'
      alias: Speak Hot Water Temperature
      trigger:
      - hours: ''
        minutes: '/5'
        platform: time_pattern
        seconds: ''
      condition:
      - condition: state
        entity_id: sensor.hot_water_state
        state: Running
      - after: '8:30'
        condition: time
      - above: '42'
        condition: numeric_state
        entity_id: sensor.hot_water_temperature
      action:
      - alias: ''
        data_template:
          entity_id: media_player.google_home
          message: The temperature of the hot water has reached {{states('sensor.hot_water_temperature')}}
            degrees celcius
        service: tts.google_say