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

Document MQTT payload for Classic BT Inquiries Switch #1111

Closed
Matsuo3rd opened this issue Mar 17, 2022 · 2 comments
Closed

Document MQTT payload for Classic BT Inquiries Switch #1111

Matsuo3rd opened this issue Mar 17, 2022 · 2 comments
Labels

Comments

@Matsuo3rd
Copy link

Describe the bug
How can a non-HA users (eg. openHab) find BT Classic Inquiries Switch MQTT payload?

Expected behavior
Please document what is the expected payload for a MQTT command switching ON and OFF the BT Classic Inquiries Switch present at Topic "room-assistant/entity/WYZ/switch/bluetooth-classic-inquiries-switch"

Would also be great if someone could document it in this comment. Thanks.

@Matsuo3rd Matsuo3rd added the bug label Mar 17, 2022
@mKeRix
Copy link
Owner

mKeRix commented Mar 20, 2022

Are you using room-assistant with the pure mqtt integration or the homeAssistant integration + the compatibility layer in OpenHAB? The former actually doesn't support inputs yet, so this would be an enhancement request. For the latter, it expects a payload of on or off in the room-assistant/switch/<YOUR-ENTITY>/command topic.

@Matsuo3rd
Copy link
Author

Matsuo3rd commented Mar 20, 2022

Answering my own question after looking at the source code.
See: #151

  1. Home-Assistant Integration is mandatory for the BT Classic Inquiry Switch to operate
  2. Look at "home assistant/switch/+/+/config" topic to fetch switch command_topic value (use MQTT Explorer)
  3. Use following MQTT command in order to toggle OFF switch (replace topic with your own command_topic in step number 2)
    mosquitto_pub -h 127.0.0.1 -t room-assistant/switch/front-door-bluetooth-classic-inquiries-switch/command -m "off"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants