Skip to content

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.

Example:

binary_sensor:
- platform: sdl
id: key_id
key: SDLK_a