fsievers22 / esphome-ble-remote

ESPHome external component for a BLE HID client
MIT License
25 stars 10 forks source link

Retrieve codes for undefined buttons #26

Open K4in-5037 opened 3 months ago

K4in-5037 commented 3 months ago

how can I get the codes needed to add in HidUsageTables.json as indicated in #21?, I have a FireTV Remote Pro, is not an original but it works (with some mislabeled buttons), the issue is that the 4 bottom buttons (the branded streaming services buttons) doesn't send anything through the sensors, and the logger doesn't show anything useful, here is the message I get when I press any of those buttons

[00:28:52][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 10
[00:28:52][V][esp32_ble_client:121]: [0] [47:54:41:A2:FE:52] gattc_event_handler: event=10 gattc_if=3
[00:28:52][D][esp32_ble_client:110]: [0] [47:54:41:A2:FE:52] ESP_GATTC_NOTIFY_EVT
[00:28:52][D][ble_client_hid:184]: Received HID input report from handle 61
[00:28:52][D][hid_parser:350]: Parsing HID report with report ID (239)
[00:28:52][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 10
[00:28:52][V][esp32_ble_client:121]: [0] [47:54:41:A2:FE:52] gattc_event_handler: event=10 gattc_if=3
[00:28:52][D][esp32_ble_client:110]: [0] [47:54:41:A2:FE:52] ESP_GATTC_NOTIFY_EVT
[00:28:52][D][ble_client_hid:184]: Received HID input report from handle 46
[00:28:52][D][hid_parser:350]: Parsing HID report with report ID (1)
[00:28:52][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 10
[00:28:52][V][esp32_ble_client:121]: [0] [47:54:41:A2:FE:52] gattc_event_handler: event=10 gattc_if=3
[00:28:52][D][esp32_ble_client:110]: [0] [47:54:41:A2:FE:52] ESP_GATTC_NOTIFY_EVT
[00:28:52][D][ble_client_hid:184]: Received HID input report from handle 57
[00:28:52][D][hid_parser:350]: Parsing HID report with report ID (2)

is there a way to get the relevant codes for those buttons so I can define them in the json file?