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

[question] How to add custom button to change iPad brightness? #30

Open
and7ey opened this issue Dec 10, 2023 · 0 comments
Open

[question] How to add custom button to change iPad brightness? #30

and7ey opened this issue Dec 10, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@and7ey
Copy link

and7ey commented Dec 10, 2023

I would like to change iPad brightness with BLE keyboard.
Here is the discussion how to do it - T-vK/ESP32-BLE-Keyboard#23.

I tried the following code:

ble_keyboard:
  id: blekeyboard
  name: "BLEKeyboard"
  battery_level: 50
  reconnect: true
  buttons: true
  use_default_libs: false

button:
  - platform: template
    name: "BRIGHTNESS_UP"
    id: brightness_up
    icon: "mdi:microsoft-windows"
    on_press:
      then:
        - ble_keyboard.press:
            id: blekeyboard
            code: 0x006F
        - ble_keyboard.release: blekeyboard   

but it doesn't work. Is there any other way to add this button?

  • ESPHome version: 2023.11.6
  • Component version: 2.3.1
@and7ey and7ey added the bug Something isn't working label Dec 10, 2023
@and7ey and7ey changed the title [question] [question] How to add custom button to change iPad brightness? Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants