al-one / hass-xiaomi-miot

Automatic integrate all Xiaomi devices to HomeAssistant via miot-spec, support Wi-Fi, BLE, ZigBee devices. 小米米家智能家居设备接入Hass集成
https://miot-spec.com
Apache License 2.0
4.59k stars 654 forks source link

Local devices not working #391

Closed TheLordVader closed 2 years ago

TheLordVader commented 2 years ago

zhimi.fan.za4 by zhimi

and

zhimi.airpurifier.mb4 by zhimi

became unavailable upon updating to 0.5.0. Cloud devices connected via Xiaomi hub/gateway works fine. I tried Master branch and even downgrading to v0.4.17 without success. I have renewed all devices but it is not helping.

al-one commented 2 years ago

Any error/warning logs ?

TheLordVader commented 2 years ago

Yes.

`Logger: homeassistant.components.fan Source: helpers/template.py:408 Integration: Fan (documentation, issues) First occurred: 16:37:05 (3 occurrences) Last logged: 16:48:32

xiaomi_miot: Error on device update! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 406, in async_render render_result = _render_with_context(self.template, compiled, kwargs) File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1771, in _render_with_context return template.render(kwargs) File "/usr/local/lib/python3.9/site-packages/jinja2/environment.py", line 1291, in render self.environment.handle_exception() File "/usr/local/lib/python3.9/site-packages/jinja2/environment.py", line 925, in handle_exception raise rewrite_traceback_stack(source=source) File "