iOS icon indicating copy to clipboard operation
iOS copied to clipboard

entityId URL in notifications doesn't work

Open llamafilm opened this issue 3 years ago • 5 comments

iOS device model, version and app version Model Name: iPhone 12 Pro Software Version: iOS 16.1.1 App version: 2022.10.1 (2022.424)

Home Assistant Core Version 2022.11.5

Describe the bug Sending a notification with entityId style URL opens the app to the default page instead of the More Info page of the specified entity.

To Reproduce

service: notify.mobile_app_pro_llama
data:
  message: test message
  data:
    url: entityId:sun.sun

Additional context This is the first time I've ever tried to use this style of notification, so perhaps I'm doing something wrong. I got the syntax from documentation: https://companion.home-assistant.io/docs/notifications/notifications-basic#opening-a-url

The log file shows this:

2022-12-04 22:22:16.351 [Info] [main] [NotificationManager.swift:250] userNotificationCenter(_:didReceive:withCompletionHandler:) > launching URL entityId:sun.sun

llamafilm avatar Dec 05 '22 06:12 llamafilm

That's an entity, not a URL, so that won't work. To accomplish what you are trying to do, you would need to create a separate, dedicated view with that entity and link to that.

bcmitri avatar Dec 05 '22 20:12 bcmitri

Linking to a lovelace view works fine. But according to the documentation I linked above, it should be able to link directly to the More Info view of an entity using that syntax.

The More Info panel of an entity using entityId:<entity_ID> where <entity_id> is replaced with the entity ID you wish to view. Ex: entityId:sun.sun.

llamafilm avatar Dec 05 '22 20:12 llamafilm

The feature you are referencing is an Android feature. That's what the robot icon means.

bcmitri avatar Dec 05 '22 20:12 bcmitri

Oh! Ok thank you, I didn't realize that's what the icons meant. I guess this issue can be turned into a feature request then?

llamafilm avatar Dec 05 '22 20:12 llamafilm

I would agree. This is a feature request to either make the docs more clear, or make it a feature in iOS. I just asked the same question (stupidly) on the forum.

ShakataGaNai avatar Nov 26 '23 00:11 ShakataGaNai