Hi all, I’ve been waiting for this feature for a bit: Fire an event when a navigation entity is selected while driving by dshokouhi · Pull Request #4637 · home-assistant/android · GitHub and now that it’s in HA, I was wanting to set up some automations based on the event - mainly, trigger HA to turn on the air conditioning when ‘home’ is selected from the navigation, however, documentation and examples for triggering an automation based on an event is rather thin and I am not sure how to test it without actually being in the car, and creating an automation while driving seems… unideal? How would I grab the information that’s passed in the event and use it to ‘do something’. My main example: if I select ‘home’ from navigation, and HA detects that no one is home, the ac should be set to start cooling/heating as appropriate.
Use Developer tools | Event to manually fire the event.
I usually start with a simple automation that sends a persistent notification when triggered that just has the trigger info and start breaking the data down from there.
Nothing in the linked PR seems to indicate that you actually need to be driving to do this. I strongly suspect the car doesn’t even need to be started (accessory mode, where your head unit is powered, should be enough).
Jeffcrum’s suggestion is a great starting point, though you might need to add the data section with the entity & device IDs, and you won’t need to move from your PC.