SDL Binary Sensor
The sdl
binary sensor platform creates a binary sensor from keyboard presses on the host platform.
The sensor will be true when the key is pressed.
Configuration variables:

- key (Required): The ID of an SDL key
.
- All other variables from Binary Sensor.
Example:
binary_sensor:
- platform: sdl
id: key_id
key: SDLK_a