Has anyone managed to get iOS notification deep linking to a specific lovelace dashboard working?

Hi all.

I’ve been trying to get iOS to open up a specific dashboard when I tap the notification for months. I just can’t figure it out. Below is one notification I’ve tried it with. The url for the dashboard is:

http://homeassistant.local:8123/lovelace/8

I have tried referencing it as

/lovelace/8
lovelace/8
8

and probably a lot of other things I don’t remember any more… What’s the right format??

Here’s the automation:

- id: person_in_front
  alias: Person In Front
  initial_state: 'true'
  trigger:
    platform: numeric_state
    entity_id: sensor.front_person
    above: 0
  condition:
    condition: or
    conditions:
    - condition: time
      after: '23:00:00'
      before: '7:00:00'
    - condition: state
      entity_id: sensor.alarm_state_3_motion_sensors
      state: 'armed_away'
      for:
        minutes: 1
    - condition: state
      entity_id: sensor.alarm_state_3_motion_sensors
      state: 'triggered'  
  action:
    - service: notify.mobile_app_sean_s_iphone_12
      data:
        title: "House Watch"
        message: "There's a Person in Front of the House"
        data:
          push:
            sound:
              name: "Update.caf"
              critical: 1
              volume: 1.0
            category: camera
            thread-id: "security"
          entity_id: camera.front_person
          clickAction: /lovelace/8
    - delay: 
      minutes: 10

Would love to hear from someone who’s actually made this work correctly.

1 Like

same issue

1 Like

Did you ever find a solution, @scstraus? Clicking on the notification always minifies HA (even though the correct dashboard is opened when you switch to the companion app again).

Nope. The correct functioning of this feature is a complete mystery to me. I suspect it’s just broken. Should probably open a case.

yes, I got that to work, still hard coded as I had some issues with using the variable I added in the blueprint. will fix this hopefully soon:

action:
- delay: '{{ delay }}'
- service: camera.snapshot
  entity_id: !input 'camera'
  data:
    filename: '{{ snapshot_create_file_path }}'
- device_id: !input 'notify_device'
  domain: mobile_app
  type: notify
  title: '{{ notification_title }}'
  message: '{{ notification_message }}'
  data: 
    '{% set android_data = {"image": "%s"} | format(snapshot_access_file_path)%} {% set ios_data = {"attachment": {"url": "%s", "content_type": "JPEG"}, "url": "/lovelace/cam", "clickAction": "/lovelace/cam"} | format(snapshot_access_file_path)%} {{ ios_data if is_ios else android_data }}'


1 Like