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

Add Yeelight Mesh Light Strip C1 #1145

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

dixon777
Copy link
Contributor

@dixon777 dixon777 commented Sep 7, 2023

@AlexxIT AlexxIT merged commit 60b39a0 into AlexxIT:master Sep 20, 2023
1 check passed
@AlexxIT AlexxIT added this to the v3.3.3 milestone Sep 20, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 20, 2023

Thanks!

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 15, 2023

@xeyesen
Copy link

xeyesen commented Oct 19, 2023

@dixon777 The code you wrote cannot be used normally. I re-wrote it and the test is normal. Please upload it again. Thank you.

11901: ["Yeelight", "Mesh Light Strip C1", "yeelink.light.stripf"],
"spec": [
    Converter("light", "light", mi="2.p.1"),  # bool
    BrightnessConv("brightness", mi="2.p.2", parent="light", max=100),
    ColorTempKelvin("color_temp", mi="2.p.3", parent="light", mink=3000, maxk=6400),
    MapConv("mode", "select", mi="2.p.5", map={
        0: "WY", 4: "day", 5: "night", 8: "TV", 9: "reading", 10: "computer",
        11: "hospitality", 12: "entertainment", 13: "wakeup", 14: "dusk",
        15: "sleep"
    }),
    Converter("flex_switch", "switch", mi="2.p.6", enabled=False),  # uint8
    MapConv("power_on_state", "select", mi="2.p.7", map={0: "default", 1: "on"},
            enabled=False),
    BoolConv("save_state", "switch", mi="4.p.2"),
    MapConv("dimming", "select", mi="4.p.3", map={0: "Gradient", 1: "Immediately"}),
    BoolConv("night_light", "switch", mi="4.p.5"),
    # And more...
]

@dixon777
Copy link
Contributor Author

@xeyesen . I just checked that such issue has been fixed in v3.3.4. Please upgrade to at least v3.3.4.

@xeyesen
Copy link

xeyesen commented Oct 31, 2023

@dixon777
i upgrade to v3.3.4,still not working,the device id is 11901,not 4896.
xiaomi_gateway3-8f283d51a255a6ed290a62f0411d7b94.json.txt

@dixon777
Copy link
Contributor Author

dixon777 commented Nov 1, 2023

@xeyesen I have made a PR #1197 to correct this mistake.

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

Successfully merging this pull request may close these issues.

please support these two devices
3 participants