devices.esphome.io

Mirabella Genio Door & Window Sensor

Mirabella Genio Door & Window Sensor

Device Type: sensor
Electrical Standard: global
Board: esp8266

General Notes

This is for Mirabella Genio Door & Window Sensor.

The file sb1_uart.h must be added to your Home Assistant /config/esphome directory for a succesful compile.

Credit to Brandon D for the file and esphome config

Mirabella Genio Door & Window Sensor

Basic Configuration

# Basic Config
# https://mirabellagenio.net.au/door-%26-window-sensor
esphome:
name: mirabella_genio_door_window_sensor
platform: ESP8266
board: esp01_1m
arduino_version: 2.5.1
board_flash_mode: dout
includes:
- sb1_uart.h
uart:
- tx_pin: 1
rx_pin: 3
baud_rate: 9600
id: uart0
# OTA flashing
ota:
- platform: esphome
wifi: # Your Wifi network details
# Enable fallback hotspot in case wifi connection fails
ap:
# Enabling the logging component
logger:
level: INFO
hardware_uart: UART1
# Enable Home Assistant API
api:
# Enable the captive portal
captive_portal:
sensor:
# - platform: wifi_signal
# name: "Door WiFi Signal"
# update_interval: never
# expire_after:
# filters: []
- platform: adc
name: "Doow Window Battery"
update_interval: 1s
expire_after:
pin: VCC
filters:
- calibrate_linear:
# Map volts (from sensor) to % (for HA)
- 2.8 -> 0.0
- 3.6 -> 100
unit_of_measurement: "%"
accuracy_decimals: 0
binary_sensor:
- platform: template
id: door
name: "Door Window Sensor"
filters: []
device_class: door
lambda: "return {};"
custom_component:
- id: sb1_uart
lambda: |-
auto component = new SB1UARTComponent(id(uart0), id(door));
return {component};
Edit this page on GitHub