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 Unknown Mesh Single Wall Switch #1068

Closed
vitaxiao opened this issue Jun 5, 2023 · 3 comments
Closed

Add Unknown Mesh Single Wall Switch #1068

vitaxiao opened this issue Jun 5, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@vitaxiao
Copy link

vitaxiao commented Jun 5, 2023

Trying to add support for this Wall Switch, channel control works fine, however I am not able to make the button event work under wireless and scene mode in HA.
Tried different value for "mi" and "value", but no luck. How can I find the right value to use ?

https://home.miot-spec.com/spec?type=urn:miot-spec-v2:device:switch:0000A003:frfox-bl01:1:0000C808

{
    7855: ["frfox", "Mesh Single Wall Switch", "frfox.switch.bl01"],
    "spec": [
        Converter("channel", "switch", mi="2.p.1"),
        MapConv("mode", "select", mi="2.p.2", map={ 0: "off", 1: "wireless", 2: "flex", 3: "scene" }),
        ButtonMIConv("button", mi="3.e.1", value=1),  # Doesn't work
    ]
}
@AlexxIT AlexxIT changed the title Add button event support for a "Mesh Single Wall Switch" Add Unknown Mesh Single Wall Switch Jun 5, 2023
@AlexxIT AlexxIT added the enhancement New feature or request label Jun 5, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jun 5, 2023

You miss the Action sensor, which will contain the fact of pressing the button

@vitaxiao
Copy link
Author

vitaxiao commented Jun 5, 2023

Worked after adding action sensor !, thank you AlexxIT !

{
7855: ["frfox", "Mesh Single Wall Switch", "frfox.switch.bl01"],
"spec": [
Converter("channel", "switch", mi="2.p.1"),
Converter("action", "sensor", enabled=False),
MapConv("mode", "select", mi="2.p.2", map={ 0: "off", 1: "wireless", 2: "flex", 3: "scene" }),
ButtonMIConv("button", mi="3.e.1", value=1), # single
]
}

@vitaxiao vitaxiao closed this as completed Jun 5, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jun 12, 2023

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