syssi / xiaomiplug

Xiaomi Mi Smart WiFi Socket integration for Home Assistant
Apache License 2.0
107 stars 26 forks source link

Xiaomi Chuangmi Wifi Plug v3 goes “Unavailable” after 5 minutes #11

Closed ghost closed 6 years ago

ghost commented 6 years ago

It’s the new plug with 2 USB ports, model: ZNCZ03CM

When HA start it’s working great, shows all data, but after 5 minutes goes “Unavailable” until next HA restart, and same again work 5 minutes and “Unavailable”, in MiHome app it works all the time

configuration.yaml:

switch:
  - platform: xiaomi_miio
    host: 10.0.0.1
    token: abcabcabcabcabcabcabcabc
    model: chuangmi.plug.v3

also tried without “model” line, same result

error in logs: Got exception while fetching the state: {'code': -30001, 'message': 'Resp invalid json.'} 12:42 PM components/switch/xiaomi_miio.py (ERROR)

syssi commented 6 years ago

This is a bug: https://community.home-assistant.io/t/xiaomi-chuangmi-wifi-plug-v3-goes-unavailable-after-5-minutes/54087/6

syssi commented 6 years ago

Fixed.