corvy / ha-addons

Apache License 2.0
6 stars 2 forks source link

Location is fixed on "3d fix" #4

Closed skleijkers closed 1 year ago

skleijkers commented 1 year ago

Hi,

Back again! :)

Almost everything works, but I have something weird, I also created a user and used the GPS location on it (I'll be using it in a Camper). But when I go to the entity it doesn't update the location to a location in a zone, see the picture:

Scherm­afbeelding 2023-06-08 om 11 07 29

And I have a second thing: When I click on the map and want to zoom in/out it resets to the position of the gps in standard zoom. I think it updates to that default when the MQTT gets an update and that's every second... Would it be an option to introduce a timer for updating?

Stefan

corvy commented 1 year ago

Thanks for suggestions!

Yes the 3D fix state is set by GPSD. 3D Fix means the "best possible" location fix. On location you could also get no fix and 2D fix.

But that state could be publised to an attribute instead. Does not have to be in the state. I can change that to be part of the attributes list instead and leave state unchanged.

Timer could be an option yes. I will look into that!

corvy commented 1 year ago

Just for info, still working on this. Hope to get a new version later today or tomorrow.

corvy commented 1 year ago

Quite a few new changes in the 2023.6.1 version. Try that out and see if that works better for you. Your requests are baked in this release, with the state not changed but GPS FIX but rather state from zone. Also the logging is improved and both logging and state publish frequency can be changed in the new optional options. Please let me know how it works for you.

Thanks!

corvy commented 1 year ago

Screenshot_20230610_195257_Home Assistant

The new version works well for me at least. 👍

skleijkers commented 1 year ago

Ah thx! I'll give it a try!

skleijkers commented 1 year ago

Works like a charm! Many thanks!

corvy commented 1 year ago

Love it! Thanks for reporting back!