本帖最后由 cuiyilin 于 2021-1-24 00:24 编辑
设备model:yeelink.light.strip6
配置:
light:
- platform: xiaomi_miot_raw
name: 床底灯
host: 192.168.50.xxx
token: 923f2d8ee82846a335766xxxxxxx
mapping:
switch_status:
siid: 2
piid: 1
brightness:
siid: 2
piid: 2
color_temperature:
siid: 2
piid: 3
params:
switch_status:
power_on: True
power_off: False
brightness:
value_range: [1, 100, 1]
color_temperature:
value_range: [1, 16777215, 1]
scan_interval: 10
为什么实体注册表里显示不可用?日志报错如下:Logger: custom_components.xiaomi_miot_raw.light
Source: custom_components/xiaomi_miot_raw/light.py:235
Integration: xiaomi_miot_raw ([color=var(--primary-color)]documentation, [color=var(--primary-color)]issues)
First occurred: 上午12:13:55 (53 occurrences)
Last logged: 上午12:22:39 Got exception while fetching the state: {'code': -9999, 'message': 'user ack timeout'}
|