leapconnect icon indicating copy to clipboard operation
leapconnect copied to clipboard

MQTT Location entity always reports 'at home'

Open marmof opened this issue 6 months ago • 3 comments

Ho notato che l'entità Location di MQTT risulta sempre at home ed anche nella sezione History -> Cloud il grafico a ciambella Energy consumption per 100 km — last 6 weeks non e aggiornato e sempre a 0% .Sono alla versione 0.8.2 di LeapConnect . Sempre nella sezione History ho notato un aggiuornamento errato delle date. All'apertura vedo il giorno corrente es. 08/06 se mi sposto al giorno precedente non mi visualizza i dati del 07/06 ma quelli del 05/06 mostrando 06/06 poi torno avanti al giorno in corso e mi visualizza i dati del 07/06 ma mi mostra 08/06 finche non si aggiorno la pagina e compare di nuovo il valore esatto di today.

marmof avatar Jun 05 '26 08:06 marmof

Stesso problema qui

danye72 avatar Jun 09 '26 11:06 danye72

Hi @marmof, thanks for the detailed report — and @danye72 for confirming.

Let's make things clear: this report actually contains three separate problems, so I've split them into dedicated issues to make each one easier to track and fix.

  • This issue (#16) is now scoped to: the MQTT Location entity always reporting at home, even when the vehicle is elsewhere.
  • #22 — History → Cloud: the "Energy consumption per 100 km — last 6 weeks" donut chart always shows 0%.
  • #23 — History: day navigation shows the wrong date / off-by-one (and off-by-two) until a page refresh.

I've rewritten the title and description of each so the specific symptoms are captured. Please follow #22 and #23 for those two problems, and let's keep the discussion here in #16 focused on the MQTT Location entity.

Thanks again for taking the time to report all of this! 🙏

markoceri avatar Jun 15 '26 23:06 markoceri

I've identified the root cause. The Home Assistant Location device tracker was being forced to home whenever GPS coordinates were present, instead of letting Home Assistant resolve the actual zone from the coordinates.

The fix is ready and will ship in the next release v0.11.0. Once you update, the corrected entity will be picked up automatically on the next data publish (no manual steps needed).

markoceri avatar Jun 15 '26 23:06 markoceri