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

BLE client send command #27

Open
chrisdev524 opened this issue Feb 21, 2024 · 0 comments
Open

BLE client send command #27

chrisdev524 opened this issue Feb 21, 2024 · 0 comments

Comments

@chrisdev524
Copy link

Hi!

It would be great to have a feature not only read values from BLE client devices, but sending commands. I have some BLE key finders and they have a feature to beep if I would like to find them. Now I can only trigger it via app.

Could you extend the myhomeiot_ble_client with a functionality to connect to the device, write command, disconnect if a button is pressed like with ble_client.ble_write?

button:

  • platform: template
    name: "Nut alert"
    on_press:
    • ble_client.ble_write:
      id: nut
      service_uuid: "ff00"
      characteristic_uuid: "ff01"
      value: [0x03]
    • delay: 5s
    • ble_client.ble_write:
      id: nut
      service_uuid: "ff00"
      characteristic_uuid: "ff01"
      value: [0x04]

Thank you!

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

No branches or pull requests

1 participant