- 积分
- 453
- 金钱
- 400
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 453
- 金钱
- 400
- HASS币
- 0
|
发表于 2022-9-15 08:52:51
|
显示全部楼层
本帖最后由 hbxgzhc2 于 2022-9-15 08:55 编辑
就是安装集成的时候,显示了位置,然后find服务也可以返回实时位置,几分钟之后,位置就一直不更新了
就是安装集成的时候,显示了位置,然后find服务也可以返回实时位置,几分钟之后,位置就一直不更新了,到现在都一直是几天前的位置。测试多次都是这样
Logger: homeassistant.core
Source: custom_components/xiaomi_cloud/device_tracker.py:98
Integration: Xiaomi Cloud (documentation, issues)
First occurred: 2022年9月13日 18:28:34 (113 occurrences)
Last logged: 2022年9月14日 11:06:18
Error executing service: <ServiceCall xiaomi_cloud.find (c:01GCWSCVTKG0X7KSQE0SNP037J)>
Error executing service: <ServiceCall xiaomi_cloud.find (c:01GCWSCW3CEJRZ5M7KSJ66CW2K)>
Error executing service: <ServiceCall xiaomi_cloud.find (c:01GCWSCZKZ9QYQKGAJEKQATESS)>
Error executing service: <ServiceCall xiaomi_cloud.find (c:01GCWSCZXX3AVVV6ZNVME6G2P4)>
Error executing service: <ServiceCall xiaomi_cloud.find (c:01GCWZBW9BH6JQWNGMQSC9D4NF)>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1722, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1741, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/xiaomi_cloud/__init__.py", line 85, in services
await coordinator._send_command({'service': 'find', 'data': {'imei': imei}})
File "/config/custom_components/xiaomi_cloud/__init__.py", line 330, in _send_command
await self.async_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_refresh
await self._async_refresh(log_failures=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 270, in _async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 533, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 571, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/device_tracker/config_entry.py", line 247, in state
if self.latitude is not None and self.longitude is not None:
File "/config/custom_components/xiaomi_cloud/device_tracker.py", line 98, in latitude
return self.coordinator.data[self._vin]["device_lat"]
IndexError: list index out of range
|
|