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 PTX Smart Tripl Wall Switch(090615.switch.x6kw3) #1515

Open
qjrxsoft02 opened this issue Dec 7, 2024 · 0 comments
Open

Add support PTX Smart Tripl Wall Switch(090615.switch.x6kw3) #1515

qjrxsoft02 opened this issue Dec 7, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@qjrxsoft02
Copy link

qjrxsoft02 commented Dec 7, 2024

from custom_components.xiaomi_gateway3.core.devices import *

DEVICES = [{
    # https://home.miot-spec.com/spec?type=urn:miot-spec-v2:device:switch:0000A003:090615-x6kw3:1:0000C810
    11654: ["PTX", "Smart Tripl Wall Switch", "PTX-X62-NMIMC1", "090615.switch.x6kw3"],
    "spec": [
        BaseConv("action", "sensor"),
        ConstConv("action", mi="8.e.1", value=BUTTON_1_SINGLE),
        ConstConv("action", mi="8.e.2", value=BUTTON_2_SINGLE),
        ConstConv("action", mi="8.e.3", value=BUTTON_3_SINGLE),
        BaseConv("switch_1", "switch", mi="2.p.1"),
        BaseConv("switch_2", "switch", mi="3.p.1"),
        BaseConv("switch_3", "switch", mi="4.p.1"),
        BaseConv("backlight", "switch", mi="9.p.1"), # config
        MapConv("Mode_1", "select", mi="2.p.2", map={0: "Wired And Wireless", 1: "Wireless"}),
        MapConv("Mode_2", "select", mi="3.p.2", map={0: "Wired And Wireless", 1: "Wireless"})
        MapConv("Mode_3", "select", mi="4.p.2", map={0: "Wired And Wireless", 1: "Wireless"})
    ],
}] + DEVICES
@AlexxIT AlexxIT added the enhancement New feature or request label Dec 8, 2024
@AlexxIT AlexxIT self-assigned this Dec 8, 2024
@AlexxIT AlexxIT added this to the v4.0.8 milestone Dec 25, 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