ESPHome Binary Sensors, Switches & Sensor Configuration

Input & Output Configuration with ESPHome

Use all the input and output features of ESPHome on your Konnected Alarm Panel device. This article applies to both the 6-zone Konnected Alarm Panel devices and the 12-zone Alarm Panel Pro.

Binary Sensors

All numbered zones can be configured for binary sensors in ESPHome using the GPIO Binary Sensor platform. This is how you would configure wired door and window sensors, motion sensors, smoke/CO detectors, leak detectors, etc connected to the Konnected Alarm Panel. Enable the internal pullup on each zone for best results.

Example ESPHome binary sensor config:

binary_sensor:
  - platform: gpio
    name: Zone 1
    device_class: door
    pin:
      number: GPIO5
      mode: INPUT_PULLUP

  - platform: gpio
    name: Zone 2
    pin:
      number: GPIO4
      mode: INPUT_PULLUP

See zone to GPIO mapping for the GPIO numbers for your hardware.

Switches and Sirens

The ALARM or OUT switched outputs can be controlled in ESPHome using the GPIO Switch platform. This is typically used to switch on a siren, strobe or relay.

Zones 1 - 5 on the 6-zone Konnected Alarm Panel and Zones 1 - 8 on the Alarm Panel Pro can also be configured as a switch in the same way and will output 3.3V when active high, useful with a 3V piezo or a 3V-5V relay.

Example ESPHome switch configs:

switch: 

  # simple siren on/off switch
  - platform: gpio
    name: Siren
    pin: GPIO12

  # use with a low-level trigger relay
  - platform: gpio
    name: Low Trigger Switch example
    pin:
      number: GPIO13
      inverted: yes

  # with a piezo buzzer, beep 3 times
  - platform: gpio
    pin: GPIO15
    id: beep
  - platform: template
    name: Beep beep beep
    turn_on_action:
      - switch.turn_on: beep
      - delay: 60ms
      - switch.turn_off: beep
      - delay: 60ms
      - switch.turn_on: beep
      - delay: 60ms
      - switch.turn_off: beep
      - delay: 60ms
      - switch.turn_on: beep
      - delay: 60ms
      - switch.turn_off: beep

See zone to GPIO mapping for the GPIO numbers for your hardware.

DHT Temperature & Humidity Sensors

DHT Sensors work via GPIO as you would expect.

sensor:
  - platform: dht
    pin: GPIO13
    temperature:
      name: Temperature
    humidity:
      name: Humidity
    update_interval: 60s

DS18B20 Temperature Probes

These also work using the Dallas component, you can even connect multiple to a single zone because they're individually addressed.

dallas:
  - pin: GPIO13

sensor:
  - platform: dallas
    address: 0x1c0000031edd2a28
    name: Aquarium Temperature


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.