I can’t tell since when I got this error. Updating the raspi host nor hassio(docker) didn’t help.
Supervisor > Homeassistant Core 0.113.2
Log Details (ERROR)
Logger: homeassistant.components.vacuum
Source: components/xiaomi_miio/vacuum.py:481
Integration: Vacuum (documentation, issues)
First occurred: 9:35:48 AM (1 occurrences)
Last logged: 9:35:48 AM
xiaomi_miio: Error on device update
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 320, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 465, in async_device_update
await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/vacuum.py", line 481, in update
self._timers = self._vacuum.timer()
File "/usr/local/lib/python3.8/site-packages/miio/vacuum.py", line 377, in timer
timezone = self.timezone()
File "/usr/local/lib/python3.8/site-packages/miio/vacuum.py", line 552, in timezone
res = self.send("get_timezone")[0]
TypeError: 'int' object is not subscriptable
Configuration.yaml excerpts (I did install the remote after the vacuum, in case this relates at all):
vacuum:
- platform: xiaomi_miio
host: 192.168.178.21
token: mytoken
remote:
- platform: xiaomi_miio
host: 192.168.178.28
token: anothertoken
slot: 1
timeout: 30
# commands: ...
Running mirobo
on the raspi or the hassio docker instance works as well:
mirobo --ip 192.168.178.21 --token mytoken
State: Charging
Battery: 100 %
...
..
What else could I try?