#Android auto: Waze intent
1 messages ยท Page 1 of 1 (latest)
alias: Waze - Commute
description: ""
triggers:
- trigger: zone
entity_id: person.yvo
zone: zone.home
event: leave
id: Leaving - Home
- trigger: zone
entity_id: person.yvo
zone: zone.work
event: leave
id: Leaving - Work
conditions:
- type: is_connected
condition: device
device_id: 596174e59cd1881c3b619bd305156abd
entity_id: 237c432066bc557ae9d52a94ca7c6f72
domain: binary_sensor
actions:
- choose:
- conditions:
- condition: trigger
id:
- Leaving - Home
- condition: time
after: "07:00:00"
before: "10:00:00"
- condition: state
entity_id: binary_sensor.workday_sensor
state: "on"
sequence:
- alias: Navigate to Work
action: notify.mobile_app_sm_s928b
data:
message: command_activity
data:
intent_package_name: com.waze
intent_action: android.intent.action.VIEW
intent_uri: https://waze.com/ul?favorite=work&navigate=yes
car_ui: true
- conditions:
- condition: trigger
id:
- Leaving - Work
- condition: time
after: "16:00:00"
before: "18:00:00"
sequence:
- alias: Navigate to Home
action: notify.mobile_app_sm_s928b
data:
message: command_activity
data:
intent_package_name: com.waze
intent_action: android.intent.action.VIEW
intent_uri: https://waze.com/ul?favorite=home&navigate=yes
car_ui: true
mode: single
I have tried adding the car_ui: true bit but it does not resolve my problem ๐
What does doens't work mean? Does the automation still trigger when you leave a zone? Does the condition pass? Does it fail on actions?
The intent doesn't work
But specifically using android auto
Haven't tested if its with the screen locked/unlocked that it no longer works
I'm not in the car right now, but the command itself works for me, and opens Waze with the requested route. On the phone I have to unlock before it opens Waze, so it might be the locking/unlocked status.
Yeah, it seems like some recent android update has blocked this to work with android auto
The intent works fine, just not with android auto
Maybe I worded it poorly ๐
So, I used to hop in the car, just drive out of my street and HA would figure the fastest way to work and plop it on my andoid auto,
Up untill recently the intent no longer opens waze on the android auto screen
Android 16 might be the actual culprit here
I've created a similar automation, I can let you know tomorrow if it works for me. I'm on a Pixel 10 Pro so I also run Android 16
Ok great!
is the device receiving the notification? is there any error in the companion app logs? and also was Waze updated recently? Waze app updates can indeed impact this
The device is my phone being directly connected with a USB cable to my radio which then starts android auto
My phone apps and waze are fully up to date
Whenever I am at my desk and I just click "run action" it works fine
Sorry, I went to work by bicycle this morning, so no update from my side
*however my phone HAS to be unlocked but I think that this might be the issue regarding to the intent not actually doing something once connected to android auto
No worries hahah
Will need to see the crash logs then
Figured yesterday that it works perfectly fine with my phone unlocked
tahts unrelated, teh HA core integration has nothing to do with the android app controlling the waze android app. But given waze changed their APIs its possible they also broke this
I highly doubt it,
Like I said, it works fine with my phone unlocked.
I'll add my car's bluetoothsignal as trusted to keep the phone unlocked.
Im at work right now and about to leave so I can instantly try it ๐
I am pretty sure it has to do with the intent change I posted earlier with the android 16 update
Ok, thats not it also
When I have Waze already open, the intent doesn't do anything
It just switches to waze. Thats all,
It does however not turn on the navigation
so waze does receive it in certain cases?
if your phone is required to be unlocked then double check the app has background access, that could delay sending it....if you see the waze app open but nothing happens then that could indeed indicate a waze issue. You can try checking adb logcat to see if waze got any issues when it got the intent
Where can I find that? ๐
youll need to use android studio or an app like logcat reader, both of which require a PC to get the connection going....theres no real easy way unfortunately
you could potentially rebuild teh intent in an app like tasker to see if you see a similar issue to rule out the app
your intent is very common though, if you send yourself a link to the waze URL in a text would the waze app open?
I send a scheduled text message to myself for 6 minutes,
I doubt that it will actually do something
Oh
Yeah it didn't do anything hahaha
Opening the link does open the app and start the route
When the app is already open > url also doesn't work
Im reading that navigating to Favourites using deepurl's / intents is a known issue ๐ค
Ok so, with coordinates
https://waze.com/ul?ll=co.oordinate,co.oordinate&navigate=yes
It actually works.
so they broke something lol?
Before getting overly excited, I'll get back here tomorrow with the result in the morning
Internet says yes
ok that seems most likely the case becuase if our intents was broken it woudlnt be limited to waze but even google maps will have an issue etc...
they boght them im surprised they never merged the products, only cherry picked features
Ok, coordinates intent also does not work ๐