> ## Documentation Index
> Fetch the complete documentation index at: https://docs.myzendo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Link from notifications

> Send push notifications that open a specific screen in Zendo when tapped.

## Intro

Push notifications can open a specific screen in the Zendo app when tapped. For example, a notification about your doorbell can open its live stream directly so you can see who's there, and a notification that your alarm has been triggered can open your [security system](https://docs.myzendo.com/accessories/security-system.md), ready to switch off.

***

## Set up

Before you start, make sure you have [push notifications](https://docs.myzendo.com/automate/push-notifications.md#configure-home-assistant) set up.

If push notifications are already set up, open the Zendo iOS/Android app, tap  > "Settings" > "Property" > "Zendo on Home Assistant" (or "Push Notifications") and tap "Set Up Again" to make sure Home Assistant has the latest list of available destinations.

***

## List available destinations

To see which destinations are available, call the `list_deep_link_destinations` service.

1. Go to **Developer Tools > Services** in Home Assistant.
2. Select **Zendo: List deep link destinations**.
3. Click **Call Service**.
4. The response panel shows the available destinations.

### Response format

```yaml theme={null}
destinations:
  - id: "securityCamera_abc123"
    destination: "security_camera"
    title: "Front door"
    subtitle: "Camera/Doorbell"
    entityType: "security_camera"
  - id: "securityCamera_def456"
    destination: "security_camera"
    title: "Back garden"
    subtitle: "Camera/Doorbell"
    entityType: "security_camera"
  - id: "securitySystem_ghi789"
    destination: "security_system"
    title: "House alarm"
    subtitle: "Alarm"
    entityType: "security_system"
```

| Field | Description |
| - | - |
| `id` | The identifier you use in automations. This is what you pass to `deep_link_destination`. |
| `destination` | The type of destination (e.g. `security_camera` or `security_system`). |
| `title` | The name of the destination (e.g. the camera's or the alarm's label). |
| `subtitle` | Secondary description (e.g. "Camera/Doorbell" or "Alarm"). |
| `entityType` | The entity category. |

***

## Send a notification that opens a destination

Use the `zendo.send_notification` service with the `deep_link_destination` field set to the `id` of the destination you want to open.

> [!NOTE]
>
> A notification can only open what the receiver can see in Zendo. If [Family Sharing (Access Control)](https://docs.myzendo.com/share/acl.md) hides the camera, doorbell or security system from them, the notification opens a screen saying it isn't available.

### Example: doorbell notification

A doorbell press is the ideal use case - the notification tells you someone is at the door, and tapping it opens the doorbell camera stream so you can see who it is.

```yaml theme={null}
automation:
  - alias: "Doorbell pressed - notify household"
    trigger:
      - platform: state
        entity_id: binary_sensor.doorbell_press
        to: "on"
    action:
      - service: zendo.send_notification
        target:
          entity_id:
            - notify.zendo_owner
            - notify.zendo_bob
        data:
          message: "Someone is at the door"
          interruption_level: "time_sensitive"
          deep_link_destination: "securityCamera_abc123"
```

When the doorbell is pressed, both people receive a time-sensitive notification. Tapping it opens the Zendo app directly to the doorbell camera's live stream.

### Example: alarm notification

When the alarm is triggered, you want to know straight away, and to be able to switch it off. Send a critical notification that opens your [security system](https://docs.myzendo.com/accessories/security-system.md).

```yaml theme={null}
automation:
  - alias: "Alarm triggered - notify owner"
    trigger:
      - platform: state
        entity_id: alarm_control_panel.house_alarm
        to: "triggered"
    action:
      - service: zendo.send_notification
        target:
          entity_id: notify.zendo_owner
        data:
          message: "The alarm has been triggered"
          interruption_level: "critical"
          deep_link_destination: "securitySystem_ghi789"
```

As a critical notification, it bypasses mute and Do Not Disturb settings. Tapping it opens the alarm's screen in Zendo.

### Without a destination

The `deep_link_destination` field is optional. Omitting it sends a normal notification that opens the default notification view when tapped.

```yaml theme={null}
- service: zendo.send_notification
  target:
    entity_id: notify.zendo_owner
  data:
    message: "Someone is at the door"
```

***

## What happens when a destination can't be found

The notification always arrives, even if the destination can't be resolved. The destination is best-effort.

| Scenario | What happens |
| - | - |
| `deep_link_destination` ID not found | Warning logged, notification sent without a destination. |
| Camera or security system removed after the destination was set | Notification sends with the destination. Tapping it opens a screen saying the accessory isn't available. |
| `deep_link_destination` field omitted | Normal notification, no destination. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.