With 2024.9, there’s now a warning on the Apple Watch configuration that iOS actions will be going away, and we should migrate to scripts. I currently have an automation that looks like this. It lets me close the garage door and sends a notification to the person who triggered it (I use it from my watch):
alias: Garage door ios action
description: ""
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionName: Open Garage
condition: []
action:
- if:
- condition: state
state: unavailable
entity_id: cover.garage_door
then:
- service_template: notify.mobile_app_{{trigger.event.data.sourceDeviceID}}
data:
title: Unavailable
message: Garage door not available {{states('cover.garage_door')}}
else:
- data: {}
target:
entity_id: cover.garage_door
action: cover.toggle
- service_template: notify.mobile_app_{{trigger.event.data.sourceDeviceID}}
data:
message: Garage door {{states('cover.garage_door')}}
mode: single
Is there any equivalent data in a Script execution so I can send a notification to the user who triggered it from iOS, or change behavior based on how it was triggered?