Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom device encountered issues #1541

Open
KleinerSource opened this issue Jan 15, 2025 · 5 comments
Open

Custom device encountered issues #1541

KleinerSource opened this issue Jan 15, 2025 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@KleinerSource
Copy link

KleinerSource commented Jan 15, 2025

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
image

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

@KleinerSource
Copy link
Author

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 AlexxIT added the enhancement New feature or request label Jan 15, 2025
@AlexxIT AlexxIT self-assigned this Jan 15, 2025
@KleinerSource
Copy link
Author

KleinerSource commented Jan 16, 2025

@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 )

image

If there are more than one, the work will be abnormal

1 cover is working (use class cover )

image

If there are more than one, the work will be abnormal

1 climate will cause complete failure

image
image

But if all types use switch number , they can all work normally
image

@KleinerSource
Copy link
Author

xiaomi_gateway not support single device multi-channel dimming and cover?

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 16, 2025

This is converter for new device. So it's enhancement. At this time, multiple lights/cover/climate in one unit are not supported.

@KleinerSource
Copy link
Author

ok thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants