acantril
(Adrian Cantrill)
July 23, 2017, 3:32am
1
SO i feel like im going crazy. I just CANNOT get actionable notifications to work.
I’ll paste my config below but
ive restarted HA more than is healthy
restarted my phone
restarted the app
updated the push settings
reinstalled the app, and reset settings
My ios config has this
push:
categories:
- name: ARRIVAL
identifier: 'ARRIVAL'
actions:
- identifier: 'DONOTHING'
title: 'DONOTHING'
activationMode: 'background'
authenticationRequired: no
destructive: false
behavior: 'default'
- identifier: 'OPEN'
title: 'Open'
activationMode: 'background'
authenticationRequired: yes
destructive: false
behavior: 'default'
and my automation has this.
- action:
- data:
data:
push:
category: "ARRIVAL"
message: ARRIVAL
service: notify.ios_adrians_iphone
alias: Ado_arriving
id: '1500774995689'
trigger:
- entity_id: device_tracker.adrians_iphone
from: not home
platform: state
to: closetohome
I get the notification, but i dont get any actions…
Stimo
(Niklas)
July 23, 2017, 6:49am
2
To me it looks like this have got the trigger/action wrong, I think you need to start with trigger and the the action. Take a look at this example from my config file that works fine for me.
- alias: 'Larm trigger'
trigger:
- platform: state
entity_id: alarm_control_panel.house
to: triggered
action:
- service: notify.ios_iphone_7_plus
data:
message: "LARMET UTLÖST"
data:
push:
badge: 0
category: "ALARMUTLOST"
action_data:
entity_id: light.vardagsrum__tvbank
my_custom_data: foo_bar
acantril
(Adrian Cantrill)
July 23, 2017, 7:36am
3
Well this is the thing.
It works in the sense that i get a notification on my phone … it shows the ‘message’ but it just doesnt give me any choices for actions.
The automation was created by the new GUI automation editor, so im assuming the order doesnt matter ?
Stimo
(Niklas)
July 23, 2017, 8:50am
4
Ok, I am not familiar with the GUI editor, I have never used it.
That is my config and it works for me, sorry but I don’t know what wrong with yours.
pplucky
(Pplucky)
July 23, 2017, 10:19am
5
I’ve read around that Automation Editor puts Action before Trigger, so that should not be it.
Kem
January 29, 2018, 9:50pm
7
the identifier must be lower case and it has to match with the category
Kem
January 29, 2018, 9:54pm
8
to see the actionable option you need to 3D touch on the notification if you still have problems post your configuration and i will help
Kem
January 29, 2018, 10:27pm
10
yes you have to update push notifications on ios app every time you make a change