lethuer
November 5, 2023, 10:39am
1
Hi !
In the Homeassistant iPhone app I created an action just like shown here:
https://youtu.be/7t22v6Wh6HM?si=lNgnSeoLuH1B8S8T#t=0m40s
Settings → Companion-App → Action → Add
Afterwards I created this automation like described shown here:
https://youtu.be/7t22v6Wh6HM?si=lNgnSeoLuH1B8S8T#t=1m36s
This also described in the documentation: https://companion.home-assistant.io/docs/core/actions/
alias: GarageDoor
description: ""
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionName: GarageDoor
enabled: true
condition: []
action:
- service: light.toggle
data: {}
target:
entity_id: light.stehlampe
mode: single
The issue I have is that the automation never is fired.
Does anybody know why ?
daletbet
(Daletbet)
January 4, 2024, 9:38am
2
Hi I had the same issue, I fixed by using the actionID instead of the actionName… who knows why but now it works:)
Thanks for the note !
But how to get the actionID ?
This also didn’t worked for me:
platform: event
event_type: ios.action_fired
event_data:
actionID: GarageDoor
enabled: true
Created scene has the name „GarageDoor“…
Okay now I‘ve found the issue…
I don‘t know why but previously a scene action was created !!!
Now I tried again and it looks like this:
So it is important that the created scene isn‘t a scene action…
Now this automation works as expected:
platform: event
event_type: ios.action_fired
event_data:
actionName: GarageDoorAction
enabled: true
The downside now is that I‘ve to create an action on all my mobile devices because they are not synchronised…?!
But there is a notice that actions could also be created in configuration.yaml to get synchronised actions.
piwy84
(Piwy84)
April 18, 2024, 3:15pm
5
thanks for the tip for deselecting the ‘scenes’ this seems to improve for me