Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95390

Making an automation send every X seconds

$
0
0

@rjaymit wrote:

Hey guys,

First time poster, long time reader.

I’ve set up my ESP32 with a DHT22 that sends temp readings to HASS. All working very find and dandy…

The next step is to send an email whenever the humidity goes over 75%. I am able to get them to send, but since the the temp can stay over 75C%for upwards of 5 - 6 hours, my email gets smashed with spam.

Here is the code I have at the moment:

- id: '1573536536560'
  alias: Humidity over 75%
  description: ''
  trigger:
  - above: '75'
    entity_id: sensor.humidity
    platform: numeric_state
  condition:
  - condition: template
    value_template: '{{ as_timestamp(now()) - as_timestamp(states.automation.humidity_over_75.attributes.last_triggered) | int > 60 }}'
  action:
  - alias: ''
    data:
      message: Humidity over 75 omg
      title: Humidity over 75 omg
    service: notify.sendme

This however, doesn’t work at all - not even the annoying spam.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>