Closed ildar170975 closed 3 months ago
A couple of things to try:
Can you turn on debug and post the virtual logs created? Add this to configuration.yaml
logger:
default: info
logs:
custom_components.virtual: debug
Can you stop the system and look at the contents of .storage/virtual.restore_state
, it's where I store the virtual device tracker state.
Thanks a lot for reply!
turn on debug
I will post a log a bit later, just a quick observation:
that storage/virtual.restore_state
file contains data like
{"device_tracker.iphone_5s_accum": "home", ...., "device_tracker.redmi_7a_accum": "some zone name", ...}
but shouldn't it contain attributes as well?
That file is a kludge. In the 0.8 (and previous) versions of virtual device_tracker
uses the old Home Assistant device tracker mechanism. This mechanism doesn't support the restore state so I had to write my own - hence this file.
The alpha release of virtual uses the new mechanism so that file isn't used any more.
@twrecked Managed to prepare a short example.
These are my Home coords (fake data):
glob__ha_position_latutude: 58.85
glob__ha_position_longitude: 38.85
glob__ha_position_elevation: 10
Setting home position:
homeassistant:
name: Home
latitude: !secret glob__ha_position_latutude
longitude: !secret glob__ha_position_longitude
elevation: !secret glob__ha_position_elevation
Setting a virtual device_tracker
:
device_tracker:
- platform: virtual
devices:
- name: phone_virtual
peristent: True
And a person
:
person:
- name: some_person
id: some_person
device_trackers:
- device_tracker.phone_virtual
A test zone
:
zone:
- name: britain
latitude: 51.22408779639158
longitude: 1.1425781250000002
radius: 100
passive: false
icon: mdi:home-city
These automations to move the device_tracker
to Home & to the added zone
:
automation:
- alias: 'test: Move virtual device_tracker to Britain'
description: ''
trigger: []
condition: []
action:
- service: device_tracker.see
data:
dev_id: phone_virtual
gps:
- 51.22408779639158
- 1.1425781250000002
gps_accuracy: 10
mode: single
- alias: 'test: Move virtual device_tracker to Home'
description: ''
trigger: []
condition: []
action:
- service: device_tracker.see
data:
dev_id: phone_virtual
gps:
- 58.85
- 38.85
gps_accuracy: 10
mode: single
Here is what I see right after HA reboot:
(earlier I moved the device_tracker
to zone.britain
- so it still shows this place).
Move the tracker to zone.home
- call the corr. automation:
Reboot HA.
Both entities are Home - but w/o coords:
Then move it to zone.britain
:
Reboot HA.
The person
is unknown
, the device_tracker
is britain
, no coords.
Here is a History; sensor.uptime
is added to show HA reboots.
Log from the last run:
Home Assistant Core
2023-11-30 23:42:06.865 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration virtual which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-11-30 23:42:06.866 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-11-30 23:42:07.129 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.0 seconds
2023-11-30 23:42:07.130 INFO (MainThread) [homeassistant.bootstrap] Setting up frontend: {'frontend'}
2023-11-30 23:42:07.131 INFO (MainThread) [homeassistant.setup] Setting up device_automation
2023-11-30 23:42:07.131 INFO (MainThread) [homeassistant.setup] Setup of domain device_automation took 0.0 seconds
2023-11-30 23:42:07.132 INFO (MainThread) [homeassistant.setup] Setting up http
2023-11-30 23:42:07.190 INFO (MainThread) [homeassistant.setup] Setting up lovelace
2023-11-30 23:42:07.193 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 0.0 seconds
2023-11-30 23:42:07.197 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.1 seconds
2023-11-30 23:42:07.230 INFO (MainThread) [homeassistant.setup] Setting up image_upload
2023-11-30 23:42:07.237 INFO (MainThread) [homeassistant.setup] Setting up api
2023-11-30 23:42:07.239 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds
2023-11-30 23:42:07.240 INFO (MainThread) [homeassistant.setup] Setting up auth
2023-11-30 23:42:07.241 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds
2023-11-30 23:42:07.248 INFO (MainThread) [homeassistant.setup] Setting up config
2023-11-30 23:42:07.257 INFO (MainThread) [homeassistant.setup] Setting up diagnostics
2023-11-30 23:42:07.266 INFO (MainThread) [homeassistant.setup] Setting up repairs
2023-11-30 23:42:07.266 INFO (MainThread) [homeassistant.setup] Setup of domain repairs took 0.0 seconds
2023-11-30 23:42:07.292 INFO (MainThread) [homeassistant.setup] Setup of domain image_upload took 0.1 seconds
2023-11-30 23:42:07.315 INFO (MainThread) [homeassistant.setup] Setting up file_upload
2023-11-30 23:42:07.316 INFO (MainThread) [homeassistant.setup] Setup of domain file_upload took 0.0 seconds
2023-11-30 23:42:07.318 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.1 seconds
2023-11-30 23:42:07.319 INFO (MainThread) [homeassistant.setup] Setup of domain diagnostics took 0.1 seconds
2023-11-30 23:42:07.321 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2023-11-30 23:42:07.321 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds
2023-11-30 23:42:07.322 INFO (MainThread) [homeassistant.setup] Setting up person
2023-11-30 23:42:07.324 INFO (SyncWorker_3) [homeassistant.loader] Loaded group from homeassistant.components.group
2023-11-30 23:42:07.356 INFO (MainThread) [homeassistant.setup] Setting up search
2023-11-30 23:42:07.356 INFO (MainThread) [homeassistant.setup] Setup of domain search took 0.0 seconds
2023-11-30 23:42:07.999 INFO (MainThread) [homeassistant.setup] Setting up analytics
2023-11-30 23:42:08.001 INFO (MainThread) [homeassistant.setup] Setup of domain analytics took 0.0 seconds
2023-11-30 23:42:08.003 INFO (MainThread) [homeassistant.setup] Setup of domain person took 0.7 seconds
2023-11-30 23:42:08.005 INFO (SyncWorker_4) [homeassistant.loader] Loaded hassio from homeassistant.components.hassio
2023-11-30 23:42:08.006 INFO (MainThread) [homeassistant.setup] Setting up onboarding
2023-11-30 23:42:08.007 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.0 seconds
2023-11-30 23:42:08.011 INFO (MainThread) [homeassistant.setup] Setting up frontend
2023-11-30 23:42:08.014 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds
2023-11-30 23:42:08.016 INFO (MainThread) [homeassistant.bootstrap] Setting up recorder: {'recorder'}
2023-11-30 23:42:08.018 INFO (MainThread) [homeassistant.setup] Setting up recorder
2023-11-30 23:42:08.029 INFO (MainThread) [homeassistant.components.http] Now listening on port 8123
2023-11-30 23:42:08.099 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.1 seconds
2023-11-30 23:42:08.100 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 1: {'zeroconf', 'dhcp', 'usb', 'websocket_api', 'http', 'webhook', 'api', 'network', 'bluetooth', 'cloud', 'ssdp'}
2023-11-30 23:42:08.113 INFO (MainThread) [homeassistant.setup] Setting up webhook
2023-11-30 23:42:08.114 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds
2023-11-30 23:42:08.172 INFO (MainThread) [homeassistant.setup] Setting up dhcp
2023-11-30 23:42:08.173 INFO (MainThread) [homeassistant.setup] Setup of domain dhcp took 0.0 seconds
2023-11-30 23:42:08.195 INFO (MainThread) [homeassistant.setup] Setting up usb
2023-11-30 23:42:08.196 INFO (MainThread) [homeassistant.setup] Setup of domain usb took 0.0 seconds
2023-11-30 23:42:08.199 INFO (MainThread) [homeassistant.setup] Setting up network
2023-11-30 23:42:08.200 INFO (MainThread) [homeassistant.setup] Setup of domain network took 0.0 seconds
2023-11-30 23:42:08.204 INFO (SyncWorker_0) [homeassistant.loader] Loaded google_assistant from homeassistant.components.google_assistant
2023-11-30 23:42:08.204 INFO (SyncWorker_0) [homeassistant.loader] Loaded alexa from homeassistant.components.alexa
2023-11-30 23:42:08.206 INFO (SyncWorker_2) [homeassistant.loader] Loaded camera from homeassistant.components.camera
2023-11-30 23:42:08.370 INFO (MainThread) [homeassistant.setup] Setting up bluetooth
2023-11-30 23:42:08.418 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
2023-11-30 23:42:08.424 INFO (SyncWorker_4) [homeassistant.loader] Loaded media_player from homeassistant.components.media_player
2023-11-30 23:42:08.426 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 0.0 seconds
2023-11-30 23:42:08.450 INFO (MainThread) [homeassistant.components.zeroconf] Starting Zeroconf broadcast
2023-11-30 23:42:08.452 INFO (MainThread) [homeassistant.setup] Setup of domain bluetooth took 0.1 seconds
2023-11-30 23:42:08.930 INFO (MainThread) [homeassistant.setup] Setting up cloud
2023-11-30 23:42:09.052 INFO (MainThread) [homeassistant.setup] Setting up ssdp
2023-11-30 23:42:09.071 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.1 seconds
2023-11-30 23:42:09.077 INFO (MainThread) [homeassistant.setup] Setup of domain ssdp took 0.0 seconds
2023-11-30 23:42:09.083 INFO (MainThread) [homeassistant.components.websocket_api.http.connection] [140080888064960] Received unknown command: history/stream
2023-11-30 23:42:09.093 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'persistent_notification', 'input_text', 'scene', 'default_config', 'trace', 'radio_browser', 'input_boolean', 'input_select', 'file_upload', 'device_automation', 'system_health', 'blueprint', 'google_translate', 'stt', 'tts', 'uptime', 'input_datetime', 'search', 'image_upload', 'repairs', 'analytics', 'zone', 'person', 'lovelace', 'homeassistant_alerts', 'auth', 'application_credentials', 'diagnostics', 'input_number', 'config', 'history', 'wake_word', 'shopping_list', 'onboarding', 'script', 'hacs', 'stream', 'assist_pipeline', 'virtual', 'sun', 'media_source', 'schedule', 'mobile_app', 'conversation', 'input_button', 'logbook', 'device_tracker', 'my', 'timer', 'hardware', 'map', 'tag', 'counter', 'energy', 'automation'}
2023-11-30 23:42:09.102 INFO (MainThread) [homeassistant.setup] Setting up input_text
2023-11-30 23:42:09.104 INFO (MainThread) [homeassistant.setup] Setting up scene
2023-11-30 23:42:09.106 INFO (MainThread) [homeassistant.setup] Setting up trace
2023-11-30 23:42:09.106 INFO (MainThread) [homeassistant.setup] Setup of domain trace took 0.0 seconds
2023-11-30 23:42:09.110 INFO (MainThread) [homeassistant.setup] Setting up input_boolean
2023-11-30 23:42:09.112 INFO (MainThread) [homeassistant.setup] Setting up input_select
2023-11-30 23:42:09.113 INFO (MainThread) [homeassistant.setup] Setting up blueprint
2023-11-30 23:42:09.113 INFO (MainThread) [homeassistant.setup] Setup of domain blueprint took 0.0 seconds
2023-11-30 23:42:09.114 INFO (MainThread) [homeassistant.setup] Setting up stt
2023-11-30 23:42:09.115 INFO (MainThread) [homeassistant.setup] Setup of domain stt took 0.0 seconds
2023-11-30 23:42:09.116 INFO (MainThread) [homeassistant.setup] Setting up tts
2023-11-30 23:42:09.118 INFO (MainThread) [homeassistant.setup] Setting up uptime
2023-11-30 23:42:09.118 INFO (MainThread) [homeassistant.setup] Setup of domain uptime took 0.0 seconds
2023-11-30 23:42:09.128 INFO (MainThread) [homeassistant.setup] Setting up input_datetime
2023-11-30 23:42:09.133 INFO (MainThread) [homeassistant.setup] Setting up zone
2023-11-30 23:42:09.153 INFO (MainThread) [homeassistant.setup] Setting up homeassistant_alerts
2023-11-30 23:42:09.154 INFO (MainThread) [homeassistant.setup] Setup of domain homeassistant_alerts took 0.0 seconds
2023-11-30 23:42:09.156 INFO (MainThread) [homeassistant.setup] Setting up input_number
2023-11-30 23:42:09.193 INFO (MainThread) [homeassistant.setup] Setting up history
2023-11-30 23:42:09.194 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds
2023-11-30 23:42:09.195 INFO (MainThread) [homeassistant.setup] Setting up wake_word
2023-11-30 23:42:09.195 INFO (MainThread) [homeassistant.setup] Setup of domain wake_word took 0.0 seconds
2023-11-30 23:42:09.196 INFO (MainThread) [homeassistant.setup] Setting up virtual
2023-11-30 23:42:09.196 DEBUG (MainThread) [custom_components.virtual] setup
2023-11-30 23:42:09.196 INFO (MainThread) [homeassistant.setup] Setup of domain virtual took 0.0 seconds
2023-11-30 23:42:09.198 INFO (MainThread) [homeassistant.setup] Setting up sun
2023-11-30 23:42:09.198 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.0 seconds
2023-11-30 23:42:09.201 INFO (MainThread) [homeassistant.setup] Setting up schedule
2023-11-30 23:42:09.202 INFO (MainThread) [homeassistant.setup] Setting up conversation
2023-11-30 23:42:09.203 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds
2023-11-30 23:42:09.204 INFO (MainThread) [homeassistant.setup] Setting up input_button
2023-11-30 23:42:09.205 INFO (MainThread) [homeassistant.setup] Setting up timer
2023-11-30 23:42:09.224 INFO (MainThread) [homeassistant.setup] Setting up hardware
2023-11-30 23:42:09.256 INFO (MainThread) [homeassistant.setup] Setting up tag
2023-11-30 23:42:09.259 INFO (MainThread) [homeassistant.setup] Setting up counter
2023-11-30 23:42:09.813 INFO (MainThread) [homeassistant.setup] Setting up radio_browser
2023-11-30 23:42:09.813 INFO (MainThread) [homeassistant.setup] Setup of domain radio_browser took 0.0 seconds
2023-11-30 23:42:09.815 INFO (MainThread) [homeassistant.setup] Setup of domain hardware took 0.6 seconds
2023-11-30 23:42:09.823 INFO (MainThread) [homeassistant.setup] Setting up system_health
2023-11-30 23:42:09.850 INFO (MainThread) [homeassistant.setup] Setting up application_credentials
2023-11-30 23:42:09.857 INFO (MainThread) [homeassistant.setup] Setting up shopping_list
2023-11-30 23:42:09.857 INFO (MainThread) [homeassistant.setup] Setup of domain shopping_list took 0.0 seconds
2023-11-30 23:42:09.857 INFO (MainThread) [homeassistant.setup] Setting up script
2023-11-30 23:42:09.860 INFO (MainThread) [homeassistant.setup] Setting up media_source
2023-11-30 23:42:09.877 INFO (MainThread) [homeassistant.setup] Setting up logbook
2023-11-30 23:42:09.905 INFO (MainThread) [homeassistant.setup] Setting up my
2023-11-30 23:42:09.905 INFO (MainThread) [homeassistant.setup] Setup of domain my took 0.0 seconds
2023-11-30 23:42:09.925 INFO (MainThread) [homeassistant.setup] Setting up map
2023-11-30 23:42:09.926 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.0 seconds
2023-11-30 23:42:09.927 INFO (MainThread) [homeassistant.setup] Setting up energy
2023-11-30 23:42:09.927 INFO (MainThread) [homeassistant.setup] Setup of domain energy took 0.0 seconds
2023-11-30 23:42:09.949 INFO (MainThread) [homeassistant.setup] Setup of domain input_text took 0.8 seconds
2023-11-30 23:42:09.951 INFO (MainThread) [homeassistant.setup] Setup of domain input_boolean took 0.8 seconds
2023-11-30 23:42:09.953 INFO (MainThread) [homeassistant.setup] Setup of domain input_select took 0.8 seconds
2023-11-30 23:42:09.955 INFO (SyncWorker_0) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
2023-11-30 23:42:09.958 INFO (MainThread) [homeassistant.setup] Setup of domain input_datetime took 0.8 seconds
2023-11-30 23:42:09.996 INFO (MainThread) [homeassistant.setup] Setting up google_translate
2023-11-30 23:42:09.996 INFO (MainThread) [homeassistant.setup] Setup of domain google_translate took 0.0 seconds
2023-11-30 23:42:09.999 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.1 seconds
2023-11-30 23:42:10.014 INFO (MainThread) [homeassistant.setup] Setup of domain system_health took 0.2 seconds
2023-11-30 23:42:10.015 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 0.9 seconds
2023-11-30 23:42:10.015 INFO (MainThread) [homeassistant.setup] Setup of domain media_source took 0.2 seconds
2023-11-30 23:42:10.016 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.1 seconds
2023-11-30 23:42:10.036 INFO (MainThread) [homeassistant.setup] Setup of domain input_number took 0.9 seconds
2023-11-30 23:42:10.039 INFO (MainThread) [homeassistant.setup] Setup of domain schedule took 0.8 seconds
2023-11-30 23:42:10.040 INFO (MainThread) [homeassistant.setup] Setup of domain input_button took 0.8 seconds
2023-11-30 23:42:10.041 INFO (MainThread) [homeassistant.setup] Setup of domain timer took 0.8 seconds
2023-11-30 23:42:10.110 INFO (MainThread) [homeassistant.setup] Setting up sensor
2023-11-30 23:42:10.111 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.0 seconds
2023-11-30 23:42:10.113 INFO (SyncWorker_4) [homeassistant.loader] Loaded todo from homeassistant.components.todo
2023-11-30 23:42:10.116 INFO (MainThread) [homeassistant.setup] Setting up automation
2023-11-30 23:42:10.122 INFO (MainThread) [homeassistant.setup] Setting up assist_pipeline
2023-11-30 23:42:10.124 INFO (MainThread) [homeassistant.setup] Setup of domain tag took 0.9 seconds
2023-11-30 23:42:10.126 INFO (MainThread) [homeassistant.setup] Setup of domain counter took 0.9 seconds
2023-11-30 23:42:10.130 INFO (MainThread) [homeassistant.setup] Setup of domain application_credentials took 0.3 seconds
2023-11-30 23:42:10.212 INFO (MainThread) [homeassistant.setup] Setting up hacs
2023-11-30 23:42:10.212 INFO (MainThread) [homeassistant.setup] Setup of domain hacs took 0.0 seconds
2023-11-30 23:42:10.227 INFO (MainThread) [custom_components.hacs]
-------------------------------------------------------------------
HACS (Home Assistant Community Store)
Version: 1.33.0
This is a custom integration
If you have any issues with this you need to open an issue here:
https://github.com/hacs/integration/issues
-------------------------------------------------------------------
2023-11-30 23:42:10.233 INFO (MainThread) [homeassistant.setup] Setup of domain assist_pipeline took 0.1 seconds
2023-11-30 23:42:10.256 INFO (MainThread) [homeassistant.setup] Setting up todo
2023-11-30 23:42:10.257 INFO (MainThread) [homeassistant.setup] Setup of domain todo took 0.0 seconds
2023-11-30 23:42:10.260 INFO (MainThread) [homeassistant.setup] Setting up stream
2023-11-30 23:42:10.340 INFO (MainThread) [homeassistant.setup] Setup of domain stream took 0.1 seconds
2023-11-30 23:42:10.343 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.2 seconds
2023-11-30 23:42:10.355 INFO (SyncWorker_5) [homeassistant.loader] Loaded notify from homeassistant.components.notify
2023-11-30 23:42:10.362 INFO (MainThread) [homeassistant.setup] Setup of domain zone took 1.2 seconds
2023-11-30 23:42:10.413 INFO (MainThread) [homeassistant.setup] Setting up mobile_app
2023-11-30 23:42:10.418 INFO (MainThread) [homeassistant.setup] Setting up device_tracker
2023-11-30 23:42:10.424 INFO (MainThread) [homeassistant.setup] Setup of domain mobile_app took 0.0 seconds
2023-11-30 23:42:10.426 INFO (MainThread) [homeassistant.components.scene] Setting up scene.homeassistant
2023-11-30 23:42:10.428 INFO (MainThread) [homeassistant.setup] Setting up notify
2023-11-30 23:42:10.429 INFO (MainThread) [homeassistant.setup] Setup of domain notify took 0.0 seconds
2023-11-30 23:42:10.433 INFO (MainThread) [homeassistant.setup] Setup of domain scene took 1.3 seconds
2023-11-30 23:42:10.433 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.virtual
2023-11-30 23:42:10.434 INFO (MainThread) [custom_components.virtual.device_tracker] setting persistent device_tracker.phone_virtual to britain
2023-11-30 23:42:10.453 INFO (MainThread) [homeassistant.components.notify] Setting up notify.mobile_app
2023-11-30 23:42:10.455 INFO (MainThread) [homeassistant.setup] Setup of domain device_tracker took 0.0 seconds
2023-11-30 23:42:10.456 INFO (SyncWorker_5) [custom_components.virtual.device_tracker] moving device_tracker.phone_virtual to britain
2023-11-30 23:42:10.463 INFO (MainThread) [custom_components.hacs] <HacsData restore> Restore started
2023-11-30 23:42:10.725 INFO (MainThread) [custom_components.hacs] <HacsData restore> Restore done
2023-11-30 23:42:10.730 INFO (MainThread) [homeassistant.components.tts] Setting up tts.google_translate
2023-11-30 23:42:10.731 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.uptime
2023-11-30 23:42:10.732 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.sun
2023-11-30 23:42:10.732 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.energy
2023-11-30 23:42:10.733 INFO (MainThread) [homeassistant.components.todo] Setting up todo.shopping_list
2023-11-30 23:42:10.819 INFO (MainThread) [homeassistant.setup] Setting up default_config
2023-11-30 23:42:10.820 INFO (SyncWorker_1) [homeassistant.loader] Loaded backup from homeassistant.components.backup
2023-11-30 23:42:10.894 INFO (MainThread) [homeassistant.setup] Setting up backup
2023-11-30 23:42:10.894 INFO (MainThread) [homeassistant.setup] Setup of domain backup took 0.0 seconds
2023-11-30 23:42:10.911 INFO (MainThread) [homeassistant.setup] Setup of domain default_config took 0.1 seconds
2023-11-30 23:42:11.090 INFO (MainThread) [custom_components.hacs] Enable category: integration
2023-11-30 23:42:11.091 INFO (MainThread) [custom_components.hacs] Enable category: plugin
2023-11-30 23:42:11.091 INFO (MainThread) [custom_components.hacs] Enable category: theme
2023-11-30 23:42:11.095 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.hacs
2023-11-30 23:42:11.097 INFO (MainThread) [custom_components.hacs] Stage changed: setup
2023-11-30 23:42:11.097 INFO (MainThread) [custom_components.hacs] Stage changed: waiting
2023-11-30 23:42:11.097 INFO (MainThread) [custom_components.hacs] Setup complete, waiting for Home Assistant before startup tasks starts
2023-11-30 23:42:11.101 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 4.01s
2023-11-30 23:42:11.182 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2023-11-30 23:42:11.185 INFO (MainThread) [custom_components.hacs] Stage changed: startup
2023-11-30 23:42:11.203 INFO (MainThread) [custom_components.hacs] Loading removed repositories
2023-11-30 23:42:11.237 INFO (SyncWorker_0) [homeassistant.loader] Loaded homekit from homeassistant.components.homekit
2023-11-30 23:42:11.455 INFO (SyncWorker_3) [homeassistant.loader] Loaded apple_tv from homeassistant.components.apple_tv
2023-11-30 23:42:11.476 INFO (SyncWorker_1) [homeassistant.loader] Loaded ffmpeg from homeassistant.components.ffmpeg
2023-11-30 23:42:11.735 INFO (MainThread) [homeassistant.setup] Setting up ffmpeg
2023-11-30 23:42:11.745 INFO (MainThread) [custom_components.hacs] Loading known repositories
2023-11-30 23:42:11.756 INFO (SyncWorker_5) [homeassistant.loader] Loaded kodi from homeassistant.components.kodi
2023-11-30 23:42:11.802 INFO (SyncWorker_3) [homeassistant.loader] Loaded upnp from homeassistant.components.upnp
2023-11-30 23:42:11.975 INFO (MainThread) [homeassistant.setup] Setup of domain ffmpeg took 0.2 seconds
2023-11-30 23:42:12.445 INFO (MainThread) [custom_components.hacs] Starting recurring background task for downloaded repositories
2023-11-30 23:42:12.446 INFO (MainThread) [custom_components.hacs] Stage changed: running
v0.9.0b11 Do not observe the issue. Config:
version: 1
devices:
some_tracker:
- platform: device_tracker
name: some_tracker
persistent: true
Off-topic: inability to define coordinates for a virtual.move
service make me not to use the Virtual integration for tracker.
Assume I have these trackers:
which are used here:
These
device_tracker
entities may be set by adevice_tracker.see
service (latitude, longitude, gps_accuracy as input values). Assume thatdevice_tracker.iphone_1
location is within Home, thedevice_tracker.iphone_2
location is within some another zone.And one more
person
entity:based on a tracker provided by some real GPS integration (like Life360, Traccar). Assume that this real tracker points to some not-home zone.
Here how all these entities shown on History page during HA reboot:
The 1st & 3rd
person
entities (virtual in Home, real gps in some another zone) are displayed as: i.e. a state is not changed during a reboot. (note: ofc the 3rdperson
is not of green color since it is not Home - but the main point is that the bar is w/o gaps)But the 2nd
person
entity (virtual in some zone) becomesunknown
during reboot: and later becomes same as it was before the reboot (probably because a source virtual tracker is persistent).As for
device_tracker
virtual entities, they are displayed like (blue or green) i.e. no "gaps" during HA reboot.Now I wonder why the 2nd
person
entity becomesunknown
during reboot. Note that it happens only if a virtual tracker set to not-home location. Besides, thedevice_tracker
does not have "gaps" during a reboot. It could probably have no coordinates at this time; or this could happen since the Virtual platform may not be ready yet (althoug similar does not happen to the real GPS integration, particularly Traccar).