Description
The problem
I am using an integration which should create a device tracker - but this didn't work. I investigated and I am able to reproduce the issue via developer tools - when I execute the service:
service: device_tracker.see
data:
dev_id: automower_none_170805572_164914249
location_name: home
gps:
- 51.509802
- -0.086692
the device_tracker is NOT created (checked also in the developer tools), but the logs show no errors (see logs below). Even when I filter the table states
for the entity_id
= "device_tracker.au" I get no result.
I found someone in the forum who tested the same call for me on his installation - the device tracker was created without any issue.
What is version of Home Assistant Core has the issue?
core-2021.4.6
version | core-2021.4.6 |
---|---|
installation_type | Home Assistant Container |
dev | false |
hassio | false |
docker | true |
virtualenv | false |
python_version | 3.8.7 |
os_name | Linux |
os_version | 4.4.59+ |
arch | x86_64 |
timezone | Europe/Vienna |
What was the last working version of Home Assistant Core?
Worked on my old instance (Raspberry), did never work on the new instance (Synology Diskstation - started with 2021.1.5)
What type of installation are you running?
Home Assistant Container
Integration causing the issue
device_tracker
Link to integration documentation on our website
https://www.home-assistant.io/integrations/device_tracker/
Example YAML snippet
service: device_tracker.see
data:
dev_id: automower_none_170805572_164914249
location_name: home
gps:
- 51.509802
- -0.086692
Anything in the logs that might be useful for us?
2021-05-04 12:37:49 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script
2021-05-04 12:37:49 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service
2021-05-04 12:37:49 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=device_tracker, service=see, service_data=dev_id=automower_none_170805572_164914249, location_name=home, gps=[51.509802, -0.086692]>
2021-05-04 12:37:49 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [140285126671952] Sending {"id": 100, "type": "result", "success": true, "result": {"context": {"id": "c759c548ac3f5f592f26496efd16017a", "parent_id": null, "user_id": "c0e5511bc631448c8ba9113a3ae03acb"}}}
Additional information
Discussion in the forum:
https://community.home-assistant.io/t/how-to-create-a-custom-device-tracker-from-gps-coordinates/142971/12?u=chrlipp