Hi all,
I’ve got some basic actionable notifications working recently but they can be quite delayed in how long it takes for them to appear on mine or my wifes phone (Android/iOS).
I tried adding ttl and priority to the data field but then I would get nothing at all. Without these, the notifications come through sporadically.
Please see the code without the ttl/priority included as at least I know this is working (to some degree). Could someone please advise on how to properly configure this so it shows up immediately on my Anroid and iOS devices?
alias: Climate - Text alert if unsealed
description: ''
trigger:
- platform: state
from: 'off'
to: 'on'
for:
hours: 0
minutes: 5
seconds: 0
entity_id: group.living_room_internal_seal
- platform: state
from: 'off'
to: 'on'
for:
hours: 0
minutes: 5
seconds: 0
entity_id: group.living_room_external_seal
condition:
- condition: or
conditions:
- condition: state
entity_id: input_boolean.living_room_heating
state: 'on'
- condition: state
entity_id: input_boolean.heating_low
state: 'on'
- condition: state
entity_id: input_boolean.living_room_cooling
state: 'on'
- condition: state
entity_id: input_boolean.cooling_low
state: 'on'
- condition: state
entity_id: timer.climate_alert_cooldown
state: idle
action:
- service: timer.start
data: {}
target:
entity_id: timer.climate_alert_cooldown
- service: notify.notify
data:
title: Heater Efficiency
message: Living room unsealed, turn off AC?
data:
actions:
- action: AC_POWER_OFF
title: AC Power Off
- wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: AC_POWER_OFF
timeout: '00:01:00'
continue_on_timeout: false
- service: script.living_room_ac_power_off
data: {}
mode: single
Many thanks