Every Home Assistant notification opened the default dashboard

Tapping any Home Assistant notification on my Android phone opened the app on the default dashboard, until I set clickAction:

action: notify.mobile_app_your_phone   # your phone's notify service
data:
  message: Freezer is warming up
  data:   # the inner data holds the app's options
    # opens the sensor's details popup (more-info dialog)
    clickAction: entityId:sensor.freezer_temperature

The value is templated server-side like any other field, so an automation that triggers on several entities can open whichever one tripped with clickAction: 'entityId:{{ trigger.entity_id }}'.

clickAction also takes a view on the default dashboard like /lovelace/freezer, where freezer is the view’s path, or a full URL, and the notification docs list the other targets. On iOS the key for a path or URL is url, and opening an entity takes entity_id: sensor.freezer_temperature in the same inner data with no url set.