devices.esphome.io
Mirabella Genio Door & Window Sensor
Mirabella Genio Door & Window Sensor
Device Type: sensorElectrical Standard: globalBoard: 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
      
  
        
Basic Configuration
# Basic Config# https://mirabellagenio.net.au/door-%26-window-sensoresphome:  name: mirabella_genio_door_window_sensor  platform: ESP8266  board: esp01_1m  arduino_version: 2.5.1  board_flash_mode: dout  includes:    - sb1_uart.h
wifi:  ssid: 'Wifi SSID'  password: !secret wifi_pw  fast_connect: true
mqtt:  broker: 'x.x.x.x'  username: !secret mqtt_un  password: !secret mqtt_pw  birth_message:  shutdown_message:  will_message:
uart:  - tx_pin: 1    rx_pin: 3    baud_rate: 9600    id: uart0
ota:
logger:  level: INFO  hardware_uart: UART1
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};