I was indeed missing the obvious wasn’t I? Big fat magnifier icon not big enough for me.
Here is my configuration.yalm … I had to learn how to use secret.yalm first
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
# Configure the Home Assistant Core to pick up the SSL certificates.
# This is done by setting the following configuration
# for the HTTP integration configuration in your configuration.yaml
# DONT Forget to use https after this !!!
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#Sensor 1
sensor:
platform: dht
sensor: DHT22
name: Temperature Salon
pin: 4
monitored_conditions:
- temperature
- humidity
# Pushbullet Notification service
notify:
- platform: pushbullet
api_key: !secret pushbullet_api
name: pushbullet
- platform: smtp
name: email
server: smtp.gmail.com
port: 587
timeout: 15
sender: !secret email1
username: !secret email1
password: !secret email1_PW
recipient:
- !secret email2
sender_name: Notification de Temperature
- id: '1614200060963'
alias: Temperature Notification 1
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.temperature_salon_temperature
above: '25'
condition: []
action:
- service: notify.pushbullet
data:
message: Attention au sèche cheveux !!
- service: notify.email
data:
message: The temperature has been too high on (date and time of alert)
mode: single
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
# Text to speech
tts:
- platform: google_translate
# Configure the Home Assistant Core to pick up the SSL certificates.
# This is done by setting the following configuration
# for the HTTP integration configuration in your configuration.yaml
# DONT Forget to use https after this !!!
http:
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#Sensor 1
sensor:
- platform: dht
sensor: DHT22
name: Temperature Salon
pin: 4
monitored_conditions:
- temperature
- humidity
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
# Pushbullet Notification service
notify:
- platform: pushbullet
api_key: !secret pushbullet_api
name: pushbullet
- platform: smtp
name: email
server: smtp.gmail.com
port: 587
timeout: 15
sender: !secret email1
username: !secret email1
password: !secret email1_PW
recipient:
- !secret email2
sender_name: Notification de Temperature
I only added three sensors. They are the once you generally need. If you want the other then just add them.
And I believe you had an indentation error and a missing - in the sensors.
automation.yaml:
- id: '1614200060963'
alias: Temperature Notification 1
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.temperature_salon_temperature
above: '25'
condition: []
action:
- service: notify.pushbullet
data:
message: Attention au sèche cheveux !!
- service: notify.email
data:
message: The temperature has been too high on {{states.sensor.date_time.state}}
mode: single
"The temperature of {{ trigger.to_state.attributes.friendly_name }} has been too high on {{ now().strftime('%d.%m.%Y %H:%M') }}"
This will actually contain the time the notification was created, but it should be sufficient. Adjust format pattern according to your local standards.
- service: notify.email
data:
title: High Temperature!
message: >-
The temperature of {{ trigger.to_state.attributes.friendly_name }} has been too high
on {{ now().strftime('%d.%m.%Y %H:%M') }}