r.yumusak
(Yumusak)
December 2, 2022, 10:30am
1
Hello Guys i want to get an E-Mail notification as soon as somebody starts heating. For that i created a E-Mail Notification like this :
notify:
- name: "email"
platform: smtp
server: "smtp.office365.com"
port: 587
timeout: 15
sender: "my E-Mail"
encryption: starttls
username: "my E-Mail"
password: "my password"
recipient:
- "my E-Mail"
sender_name: "Home Assistant"
I testes it by sendig a Text with notify.email and it works.
Now i want to connect that part to an alert or some kind of automatic notification as soon as somebody activates heating on one of my Devices.
I was trying these codes so far but none of em wants to send an E-Mail even tho i get no error messages when i test the configuration.yaml.
climate_manner_toilette:
name: heating aktiv.
entity_id: sensor.manner_toilette_heating
state: "{{ states('sensor.manner_toilette_heating') | float(0) >= 99.00 }}"
repeat: 5
can_acknowledge: true
skip_first: False
message: >
Es wird geheizt.
done_message: >
Es wird nicht mehr geheizt.
notifiers:
- email
climate_kuche:
name: heating
entity_id: sensor.kuche_heating
state: "100,0"
repeat: 1
can_acknowledge: true
skip_first: False
notifiers:
- email
Ive tried alot of diffrent variations but none of them are working. I would be happy if somebody could help me or give me some kind of idea on how to make it work.
Here are some informations on my Devices.
Rofo
(Ro)
December 2, 2022, 11:27am
2
I have tado heating and the heating can be ‘on’ without the heating being at 100%
This is what it looks like now with the heating on ‘low’:-
r.yumusak
(Yumusak)
December 2, 2022, 11:31am
3
Yeah thats true maybe i should change it so it sends a notification at 50% heating. I did always change the state of the device i was testing to 100% afterwards tho. So it should still have send an E-Mail.
r.yumusak
(Yumusak)
December 8, 2022, 1:58pm
4
Hello Guys, im still in need of help with this Problem. Anyone who can tell me if my Code should work or not ? Im happy for any ideas because ive run out of them myself.
Thank you
Rofo
(Ro)
December 12, 2022, 10:49am
5
Try this:-
alias: Heating Turned On
description: ""
trigger:
- platform: state
entity_id:
- sensor.main_house_heating
from: "0"
for:
hours: 0
minutes: 1
seconds: 0
condition: []
action:
- service: notify.myemailer
data:
message: Heating has turned on
title: Heating Alert
mode: single
You’ll have to change the entity id to the one you use to track the heating on %.
This automation will send you an email when the heating % changes from 0 to some other value for at least 1 minute.
Rofo
(Ro)
December 14, 2022, 8:46am
6
I tried this at home on my tado gear and for some reason, it never fires, so I’ve tweaked it to use the platform: device which might work:-
alias: Heating Turned On
description: ""
trigger:
- type: value
platform: device
device_id: e3b577410d4dcfb32acaa46ee8dbe3ba
entity_id: sensor.main_house_heating
domain: sensor
above: 0
for:
hours: 0
minutes: 1
seconds: 0
condition: []
action:
- service: notify.mymailer
data:
message: Heating has turned on
title: Heating Alert
mode: single
r.yumusak
(Yumusak)
December 14, 2022, 3:29pm
7
I just managed to make it work with automatic triggers. But thank you for ur help.