Apparently this is a lot harder than meets the eye!
I’d like to create a seemingly simple automation (I see I’m not the first):
→ Scan this NFC tag
→ Jump to a dashboard
(Real life use case: when you scan the NFC tag you get taken to a dashboard with a bunch of button cards controlling HVAC and lighting for that room specifically).
I tried adding something like this in YAML:
description: "Scan this tag and jump to the office HVAC dashboard"
mode: single
trigger:
- platform: tag
tag_id: 12121212-121212-1231212-
condition: []
action: []
alias: Tag exitgateway is scanned
tap_action:
action: navigate
navigation_path: /office-control-dashboard
… but I can’t get HA to accept it!
Another option I considered is just writing the dashboard URL straight to the tag but … that then opens it in the browser (and requires separate authentication).
Apparently what I’m looking for (with this approach) is a deep link but … I haven’t had success.
My client / device is an Android and I’m running the standard/stock HA app.
interesting puzzle. i don’t have a perfect solution for you, but a couple things that might help…
what about pushing an actionable notification to the device. the user would have to tap on that notification, but then it can take the user straight to a page with the controls you want.
i presume you can’t count on the home assistant app already being visible? you could otherwise use browser_mod to do a popup with a page of your choice.
For those coming here in search of a solution, here what worked for me. This solutions opens the app and the desired dashboard ONLY on the phone who scanned the NFC!