itchannel / fordpass-ha

Fordpass integration for Home Assistant
313 stars 58 forks source link

fordpass_gps sensor is gone. #348

Closed jwinston100 closed 1 year ago

jwinston100 commented 1 year ago

I updated to the newest release, 1.57, and now my fordpass_gps sensor is gone. I have been using this is several automations.

gniknalu commented 1 year ago

I have always used device_tracker.fordpass_tracker

itchannel commented 1 year ago

Please use the device_tracker entity. It has all the same details as fordpass_gps just layed out a lot nicer.

image

jwinston100 commented 1 year ago

In my configuration.yaml, I created a template sensor from the GPS data and also a proximity sensor from that so that, for example, my garage door will open within a certain number of feet of my house when the tracker will still just say "Away".

itchannel commented 1 year ago

Yep so instead of using that sensor use the device tracker attributes it still has all the same details as the removed gps sensor.

{{ state_attr("device_tracker.fordpass_tracker", "latitude") }}
{{ state_attr("device_tracker.fordpass_tracker", "longitude") }}
{{ state_attr("device_tracker.fordpass_tracker", "Altitude") }}

If you post your template code I'll happily edit it to work :)

gniknalu commented 1 year ago

In my configuration.yaml, I created a template sensor from the GPS data and also a proximity sensor from that so that, for example, my garage door will open within a certain number of feet of my house when the tracker will still just say "Away".

Yes! Please Share!

jwinston100 commented 1 year ago

Yep so instead of using that sensor use the device tracker attributes it still has all the same details as the removed gps sensor.

{{ state_attr("device_tracker.fordpass_tracker", "latitude") }}
{{ state_attr("device_tracker.fordpass_tracker", "longitude") }}
{{ state_attr("device_tracker.fordpass_tracker", "Altitude") }}

If you post your template code I'll happily edit it to work :)

I see. Thank you, itchannel, I didn't realize the GPS coordinates were also stored in the device tracker.

gniknalu, here is my proximity sensor for the vehicle:

proximity:
  ford_raptor_from_home:
    latitude: {{ state_attr("device_tracker.fordpass_tracker", "latitude") }}
    longitude: {{ state_attr("device_tracker.fordpass_tracker", "longitude") }}
    tolerance: 50
    unit_of_measurement: ft
SquidBytes commented 1 year ago

@jwinston100 I'm assuming this is completed by moving to the device_tracker?

jwinston100 commented 1 year ago

Yes, I'll close it.