ReneNulschDE / mbapi2020

Custom Component to integrate MercedesME devices into Home-Assistant
Other
142 stars 27 forks source link

Geographic violation issue #245

Closed apartment-wharf closed 1 month ago

apartment-wharf commented 1 month ago

The problem

sensor.gc210dp_geofencing_violation It does not synch in real time.

What version of MBAPI2020 do use?

V0.15.0

What was the last working version of MBAPI2020?

No response

What type of installation are you running?

Home Assistant OS

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

ReneNulschDE commented 1 month ago

This sensor is a pull sensor. The default update interval is 5 minutes. In case you need a different update interval, you could create an automation and call the service "homeassistant.update_entity" with your geofencing entity "sensor.XXXXX_geofencing_violation"

image

apartment-wharf commented 1 month ago

Even setting the automation for some reason does not update.

[image: geographic violation.jpg]

It does update the device tracker only. however it is always set away for some strange reason. Not sure How the tracker works where to set Away / home location. [image: Screenshot 2024-06-11 140209.jpg]

There the Automation

[image: Screenshot 2024-06-11 140402.jpg]

On Tue, 11 Jun 2024 at 08:27, Rene Nulsch @.***> wrote:

This sensor is a pull sensor. The default update interval is 5 minutes. In case you need a different update interval, you could create an automation and call the service "homeassistant.update_entity" with your geofencing entity "sensor.XXXXX_geofencing_violation"

image.png (view on web) https://github.com/ReneNulschDE/mbapi2020/assets/33263735/dda98a2e-f96c-46f1-93dd-d1fd0dae14a3

— Reply to this email directly, view it on GitHub https://github.com/ReneNulschDE/mbapi2020/issues/245#issuecomment-2159990322, or unsubscribe https://github.com/notifications/unsubscribe-auth/APVS4JMNDH5NLERDTNZWXHDZG2RHDAVCNFSM6AAAAABJAHGWWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJZHE4TAMZSGI . You are receiving this because you authored the thread.Message ID: @.***>

ReneNulschDE commented 1 month ago

Have you created the geofences in the MBApp? Does the geofencing in the mbapp work? Please post the images again, can't see it when you answer via email.

apartment-wharf commented 1 month ago

Yes it is created. I have just noticed that it updated only when the location changes. So all good then. Best would be a push request rather then a pull.

How the other sensor works? device_tracker.gc210dp_device_tracker It is always set AWAY.

On Tue, 11 Jun 2024, 16:56 Rene Nulsch, @.***> wrote:

Did you create the geofences in the MBApp? Does the geofencing in the mbapp work?

— Reply to this email directly, view it on GitHub https://github.com/ReneNulschDE/mbapi2020/issues/245#issuecomment-2160975302, or unsubscribe https://github.com/notifications/unsubscribe-auth/APVS4JOZRJPF23HTMPQ63PDZG4FX5AVCNFSM6AAAAABJAHGWWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRQHE3TKMZQGI . You are receiving this because you authored the thread.Message ID: @.***>

ReneNulschDE commented 1 month ago

Can't change this to push as this information is available via MB-API with pull only.

The device_tracker is using the home-assistant zones for the presence detection. See here https://www.home-assistant.io/integrations/zone/

ReneNulschDE commented 1 month ago

let me know if you have further questions.

apartment-wharf commented 1 month ago

All good. Just Mercedes GPS system is very slow to update. Nothing we can do about it

On Fri, 14 Jun 2024, 23:04 Rene Nulsch, @.***> wrote:

let me know if you have further questions.

— Reply to this email directly, view it on GitHub https://github.com/ReneNulschDE/mbapi2020/issues/245#issuecomment-2168760341, or unsubscribe https://github.com/notifications/unsubscribe-auth/APVS4JI5ABLXGQMZFORS5KTZHNLGBAVCNFSM6AAAAABJAHGWWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRYG43DAMZUGE . You are receiving this because you authored the thread.Message ID: @.***>