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 lemesh.remote.ts4 #1318

Closed
Marsmz opened this issue Apr 5, 2024 · 1 comment
Closed

Add support lemesh.remote.ts4 #1318

Marsmz opened this issue Apr 5, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Marsmz
Copy link

Marsmz commented Apr 5, 2024

I recently purchased a knob device, the model is https://home.miot-spec.com/spec/lemesh.remote.ts4. I found that the current version of gateway3 does not support this device. I tried to write a converter myself, and it seems that all the functions are working properly. I hope that support for this device can be added in future versions. Thank you.

{
    14456: ["LeMesh", "Scenario wireless knob switch K4", "lemesh.remote.ts4"],
    "spec": [
        BaseConv("battery", "sensor", mi="4.p.1003"),  # uint8
        BaseConv("action", "sensor"),
        MapConv("action", mi="5.e.1012.p.1", map={1: "knob_single", 2: BUTTON_1_SINGLE, 3: BUTTON_2_SINGLE, 4: BUTTON_3_SINGLE, 5: BUTTON_4_SINGLE, 6: "knob_increasing", 7: "knob_reduced", 8: "knob_hold_increasing", 9: "knob_hold_reduced"}),
        MapConv("action", mi="5.e.1013.p.1", map={1: "knob_double", 2: BUTTON_1_DOUBLE, 3: BUTTON_2_DOUBLE, 4: BUTTON_3_DOUBLE, 5: BUTTON_4_DOUBLE}),
        MapConv("action", mi="5.e.1014.p.1", map={1: "knob_hold", 2: BUTTON_1_HOLD, 3: BUTTON_2_HOLD, 4: BUTTON_3_HOLD, 5: BUTTON_4_HOLD}),
    ],
    "ttl": "6h"  # battery every 6 hours
}
@AlexxIT AlexxIT added the enhancement New feature or request label Apr 6, 2024
@AlexxIT AlexxIT self-assigned this Apr 6, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Apr 7, 2024

@AlexxIT AlexxIT closed this as completed Apr 7, 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

No branches or pull requests

2 participants