GDO blaQ: How to access aux inputs on ESPHome?

Self-explanatory. I’d like to use the two auxiliary inputs on the GDO blaQ, but there is no documentation on them at all… I found some references to GPIO5 and GPIO9 in the FCC Test files, but compiling breaks if I try those GPIOs.

How can I access them as binary sensors? I want to wire a button to it as well as a magnetic door sensor.

Thanks in advance.

Good question! The aux inputs labeled (1) and (2) on the GDO blaQ are currently only supported with custom configurations in ESPHome. We’ll be “officially” supporting these in our app and integrations soon.

Input (1) is connected to GPIO5 and input (2) is GPIO9.

You can set up one as a binary sensor, for example, like this in your ESPHome YAML config for the device:

substitutions:
  input1: GPIO5
  input2: GPIO9

binary_sensor:
  - platform: gpio
    pin: 
      number: $input1
      mode: INPUT_PULLUP