binary_sensor: - platform: gpio name: "Button" id: gp_button pin: number: ${pin_button} mode: INPUT_PULLUP inverted: True