Skip to content

Issue with Xiaomi Miio gateway Integrations ZNDMWG03LM #864

Closed
@a007007007csy

Description

@a007007007csy

Describe the bug
When I tried to add xiaomi_miio integration, no issue pop up.
But there was no new device or entity showed on the list which was connected to the gateway.
After that, I checked home-assistant.log, It showed issues.
Gateway's key and IP address were correctly submitted.

Version information (please complete the following information):

  • OS: 5.4.52 (x86)
  • python-miio: 0.5.3

Device information:
If the issue is specific to a device [Use miiocli device --ip <ip address> --token <token>]: THIS STEP CANNOT COMPELETE BECOUSE OF ERROR: MISSING COMMAND

  • Model: ZNDMWG03LM
  • Hardware version: unknown
  • Firmware version: 1.4.4_0003 (newest 1.4.5_0016)

To Reproduce
Steps to reproduce the behavior:

  1. Add new integration, fill up correct ip and token, will be shown as adding successful.
  2. There will be no new entity or device found
  3. Hass's log will produce error about this gateway, every time restart hass service.

Expected behavior
The devices which connected to the gateway should be shown on the list.

Console output

2020-11-17 13:10:18 ERROR (SyncWorker_20) [miio.miioprotocol] Got error when receiving: timed out
2020-11-17 13:10:18 ERROR (MainThread) [homeassistant.components.xiaomi_miio.gateway] DeviceException during setup of xiaomi gateway with host 192.168.1.254
2020-11-17 13:10:39 ERROR (MainThread) [homeassistant.components.xiaomi_miio.gateway] DeviceException during setup of xiaomi gateway with host 192.168.1.254
2020-11-17 13:10:39 ERROR (MainThread) [homeassistant.components.xiaomi_miio.gateway] DeviceException during setup of xiaomi gateway with host 192.168.1.254
2020-11-17 14:08:34 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 119, in _handle_refresh_interval
await self.async_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 193, in async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 223, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 322, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/weather/__init__.py", line 183, in state_attributes
forecast_entry[ATTR_FORECAST_TEMP],
KeyError: 'temperature'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions