I’m trying to get actionable notifications to work on the new 2.0 beta (build 53), but don’t succeed. Does anyone know what’s wrong with the config + automation?
Mine will not Work at all. I am on 58 and 0.92.2.
Wenn I use config with “mobile_app” no notification is imported wenn chossing this option in the notifications menu.
Wenn I use “ios” instead it IS imported but wenn I press the action button nothing happens (not even the “authentification” appears.
This is my config and automations. Can someone see what is wrong?
It seems the only difference between the docs and my automation is the action_data part.
I am not using that but don´t know if that is essential.
Where can I see if the event is getting through back to HA?
Anyway shouldn´t I get some authentification request when pressing the action button?
It seems the only difference between the docs and my automation is the action_data part.
I am not using that but don´t know how essential that is.
Where can I see if the event is getting through back to HA?
Anyway shouldn´t I get some authentification request when pressing the action button?
If no authentification is requiered what is then the difference between “authenticationRequired: true” and “authenticationRequired: false” in the config?
I have increased logging level and get this in the log but nothing happens:
The only difference is if true iOS will ask for your passcode or Face ID or Touch ID before continuing and the button will be red. More info here (in the table).
The event is coming in, so your automation isn’t catching it properly.
I don’t know if you can have triggers specified as a list like that. Please use the example syntax at the bottom of the docs which only has a single trigger instead of a list.
Please also use proper syntax highlighting when pasting YAML or log lines. A guide on how to do that is in the blue header box at the top of the forums.
Hmm I am not quite sure what you mean by triggers like a list. When I compare my automation and the one from the docs I don´t see any difference. Can you be more specific?
But anyhow shouldn´t I get the Face ID or Touch ID when “true” no matter what?
Oh I see. I tried now to remove the dashes but there was no difference.
However by coincidence I tried to rename the alias from “pressed” to “pressed 1” and then it worked? strange!
So the buttons now Work but no matter what I do, I get no passcode or face ID requirements.
Anyone got this to Work?
Update: solved! passcode or faceID is only required when phone is locked and “authenticationRequired” is set to true.
update: But it would be nice if I would get the passcode or faceID request when choosen “authenticationRequired” even though I have unlocked the phone.
I can’t seem to get the action menu to show up. The notifications (both IOS and Alexa) work great. Force pressing doesn’t give options either. I have tried 2 different phones. Currently on 0.93.2. I think I have this correct by following this guide but I must be missing something. My Config looks like this:
################################################################################################################
# #
# Garage Door Open Notification #
# #
################################################################################################################
- alias: Garage Door Open Notification
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.garage_door
to: 'on'
action:
- service: notify.mobile_app_jeff_welvaerts_iphone
data:
message: "The Garage Door Is Open"
data:
push:
category: "garage"
sound: "US-EN-Daisy-Garage-Door-Open.wav"
badge: 0
action_data:
entity_id: switch.garage_control
- service: notify.alexa_media
data:
target:
group.alexa
data:
type: announce
message: "The Garage Door Is Open"
################################################################################################################
# #
# Garage Door Notification Action Button #
# #
################################################################################################################
- alias: Garage Door Notification Action Button
initial_state: true
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: CLOSE_GARAGE
action:
service: switch.turn_on
entity_id: switch.garage_control
I’ve pressed “Import push configuration from server” dozens of times.
After triggering the automation my log says:
2019-05-29 17:28:18 INFO (MainThread) [homeassistant.components.automation] Executing Garage Door Open Notification
2019-05-29 17:28:18 INFO (MainThread) [homeassistant.helpers.script] Script Garage Door Open Notification: Running script
2019-05-29 17:28:18 INFO (MainThread) [homeassistant.helpers.script] Script Garage Door Open Notification: Executing step call service
2019-05-29 17:28:19 INFO (MainThread) [homeassistant.components.mobile_app.notify] mobile_app push notification rate limits for Jeff Welvaert’s iPhone: 11 sent, 150 allowed, 0 errors, resets in 1:31:40
2019-05-29 17:28:19 INFO (MainThread) [homeassistant.helpers.script] Script Garage Door Open Notification: Executing step call service
2019-05-29 17:28:19 INFO (SyncWorker_0) [custom_components.alexa_media.notify] Message: The Garage Door Is Open, kwargs: {'target': ['group.alexa'], 'data': OrderedDict([('type', 'announce')])}
2019-05-29 17:28:19 INFO (SyncWorker_0) [custom_components.alexa_media.notify] f*****[email protected]: Announce by <Entity Bedroom Echo: standby> to targets: ['9************0V1', '3****************************f29', '8****************************891', '9****************************a9f', 'd****************************7c6']: The Garage Door Is Open
In the mobile app nothing shows up in the event log.
What am I doing wrong here?
You should increase your log level for homeassistant.components.mobile_app and homeassistant.core to debug. You should then be able to see the event coming in. If you don’t see it, then something is going wrong.
'1538231974813':
alias: Alarm notify
sequence:
service: notify.mobile_app_iphone
data:
message: "Something happened at home!"
data:
push:
category: "SOUND_ALARM" # Needs to match the top level identifier you used in the ios configuration
action_data: # Anything passed in action_data will get echoed back to Home Assistant.
entity_id: light.test
my_custom_data: foo_bar
Yes, I just copied everything, but still can not find what is