itchannel / fordpass-ha

Fordpass integration for Home Assistant
301 stars 53 forks source link

fordpass_gps should be device_tracker not sensor. #27

Closed TRusselo closed 3 years ago

TRusselo commented 3 years ago

Im still learning myself, but i think

Fordpass_gps should be a device_tracker not sensor. this will allow it to be set as a "tracking device" for "people", and the status should show as a location, rather than "unshifted".... ( I assume)

EDIT dont change. ADD. no reason cant have both.

TRusselo commented 3 years ago

you might also get an actual location address with geocoded_location attribute on the sensor device type. but please look into adding device_tracker device type for presence detection (home/away status)

itchannel commented 3 years ago

I'll have a look into adding a device_tracker but the docs aren't the best in the world so may take a little time to get my head around it.

For now it should show on the MAP and work like a tracker, the only difference is the "SHIFTED" / "UNSHIFTED" which is an attribute pulled from the FORD API which I agree can look a little weird so would be nice to have home/not_home

TRusselo commented 3 years ago

Home/Away status is only available with a Device Tracker that has been added to a person. you can only link a device tracker to a person, not sensors.

But yes i have the sensor showing in a map card.... when its not "UNAVAILABLE" from the other issue.

itchannel commented 3 years ago

Added in latest version