I have tried to get a push notify to my iOS device when for example a light turns on, when a switch turns on/off or when door/window sensor triggs. But I can’t get it to work.
I got HA to send me a test notify if I go to Dev Tools - Services. And choose
Domain:
Notify
Service:
ios_my_iphone
{
"message": "The sun is {% if is_state('sun.sun', 'above_horizon') %}up{% else %}down{% endif %}!"
}
But now I’m stuck, I’m not sure how to go from there, what more do I need to do, an automation? how should that automation look like?
I have the HA iOS app and I have enabled notification and I have pushed the “Push ID”
The only thing I have done in my configuration.yaml is this
automation:
- alias: Front Door Open
trigger:
platform: state
entity_id: sensor.front_door
to: open
action:
service: notify.(Notify_Component)
data:
title: "Door Open"
message: "Front Door Is Open"
automation:
- alias: Living Room Lights
trigger:
platform: state
entity_id: light.living_room
to: on
action:
service: notify.(Notify_Component)
data:
title: "Lights On"
message: "Living Room Lights Is On"
Do you know how an automation should look like to notify if a temp sensor goes bellow let say 15°C that it should send me a push notify, or if the temp goes above 25°C.