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

设备几分钟就一次不可用 #1416

Open Wang1998 opened 10 months ago

Wang1998 commented 10 months ago

Device model / 设备型号

aimore.light.cw3201

Component version / 插件版本

No response

HA core version / HA版本

No response

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

image image

Entity attributes / 实体属性

min_color_temp_kelvin: 1700
max_color_temp_kelvin: 6993
min_mireds: 143
max_mireds: 588
supported_color_modes:
  - brightness
  - color_temp
  - onoff
model: aimore.light.cw3201
lan_ip: 192.168.100.21
mac_address: C8:5C:CC:EC:29:B2
entity_class: MiotLightEntity
miot_type: urn:miot-spec-v2:device:light:0000A001:aimore-cw3201:2
light.on: false
light.brightness: 1
light.color_temperature: 2972
light.flex_switch: true
light.default_power_on_state: 3
js.jianbian: 1
js.countdown: 0
state_updater: lan
sub_entities:
  - light-2.flex_switch-6
  - js-3.jianbian-1
  - js-3.countdown-2
  - light-2.default_power_on_state-8
friendly_name: 主卧智能冷暖吸顶灯 Light
supported_features: 0

Home Assistant Logs / 系统日志

Logger: custom_components.xiaomi_miot.light Source: custom_components/xiaomi_miot/init.py:1418 Integration: Xiaomi Miot Auto (documentation, issues) First occurred: 2023年11月15日 02:55:29 (7717 occurrences) Last logged: 15:05:31

主卧智能冷暖吸顶灯(aimore.light.cw3201): Got MiioException while fetching the state: No response from the device, mapping: {'light.on': {'siid': 2, 'piid': 1}, 'light.brightness': {'siid': 2, 'piid': 3}, 'light.color_temperature': {'siid': 2, 'piid': 5}, 'light.flex_switch': {'siid': 2, 'piid': 6}, 'light.default_power_on_state': {'siid': 2, 'piid': 8}, 'js.jianbian': {'siid': 3, 'piid': 1}, 'js.countdown': {'siid': 3, 'piid': 2}}, max_properties: 9/7 主卧智能冷暖吸顶灯(aimore.light.cw3201): Got MiioException while fetching the state: Unable to discover the device 192.168.100.21, mapping: {'light.on': {'siid': 2, 'piid': 1}, 'light.brightness': {'siid': 2, 'piid': 3}, 'light.color_temperature': {'siid': 2, 'piid': 5}, 'light.flex_switch': {'siid': 2, 'piid': 6}, 'light.default_power_on_state': {'siid': 2, 'piid': 8}, 'js.jianbian': {'siid': 3, 'piid': 1}, 'js.countdown': {'siid': 3, 'piid': 2}}, max_properties: 9/7 书房智能冷暖吸顶灯(aimore.light.cw3201): Got MiioException while fetching the state: Unable to discover the device 192.168.100.22, mapping: {'light.on': {'siid': 2, 'piid': 1}, 'light.brightness': {'siid': 2, 'piid': 3}, 'light.color_temperature': {'siid': 2, 'piid': 5}, 'light.flex_switch': {'siid': 2, 'piid': 6}, 'light.default_power_on_state': {'siid': 2, 'piid': 8}, 'js.jianbian': {'siid': 3, 'piid': 1}, 'js.countdown': {'siid': 3, 'piid': 2}}, max_properties: 9/7 次卧智能冷暖吸顶灯(aimore.light.cw3201): Got MiioException while fetching the state: Unable to discover the device 192.168.100.23, mapping: {'light.on': {'siid': 2, 'piid': 1}, 'light.brightness': {'siid': 2, 'piid': 3}, 'light.color_temperature': {'siid': 2, 'piid': 5}, 'light.flex_switch': {'siid': 2, 'piid': 6}, 'light.default_power_on_state': {'siid': 2, 'piid': 8}, 'js.jianbian': {'siid': 3, 'piid': 1}, 'js.countdown': {'siid': 3, 'piid': 2}}, max_properties: 9/7 书房智能冷暖吸顶灯(aimore.light.cw3201): Got MiioException while fetching the state: No response from the device, mapping: {'light.on': {'siid': 2, 'piid': 1}, 'light.brightness': {'siid': 2, 'piid': 3}, 'light.color_temperature': {'siid': 2, 'piid': 5}, 'light.flex_switch': {'siid': 2, 'piid': 6}, 'light.default_power_on_state': {'siid': 2, 'piid': 8}, 'js.jianbian': {'siid': 3, 'piid': 1}, 'js.countdown': {'siid': 3, 'piid': 2}}, max_properties: 9/7

al-one commented 10 months ago

Try config:

# configuration.yaml
xiaomi_miot:
  device_customizes:
    aimore.light.cw3201:
      exclude_miot_services: js

or

# configuration.yaml
xiaomi_miot:
  device_customizes:
    aimore.light.cw3201:
      chunk_properties: 1