Since I use node red it’s just two nodes that I need to add to get the function, the rest is the same as the normal sequence. I don’t find it distracting at all.
It’s so simple.
I don’t see a reason for the WTH because there is ways to do it.
Just like I would argue against premade template sensors to extract all attributes of a entity.
I would say focus on the stuff that does not work at all now and then keep these where you can make it quite easily yourself to last.
My opinion but I understand that you don’t agree.
Thanks for the code. Unfortunately it doesn’t work for me. (“Cannot call service variable.set_variable extra keys not allowed @ data[‘attributes_template’]. Got None extra keys not allowed @ data[‘value_template’]. Got None”
Perhaps it has to do with a recent update of HA. FYI I am running HA 2021.12.10.
I had to change value_template and attributes_template and remove _template from both.
Even though this is an old post I hope this helps somebody.
I’m trying to do this too.
My wife (y) and i (x) drive the car, so the automation should work for 2 phones.
I also want a button in the gui, so i can press it, and it gives me a navigation route to the point i parked the car, is that possible (not using android auto cause i want it for walking too)
Here’s my automation, but it doesnt work 100% and i have no button to navigate
I have one driver to one car and I used to have a button that navigated using Google maps but by some reason the button is not on the GUI anymore.
I believe I can figure out what the button did looking at automations and stuff.
But since you can’t get a dynamic link on the GUI (at least not with standard cards) I routed to a static php page that directed me to google maps navigation.
The automation that parks the car sends the coordinates to the same php page with a simple GET url.
Do you have a webpage you can use for this?
Hi
I’m curious how you did it.
Why do you say i cant get a dynamic link, if i just point to the device tracker as an entity i do have a link right?
I don’ t have a webpage.
Also any idea why my automation doenst always work?
I changed my host_name afterwards, might that be the cause?
CAuse in my GUI i dont see the new host name but the old one, and HA didnt make a second device tracker. (cant get rif of it either)
Old:
sequence:
- alias: "Maak device tracker aan bij start HA"
service: device_tracker.see
data:
dev_id: auto
host_name: Locatie Auto
New:
sequence:
- alias: "Maak device tracker aan bij start HA"
service: device_tracker.see
data:
dev_id: auto
host_name: Parkeerlocatie
But that won’t open google maps, right?
You can use the map card if you want to do a basic/manual navigation, but if you want to open google maps navigation then you need to supply it with a dynamic URL.
You might be able to do it easier now with notifications to the phone.
having an entity to represent the car in home assistant
Mobile automation using tasker
haven’t tested it on other devices so hopefully this works fine for you: https://taskernet.com/?public&tags=Bluetooth,Car,Location&time=AllTime
the tasker profile is called HA Car Location and it has a starting task to allow you to configure parameters like when to update, name of car, HA instance, etc.
Sending a webhook that is watched by node-red
You need to create a flow in node-red that will create a car instance that will update based on the webhooks defined in tasker
Known issues
When restarting the phone, the phone sends a notification to update the parked car. This is fixable (already fixed in the version on my phone). will update a fix soon
I’ll try and post the complete solution once I’m home and have everything available
Multiple lessons to be learnt:
I setup this style of device tracker system for many devices around my house, utilising Espresense and bluetooth connections with the phones to create a last known location for headphones, smartwatches, ble keytags, etc.
So my son lost his Fitbit, and in theory my new system ‘should’ have been able to tell the rough last known location, all device_tracker entities were listed in recorder.yaml.
I apparently missed the part where HA does not save the device_tracker data through a restart.
Not really extra work in my opinion.
HA can’t possibly know what happens during a restart, or for how long it has been offline.
So the only thing it can do is to say “I don’t know”, what you want is to make HA assume everything has been static during the offline time. It could be true, but a device could be moved and run out of battery during this time also.
HA can’t possibly know what happens during a restart, or for how long it has been offline.
So the only thing it can do is to say “I don’t know”, what you want is to make HA assume everything has been static during the offline time. It could be true, but a device could be moved and run out of battery during this time also.
True, but then the HA companion app that I installed on an old tablet to use as a wall mount is still showing a battery level of 45%, despite the fact that tablet hasn’t been turned on in 6 weeks.
I guess it just seems odd that other entities if you include them in recorder, then they get recorded.