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

PTX BLE Wireless Tripple Switch model 14610 recognized but not working #1358

Open
lj4o7 opened this issue May 14, 2024 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@lj4o7
Copy link

lj4o7 commented May 14, 2024

<!--

  • Write issue ONLY in English
  • Search if similar issue already exist, also check closed issues, do not create duplicates
  • Check Integration errors in Hass logs (Configuration > Logs), maybe answer there
  • Check Integration debug (Configuration > Integrations > Xiaomi Gateway 3 > Configure > Debug) for something useful
  • Read the readme carefully, maybe the answer is there
  • Check if you using supported gateway firmware
    -->
    xiaomi_gateway3-8b5e38ddf230c90ec52aa8832d1dd9be-影音系统-bb4ba3cd5151b02c47476c63f74243b8.json.txt

pressing actions cannot be logged by HA.

@lj4o7
Copy link
Author

lj4o7 commented May 21, 2024

working now after adding these to xiaomi_gateway3.py

DEVICES = [{
14610: ["PTX", "Triple Wireless Switch", "PTX-AK3-QMIMC"],
"spec": [
BaseConv("action", "sensor"),
ConstConv("action", mi="2.e.1012", value=BUTTON_1_SINGLE),
ConstConv("action", mi="4.e.1012", value=BUTTON_2_SINGLE),
ConstConv("action", mi="5.e.1012", value=BUTTON_3_SINGLE),
ConstConv("action", mi="2.e.1014", value=BUTTON_1_HOLD),
ConstConv("action", mi="4.e.1014", value=BUTTON_2_HOLD),
ConstConv("action", mi="5.e.1014", value=BUTTON_3_HOLD),
],
}] + DEVICES

@lj4o7 lj4o7 closed this as completed May 21, 2024
@AlexxIT AlexxIT added the enhancement New feature or request label May 24, 2024
@AlexxIT AlexxIT self-assigned this May 24, 2024
@AlexxIT AlexxIT reopened this May 24, 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