Please edit your post and format your code by selecting it all and pressing the <> button in the message toolbar or by following the instructions in the blue banner at the top of this page.
@tom_l Updated post with formated code. @EGO01 Yes, I did that. I am getting notifications just no actions. Also selected view but that did not had any action either.
Changing category to small letter helped, now I am seeing action button but selecting those does not close the garage. I tried calling service manually with that paramenter and that worked.
Also does actions: identifier also have to be small case?
Hi, could anyone point me in the right direction with this one? I’m trying a similar thing, this is what I’ve got in my configuration.yaml file
ios:
push:
categories:
- name: Leaving_work
identifier: 'LEAVINGWORK'
actions:
- identifier: 'PLAY_LEFTWORK_MESSAGE'
title: 'I am on my way home'
and this is my automations.yaml file.
- alias: Notify iOS Leaving Work
initial_state: True
hide_entity: False
trigger:
- platform: state
entity_id: device_tracker.richard_pretious
from: 'work'
to: 'away'
condition:
- condition: time
after: '16:45:00'
before: '19:00:00'
action:
- service: notify.ios_richard_pretious
data:
title: "Leaving work message"
message: "Do you want to tell Amelia you've left"
data:
push:
badge: 0
category: 'LEAVINGWORK'
- alias: iOS app notification message - I'm leaving work
initial_state: True
hide_entity: False
trigger:
- platform: event
event_type: ios.notification_action_fired
event_data:
actionName: PLAY_LEFTWORK_MESSAGE
action:
- service: script.sonos_say
data:
sonos_entity: media_player.bedroom_2
volume: 0.5
message: 'I am on his way home'
I am getting this error;
Configuration invalid
Invalid config for [automation]: expected dict for dictionary value @ data[‘trigger’][0][‘event_data’]. Got None
extra keys not allowed @ data[‘trigger’][0][‘actionName’]. Got None. (See /config/configuration.yaml, line 203). Please check the docs at https://home-assistant.io/components/automation/
Hi Mark,
Sorry to be a paid but could you also tell me where I’m going wrong here? I want to send a message with the travel time, I have this in my automation.yaml file;
action:
- service: script.sonos_say
data:
sonos_entity: media_player.bedroom_2
volume: 0.5
message: "Richard has left work, and will arrive Home in about, {{states('sensor.Richard_To_Home')}} minutes"
And these in my configuration.yaml file;
- platform: google_travel_time
name: Richard To Home
api_key: xxxx.xxxx.xxxx.xxxx.xxxx.xxxx
origin: device_tracker.google_maps_richardpretiousgmailcom
destination: zone.Home
zone:
- name: Work
latitude: 888.888888
longitude: 222.2222222
radius: 100
icon: mdi:office
- name: Home
latitude: 999.9999999
longitude: 111.111111
radius: 100
icon: mdi:home-variant
I am getting this error;
Invalid config for [automation]: [zone] is an invalid option for [automation]. Check: automation->trigger->0->zone. (See /config/configuration.yaml, line 211). Please check the docs at https://home-assistant.io/components/automation/
I’ve tried to get this to work off an on over the past few months, and never seem to get the alert on my phone. Any sugestions as to what I’m doing wrong
Same thing here. I have actionable notifications for the Alarm clock (Creating an iOS Alarm Clock w/ Snooze and Awake Actionable Notifications). The notifications shows up, but when I click on them the action does not work. It calls a script that, using it through front end, works perfectly.
- alias: Actionable Open Garage Door When Tracy gets Home
trigger:
- platform: state
entity_id:
- device_tracker.tracy_all
to: 'Costco'
for:
minutes: 5
- platform: state
entity_id:
- device_tracker.tracy_all
to: 'Sams'
for:
minutes: 5
condition:
- condition: numeric_state
entity_id: sensor.ha_runtime_in_minutes
above: 1
action:
- service: notify.ios_pauls_iphone
data:
message: "Looks like you're Shopping. Do you want the garage to open when you get home?"
data:
push:
category: "shopping_alert"
- alias: iOS Actionable Notification to open Garage when Tracy Gets Home
trigger:
- platform: event
event_type: ios.notification_action_fired
event_data:
actionName: OPEN_GARAGE_WHEN_I_GET_HOME
condition:
- condition: numeric_state
entity_id: sensor.ha_runtime_in_minutes
above: 1
action:
- service: input_boolean.turn_on
entity_id: input_boolean.open_garage_for_tracy