XiaomiGateway3
XiaomiGateway3 copied to clipboard
Custom device encountered issues
product https://home.miot-spec.com/spec/090615.switch.x1tpm
`
BaseConv("light_1", "switch", mi="10.p.1"),
MapConv("light_1_mode", "select", mi="10.p.2", map={1: "Warmth", 2: "Hospitality", 3: "Night", 4: "Lighting", 5: "Walk", 6: "Sleep"}),
MathConv("light_1_brightness", "number", mi="10.p.3", min=1, max=100),
MathConv("light_1_color", "number", mi="10.p.5", min=2700, max=6500),
BaseConv("light_2", "switch", mi="11.p.1"),
MapConv("light_2_mode", "select", mi="11.p.2", map={1: "Warmth", 2: "Hospitality", 3: "Night", 4: "Lighting", 5: "Walk", 6: "Sleep"}),
MathConv("light_2_brightness", "number", mi="11.p.3", min=1, max=100),
MathConv("light_2_color", "number", mi="11.p.5", min=2700, max=6500),
BaseConv("light_3", "switch", mi="12.p.1"),
MapConv("light_3_mode", "select", mi="12.p.2", map={1: "Warmth", 2: "Hospitality", 3: "Night", 4: "Lighting", 5: "Walk", 6: "Sleep"}),
MathConv("light_3_brightness", "number", mi="12.p.3", min=1, max=100),
MathConv("light_3_color", "number", mi="12.p.5", min=2700, max=6500),
`
is working
but
`
BaseConv("light_1", "light", mi="10.p.1"),
MapConv("light_1_mode", "select", mi="10.p.2", map={1: "Warmth", 2: "Hospitality", 3: "Night", 4: "Lighting", 5: "Walk", 6: "Sleep"}),
BrightnessConv("lilght_1_brightness", mi="11.p.3", max=100),
ColorTempKelvin("light_1_color_temp", mi="11.p.5", mink=2700, maxk=6500),
BaseConv("light_2", "light", mi="11.p.1"),
MapConv("light_2_mode", "select", mi="11.p.2", map={1: "Warmth", 2: "Hospitality", 3: "Night", 4: "Lighting", 5: "Walk", 6: "Sleep"}),
BrightnessConv("lilght_2_brightness", mi="11.p.3", max=100),
ColorTempKelvin("light_2_color_temp", mi="11.p.5", mink=2700, maxk=6500),
BaseConv("light_3", "light", mi="12.p.1"),
MapConv("light_3_mode", "select", mi="12.p.2", map={1: "Warmth", 2: "Hospitality", 3: "Night", 4: "Lighting", 5: "Walk", 6: "Sleep"}),
BrightnessConv("lilght_3_brightness", mi="11.p.3", max=100),
ColorTempKelvin("light_3_color_temp", mi="11.p.5", mink=2700, maxk=6500),
`
color temperature and brightness not working why?
This switch has 4 ways of light color adjustment p10 p11 p12 p13
is working
BaseConv("ac_switch", "switch", mi="18.p.1"),
MapConv("hvac_mode", "select", mi="18.p.2", map={0: "cool", 1: "heat", 2: "fan_only", 3: "dry"}),
MathConv("target_temp", "number", mi="18.p.4", min=16, max=32),
MapConv("fan_mode", "select", mi="18.p.12", map={0: "auto", 1: "low", 2: "medium", 3: "high"}),
not working
BaseConv("climate", "climate", mi="18.p.1"),
MapConv("hvac_mode", mi="18.p.2", map={0: "cool", 1: "heat", 2: "fan_only", 3: "dry"}),
MapConv("fan_mode", mi="18.p.12", map={0: "auto", 1: "low", 2: "medium", 3: "high"}),
BaseConv("target_temp", mi="18.p.4"),
@AlexxIT This is a problem, not enhancement
This product has 4 ways light 4 ways cover 1 climate 1 fan and more
I tested that 1 light is working (use class light )
If there are more than one, the work will be abnormal
1 cover is working (use class cover )
If there are more than one, the work will be abnormal
1 climate will cause complete failure
But if all types use switch number , they can all work normally
xiaomi_gateway not support single device multi-channel dimming and cover?
This is converter for new device. So it's enhancement. At this time, multiple lights/cover/climate in one unit are not supported.
ok thank you