DasBasti / SmartHashtag

Homeassistant component for Smart #1/#3 API
MIT License
34 stars 1 forks source link

Problem with gps tracker #72

Closed terzo33 closed 6 months ago

terzo33 commented 6 months ago

@DasBasti the gps tracker doesn't update automatically, the only way to get it updated is to restart the smarthashtag integration. I also tried setting on integration configuration update time of 10 seconds to no avail. all the other sensors update in real time, this one of the GPS tracker is always still.
on the official smart application the GPS works correctly.

Screenshot_20240323_144544_Home Assistant.jpg

wfroemgen commented 6 months ago

I can confirm the problem. In some earlier version it did work, if I remember right, but it's hard to tell which Version was running at that time. Probably before the self resetting Privacy Button bug on the cars Software was fixed.

terzo33 commented 6 months ago

Always Still

Screenshot_20240324_075555_Home Assistant.jpg

terzo33 commented 6 months ago

@DasBasti I just update version to 0.3.2 but why before I saw the status of the vehicle in the home assistant area (work, home ...) and now I only see true or false?

Screenshot_20240331_131745_Home Assistant.jpg

DasBasti commented 6 months ago

I experimented with the state of the device tracker according to the "position can be trusted" flag of the GPS data. Updates should work now but I am not satisfied with the state as now either.

If anyone knows how to properly set up the Device Tracker Entity I am very much looking forward for pull requests!

terzo33 commented 6 months ago

I experimented with the state of the device tracker according to the "position can be trusted" flag of the GPS data. Updates should work now but I am not satisfied with the state as now either.

If anyone knows how to properly set up the Device Tracker Entity I am very much looking forward for pull requests!

I agree with you. as a state of the entity it would be better to show the area where the vehicle is located rather than true or false.

in older versions it works perfectly

DasBasti commented 6 months ago

in older versions it works perfectly

But homeassistant seams to have changed since I did not change the code from the first version of the device tracker entity

terzo33 commented 6 months ago

@DasBasti is there a way to fix this problem? I need to read gps area(home, not home, work) for automation

DasBasti commented 6 months ago

I will have a look into it tomorrow. Maybe there needs to be a different type of entity.

terzo33 commented 6 months ago

I will have a look into it tomorrow. Maybe there needs to be a different type of entity.

Thanks a lot