Hi,
I’m getting in touch to get some advice and help for an automation.
I’m looking to send an iOS notification about temperature at home. i’d like to activate a scene to heat the room with a first action, and i’d like to recall the notification 1h later by reloading this automation after 1h.
For the moment, i’m getting the notification with actions, but nothing happens when fired an action.
Do you think it can be blocked by SSL ?
Can some one have a look to this yaml code and give me some advices ? Thanks you
alias: Notification froid journée
description: ""
triggers:
- device_id: 73e6c3bbc117f5ebd7694ad0cfa8cd2a
domain: climate
entity_id: 41ff4dfa5eb67154fa47515200811017
type: current_temperature_changed
trigger: device
below: 16
for:
hours: 0
minutes: 20
seconds: 0
conditions:
- type: is_not_powered
condition: device
device_id: 73e6c3bbc117f5ebd7694ad0cfa8cd2a
entity_id: ed4bc3773c4b5674355c7223666d96d2
domain: binary_sensor
- condition: time
after: "08:00:00"
before: "22:00:00"
weekday:
- sun
- sat
- fri
- thu
- wed
- tue
- mon
actions:
- action: notify.notifs_jerome
data:
data:
actions:
- action: CHAUFFAGE 19 DAY
title: Lancer le chauffage
icon: sfsymbols:thermometer.sun
- action: REMIND 1H
title: Me rappeler dans 1h
icon: sfsymbols:goforward.60
- action: null
title: Ignorer
destructive: true
message: La température est inférieure à 16 degrés.
title: Il commence à faire froid !
- wait_for_trigger:
- trigger: event
event_type: ios.notification_action_fired
event_data:
action: REMIND 1H
- trigger: event
event_type: ios.notification_action_fired
event_data:
action: CHAUFFAGE 19 DAY
continue_on_timeout: false
timeout:
hours: 15
minutes: 0
seconds: 0
milliseconds: 0
- choose:
- conditions:
- condition: template
value_template: "{{ wait_for_trigger.event.data.action == \"CHAUFFAGE 19 DAY\" }}"
sequence:
- action: scene.turn_on
metadata: {}
target:
entity_id: scene.chauffage_19_day
- conditions:
- condition: template
value_template: "{{ wait_for_trigger.event.data.action == \"REMIND 1H\" }}"
sequence:
- delay:
hours: 1
minutes: 0
seconds: 0
milliseconds: 0
- action: automation.reload
data: {}
mode: single