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 Intelligent single plug(giot.plug.v6shsm ) #1511

Closed
qjrxsoft02 opened this issue Dec 7, 2024 · 2 comments
Closed

Add support Intelligent single plug(giot.plug.v6shsm ) #1511

qjrxsoft02 opened this issue Dec 7, 2024 · 2 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:outlet:0000A002:giot-v6shsm:1:0000D030
    16415: ["YuTai", "Intelligent single plug", "V6", "giot.plug.v6shsm"],
    "spec": [
        BaseConv("switch", "switch", mi="2.p.1"),
        BaseConv("inchingswitch", "switch", mi="6.p.1"),
        MapConv("power_on_state", "select", mi="2.p.5", map={0: "Off", 1: "On", 2: "Default"}),  # config
    ],
}] + DEVICES
@AlexxIT AlexxIT added the enhancement New feature or request label Dec 7, 2024
@AlexxIT AlexxIT self-assigned this Dec 7, 2024
@wangyz1997
Copy link
Contributor

wangyz1997 commented Dec 16, 2024

Done in #1518.

@AlexxIT AlexxIT added this to the v4.0.8 milestone Dec 16, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Dec 28, 2024

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

3 participants