Open gitolicious opened 1 year ago
@gitolicious In your case, a combination should help:
button:
- platform: template
name: "Hold Space"
id: hold_space
on_press:
then:
- ble_keyboard.combination:
id: myblekeyboard
delay: 5
keys:
- 0x20
- 0x20
I guess for that exact use case it would actually work - at least I can see a lot of space key events when putting 1000
instead of 5
) I don't fully understand why this works with space (0x20
) but not with "o"
where two individual letters are being printed.
Unfortunately there are two extensions I would need for my actual use case:
Describe the bug How can I press and hold a key? For example I would like to hold down the space bar for five seconds. Would have expected this to work:
It results in just the space bar being sent and immediately relesed. Did I misunderstand the
press
function in that it doesn't hold down the key untilrelease
is called? When would you use therelease
function otherwise?Please complete the following information:
source: github://dmamontov/esphome-blekeyboard
)