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:

Example:

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

See Also