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 support for Xiaomi hoto.light.lamp #1387

Merged
merged 2 commits into from
Sep 4, 2024
Merged

Conversation

ABUAIJUTIE
Copy link
Contributor

@ABUAIJUTIE ABUAIJUTIE commented Jun 22, 2024

Add support for Xiaomi Mijia Camping Lantern hoto.light.lamp

{ 
    # https://home.miot-spec.com/spec/hoto.light.lamp
    9387: ["Xiaomi", "Multifunctional Camping Lantern", "hoto.light.lamp"],
    "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=5000),
        MathConv("color", "number", mi="2.p.4", min=1, max=16777215),
        MapConv("mode", "select", mi="2.p.5", map={1: "Auto", 2: "Day", 3: "Color", 4: "Warmth", 5: "Leisure"}),
        BaseConv("battery", "sensor", mi="3.p.1"), 
        MapConv("main_ charging_state", "sensor", mi="3.p.2", map={0: "Not Plug", 1: "Plug In"}), 
        MapConv("sub_ charging_state", "sensor", mi="3.p.3", map={0: "No Equipment", 1: "Charging", 2: "Full", 3: "Inserted Without Charge"}), 
        BoolConv("delay_switch", "switch", mi="4.p.1"),
        MathConv("delay_time", "number", mi="4.p.2", min=1, max=60), 
    ],
}, 
hoto.light.lamp

Add support for Xiaomi Mijia Camping Lantern hoto.light.lamp
@AlexxIT AlexxIT added the enhancement New feature or request label Sep 4, 2024
@AlexxIT AlexxIT added this to the v4.0.6 milestone Sep 4, 2024
@AlexxIT AlexxIT merged commit 7eca94d into AlexxIT:master Sep 4, 2024
1 of 2 checks passed
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 4, 2024

Thanks!

AlexxIT added a commit that referenced this pull request Sep 4, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 4, 2024

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

Successfully merging this pull request may close these issues.

2 participants