ESPHome BLE Keyboard

so it appears it does not release they media keys property with bleKeyboard.releaseAll();
when I make this change in ble_keyboard.cpp

void Esp32BleKeyboard::press(MediaKeyReport key, bool with_timer) {
  if (this->is_connected()) {
    if (with_timer) {
      this->update_timer();
    }
    bleKeyboard.press(key);
		delay(100);//<--
	bleKeyboard.release(key);//<--
  }
}

it works perfectly, thank you for all the work you put into this. Now I can use my ikea volume knob for pause play and volume when I play audiobooks from my phone to my google speaker.

2 Likes