core icon indicating copy to clipboard operation
core copied to clipboard

Traccar: device_tracker is not available by the time of `homeassistant.start`

Open ildar170975 opened this issue 1 year ago • 51 comments

The problem

Starting from 2024.5, I see that device_tracker ALWAYS not ready by the time when homeassistant.start event is sent.

alias: test_traccar
description: ""
trigger:
  - platform: homeassistant
    event: start
condition: []
action:
  - service: persistent_notification.create
    metadata: {}
    data:
      message: >-
        {{ states('device_tracker.iphone_5s_traccar') }}
mode: single

This gives unavailable in notification. Although the device_tracker.iphone_5s_traccar entity seems to be OK when I open more-info right after HA start.

It did not happen before 2024.5.

What version of Home Assistant Core has the issue?

2024.5.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

traccar server

Link to integration documentation on our website

https://www.home-assistant.io/integrations/traccar_server/

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

ildar170975 avatar May 04 '24 19:05 ildar170975

Hey there @ludeeus, mind taking a look at this issue as it has been labeled with an integration (traccar_server) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of traccar_server can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign traccar_server Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


traccar_server documentation traccar_server source (message by IssueLinks)

home-assistant[bot] avatar May 04 '24 19:05 home-assistant[bot]

I see that device_tracker is unavailable during reboot: image

Cannot say for sure was it unavailable before 2024.5. But it was definitely available after homeassistant.start.

ildar170975 avatar May 04 '24 20:05 ildar170975

I have tried to look but could not see any documentation that say that all entities will have gotten an updated state when that event is fired. That will impact all entities for push integrations, so I would expect there to be documentation for it, can you point me to where you have that from?

ludeeus avatar May 28 '24 19:05 ludeeus

I am not following an official docs for HA developers. This is needed for HA developers, not HA users. As a user - I say that earlier (before 2024.5) device_trackers for Traccar did not have these gaps in history. This is my opinion, this is what I remember. Ofc I could be wrong. Then you please tell me that I am wrong and Traccar integration never restored it's last state after HA reboot.

ildar170975 avatar May 28 '24 19:05 ildar170975

I confirm, I have now returned to version XA 2024.1. Traccar works perfectly in it. In version 2024.5, the sensors actually go into the unavailable state when rebooted.

Well, the sensors constantly stop updating... https://github.com/home-assistant/core/issues/116628

Caldin-Maldin avatar Jun 06 '24 03:06 Caldin-Maldin

Just checked with 2024.6.1 - and see no unavailable gaps during HA reboots:

изображение

Cannot say if there were any related changes in a code of Traccar server integration.

Closing the issue now. Please let me know if it should be reopened.

ildar170975 avatar Jun 11 '24 23:06 ildar170975

Reopening, still see it sometimes. Erratic behaviour.

There is an unavailable gap during HA reboot (a below graph is for HA uptime): изображение

ildar170975 avatar Jun 14 '24 15:06 ildar170975

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

up

ildar170975 avatar Jun 28 '24 16:06 ildar170975

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

WTH it tries to auto close the issue every 2 weeks ? Suggest to the code owner to take a look at this issue - otherwise I am having a feeling that auto-closing issues has more priority than solving them.

ildar170975 avatar Jul 12 '24 18:07 ildar170975

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

up

ildar170975 avatar Jul 26 '24 20:07 ildar170975

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Thanks a lot for that I have to un-stall this issue. Stalling an issue is much more important than at least having a look at it.

ildar170975 avatar Aug 09 '24 21:08 ildar170975

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

issue still ignored

ildar170975 avatar Aug 23 '24 22:08 ildar170975

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

up

ildar170975 avatar Sep 07 '24 00:09 ildar170975

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Up

ildar170975 avatar Sep 21 '24 10:09 ildar170975

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Up

ildar170975 avatar Oct 05 '24 12:10 ildar170975

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Up

ildar170975 avatar Oct 19 '24 20:10 ildar170975

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Up

ildar170975 avatar Nov 02 '24 23:11 ildar170975

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Up

ildar170975 avatar Nov 17 '24 12:11 ildar170975

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.