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: Copy link to header

Example:

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

See Also Copy link to header

CURRENT