- 积分
- 241
- 金钱
- 226
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 241
- 金钱
- 226
- HASS币
- 0
|
发表于 2024-6-5 19:10:47
|
显示全部楼层
几个排查方向
- 删了`射灯1`实体,再重载Gateway3集成试试?
- 根据Gateway3文档https://github.com/AlexxIT/XiaomiGateway3/wiki/Converters,DEVICES后面不是`+=`而是`=`
- xiaomi_gateway3.py文件有没有放对位置?
- xiaomi_gateway3.py里有在文件头加上`from custom_components.xiaomi_gateway3.core.devices import *`吗?
- 看了一下文档(https://home.miot-spec.com/spec?type=urn:miot-spec-v2:device:light:0000A001:wlg-wy0a01:1:0000C802),亮度和范围都没写对。
试试看这个
from custom_components.xiaomi_gateway3.core.devices import *
DEVICES = [{
16108: ["WLG", "Smart Light", "wlg.light.wy0a01"],
"spec": [
BaseConv("light", "light", mi="2.p.1"),
BrightnessConv("brightness", mi="2.p.2", max=100),
ColorTempKelvin("color_temp", mi="2.p.3", mink=2700, maxk=6500),
],
}] + DEVICES
|
|