Nextion Touch Component

The nextion binary sensor platform lets you track when a component on the display is touched or not. The binary sensor will turn on when the component with the given component and page id is pressed on, and will turn off as soon as the finger is released.

See Nextion TFT LCD Display for setting up the display

# Example configuration entry
display:
  - platform: nextion
    # ...

binary_sensor:
  - platform: nextion
    page_id: 0
    component_id: 2
    name: "Nextion Component 2 Touch"

Configuration variables:

  • name (Required, string): The name of the binary sensor.
  • page_id (Required, int): The ID of the page the component is on. Use 0 for the default page.
  • component_id (Required, int): The ID (the number, not name!) of the component to track.
  • nextion_id (Optional, ID): Manually specify the ID of the Nextion display.
  • All other options from Binary Sensor and MQTT Component.