Actions for Apple Watch

I need help. I tried to set 2 actions on Apple Watch to activate 2 HA automations: screen_up and screen_down. Whatever action I select, the automations are both activated. Indeed, even by setting a random name, not present in actionName, the automations both start the same.
Can someone help me?
This is the code of one automation

- id: '1589815291206'
  alias: AW Schermo giù
  description: Svolge lo schermo
  initial_state: "true"
  trigger:
  - event_data:
      data:
        actionName: 'giu_schermo'
    event_type: ios.action_fired
    platform: event
  condition: []
  action:
  - data: {}
    entity_id: cover.open_cover
    service: cover.schermo

Thanks
Riccardo

Does anyone use Actions for Apple Watch?

Sorry missed this. You need to pass the action name in the trigger here is an example from my configuration.

automation:
  ...
  - alias: "iOS Toggle Blinds"
    initial_state: true
    trigger:
      - platform: event
        event_type: ios.action_fired
        event_data:
          actionName: 'Toggle Blinds'
    action:
      service: cover.toggle
      entity_id: cover.living_room_blinds

Yours looks fine. Is there any chance both your actions have the same name? Can you post a screen grab of the two automation definitions? I suggest subscribing to the ios.action_fired event and triggering both and looking at the data that comes in

1 Like

Thanks Tom.
I’m gonna work on it and then I’ll let you know
R

Hi Tom. You are right. My code is correct. Now it works well. I have deleted and reinstalled HAC. I added the lines of code in configuration.yaml as suggested on the official website HAC Troubleshooting (because the app crashes on setup)

homeassistant:
external_url: URL
internal_url: URL

Thanks for your support
R