Just a heads up: As of yesterday after a beta update it appears that the iPhone is sending simply “iphone” for the sourceDeviceID, even though the action says it’s sending the phone’s ID.
Anyone else seeing this?
Here’s what the Companion App is saying it’s sending in the action:
alias: test temp
description: ""
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionID: 190AD55F-82CE-4E71-8878-CE4E854C586B
- platform: event
event_type: ios.action_fired
event_data:
actionID: 919E24B9-D0AF-4368-B5AB-060E15255F36
condition: []
action:
- service: notify.persistent_notification
metadata: {}
data:
title: Temp test
message: >-
Source id = '{{ trigger.event.data.sourceDeviceID }}' Name='{{
trigger.event.data.sourceDeviceName }}'
mode: single
Results in:
It’s a bit odd, as my iPhone simply says it’s running iOS 18.0 – not indicating I’m running a beta, which I thought it did before.
Another phone running iOS 17.5.1 on same Companion App version is sending the correct device ID and name.
In the past I was using the device ID to map to the service to notify:
- variables:
phone: "{{ trigger.event.data.sourceDeviceID }}"
activity: "{{ states('sensor.' ~ phone ~ '_activity') }}"
notify_service: "{{ 'notify.mobile_app_' ~ phone }}"
And since the device ID is 'iphone" I’m getting:
Error: Action notify.mobile_app_iphone not found