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.5k stars 636 forks source link

实体不可用 #1057

Open applestroll opened 1 year ago

applestroll commented 1 year ago

Device model / 设备型号

xiaomi Miot auto

Component version / 插件版本

0.7.7

HA core version / HA版本

2023.3.4

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

所有通过xiaomi Miot auto添加的米家设备,都变成不可用,但是重新加载后又显示正常了,再过一阵子打开ui界面,或者重新进homeassistant就又不可用了,homeassistant跟hacs都是最新版本,xiaomi插件也都是最新版本,不需要更新! 但是本地token添加的都没有问题正常!

Entity attributes / 实体属性

无实体

Home Assistant Logs / 系统日志

此错误来自自定义集成。

Logger: custom_components.xiaomi_miot.light Source: custom_components/xiaomi_miot/init.py:1405 Integration: Xiaomi Miot Auto (documentation, issues) First occurred: 2023年3月14日 23:27:16 (2187 occurrences) Last logged: 17:40:21

主卧灯(lemesh.light.wy0c08): Got MiCloudException while fetching the state: Cannot execute request. service token or userId missing. Make sure to login., mapping: {'light.on': {'siid': 2, 'piid': 1}, 'light.brightness': {'siid': 2, 'piid': 2}, 'light.color_temperature': {'siid': 2, 'piid': 3}, 'light.mode': {'siid': 2, 'piid': 5}, 'remote.remote_switch': {'siid': 8, 'piid': 1}, 'remote.remote_ltype': {'siid': 8, 'piid': 4}, 'remote.remote_htype': {'siid': 8, 'piid': 5}, 'remote.remote_a': {'siid': 8, 'piid': 6}, 'remote.remote_b': {'siid': 8, 'piid': 7}, 'remote.remote_c': {'siid': 8, 'piid': 8}, 'remote.remote_d': {'siid': 8, 'piid': 9}, 'remote.remote_e': {'siid': 8, 'piid': 10}, 'remote.remote_f': {'siid': 8, 'piid': 11}, 'remote.remote_g': {'siid': 8, 'piid': 12}, 'remote.remote_h': {'siid': 8, 'piid': 13}, 'default': {'siid': 4, 'piid': 1}, 'default.light_save': {'siid': 4, 'piid': 2}, 'default.dimming': {'siid': 4, 'piid': 3}, 'default.inteligent_switch': {'siid': 4, 'piid': 4}, 'default.night_switch': {'siid': 4, 'piid': 5}}

al-one commented 1 year ago

Cannot execute request. service token or userId missing. Make sure to login.

登陆失效了,你需要进入 配置 > 设备与服务 > 集成 > Xiaomi Miot Auto > 选项 重新登录并保存。 hass-xiaomi-miot