AboutBlogContact

Configure binary sensors

How to configure binary sensors in boneIO Black.

Binary sensors are ideal for devices with two states: motion sensors, reed switches, flood sensors, etc.

How to add or edit a binary sensor?

  1. Go to SettingsBinary Sensors
  2. Click Add New or the edit icon next to an existing sensor
  3. Fill in the configuration form

Basic settings

Display Name

Friendly name for the sensor, e.g.:

  • Living Room Motion Sensor
  • Front Door
  • Bedroom Window

This name will be visible in the interface and Home Assistant.

BoneIO Input

Select the physical input from the dropdown:

  • IN_01, IN_02, IN_03, ... IN_56 (depending on model)

Avoid inputs with limitations (IN_01, IN_02, IN_09, IN_10, IN_19, IN_20, IN_21) for reed switches and motion sensors that may be active at controller startup.

Area / Room

Select an area from the dropdown - the sensor will be automatically assigned to this area in Home Assistant.

Bounce Time

Contact debounce time (default: 120ms). For motion sensors and reed switches, usually no change is needed.

Device Class

Device class in Home Assistant - affects icon and behavior:

Device ClassIconUse Case
motionMotionMotion sensors
doorDoorDoor reed switches
windowWindowWindow reed switches
openingOpeningGeneral opening sensors
moistureWaterFlood sensors
smokeSmokeSmoke detectors
gasGasGas detectors
occupancyOccupancyOccupancy sensors
vibrationVibrationVibration sensors
tamperTamperTamper sensors

Options

Show in HA

Enable to make the sensor visible in Home Assistant (enabled by default).

Inverted

Invert sensor logic:

  • Normal: active input = sensor ON
  • Inverted: active input = sensor OFF

Useful when a reed switch is mounted in reverse.

Initial Send

Send sensor state at controller startup.

Clear Message

Clear MQTT message after state change.

Actions - Pressed and Released

Binary sensors have two action tabs:

Pressed

Actions executed when the sensor changes to active state (e.g., motion detected, door opened).

Released

Actions executed when the sensor changes to inactive state (e.g., no motion, door closed).

How to add an action?

  1. Go to the Pressed or Released tab
  2. Click Add Action
  3. Select the action type and configure parameters

Action types

Action TypeDescription
outputControl an output (light, switch)
coverControl a cover
mqttSend an MQTT message
output_over_mqttControl an output via MQTT
cover_over_mqttControl a cover via MQTT
remote_outputControl an output on a remote device
remote_coverControl a cover on a remote device

Configuration examples

Example 1: Hallway motion sensor

  1. Display Name: Hallway Motion Sensor
  2. BoneIO Input: IN_05 (avoid inputs with limitations)
  3. Area / Room: Hallway
  4. Device Class: motion

Actions:

  • Pressed: ON Hallway Light
  • Released: OFF Hallway Light

Example 2: Front door reed switch

  1. Display Name: Front Door
  2. BoneIO Input: IN_06
  3. Area / Room: Entrance
  4. Device Class: door
  5. Inverted: ✅ (if reed switch shows reversed)

No actions - just state monitoring in Home Assistant.

Example 3: Flood sensor

  1. Display Name: Bathroom Flood Sensor
  2. BoneIO Input: IN_07
  3. Area / Room: Bathroom
  4. Device Class: moisture

Actions:

  • Pressed: OFF Main Water Valve (automatic valve closure when water detected)

After saving, the sensor will appear in the table and be available in Home Assistant with the appropriate icon and device class.