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

Closed
lj4o7 opened this issue May 14, 2024 · 2 comments
Closed

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

lj4o7 opened this issue May 14, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

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
@flyibeat
Copy link
Contributor

flyibeat commented Jul 1, 2024

resolve #1389

@AlexxIT AlexxIT added this to the v4.0.8 milestone Dec 27, 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