AboutBlogContact
Advanced & Guides

Connecting Digital Inputs

Guide how to connect different types of devices to boneIO ESP digital inputs.

Momentary Switch

Digital inputs are used for connecting switches and sensors. By default, they are ground-controlled.

  1. Connect one of the wires from a momentary switch to the common VDD terminal.
  2. Connect the other wire to the desired input terminal (e.g., IN01).
  3. Pressing the switch will close the circuit, which will be interpreted as an "on" signal.

Momentary switch wiring diagram

Kod yaml

event:
  - id: MyName
    boneio_input: IN_29
    actions:
      single:
        - action: output
          pin: light
          action_output: toggle
  • Simple singleclick configuration which changes light state.

Reed switch

  1. Connect one of the wires from a momentary switch to the common VDD (ground or +) terminal.
  2. Connect the other wire to the desired input terminal (e.g., IN02).
  3. When the reed switch is closed, the circuit will be closed, which will be interpreted as an "on" signal.

Reed switch wiring diagram

Motion sensor

  1. Connect one wire from VDD to one of the NC terminal in motion sensor.
  2. Connect second wire from NC terminal to the desired input terminal (e.g., IN01)
  3. Connect 12V power supply to the motion sensor terminals.
  4. When the motion sensor is triggered, the circuit will be closed, which will be interpreted as "motion" signal.

Motion sensor wiring diagram