Examples

Example

Description

Binary sensor

Using the binary sensor as a door contact sensor.

Button

Adding simple buttons to the Home Assistant panel.

Camera

Publishing the preview from the ESP32-CAM module.

Cover

Controlling a window cover (open / close / stop).

Device trigger

Implementation of a simple wall switch that reports press and hold states.

Fan

Controlling a simple fan (state + speed).

HVAC

HVAC controller with multiple modes, power control and target temperature.

Lock

A simple door lock that’s controlled by the Home Assistant.

Light

A simple light that allows changing brightness, color temperature and RGB color.

Number

Adding an interactive numeric slider in the Home Assistant panel.

Scene

Adding a custom scene in the Home Assistant panel.

Select

A dropdown selector that’s displayed in the Home Assistant panel.

Sensor

A simple sensor that reports a state in a string representation (open / opening / close).

Analog sensor

Reporting the analog pin’s voltage to the Home Assistant.

Integer sensor

Reporting the device’s uptime to the Home Assistant.

Switch

The LED that’s controlled by the Home Assistant.

Multi-switch

Multiple switches controlled by the Home Assistant.

Tag scanner

Scanning RFID tags using the MFRC522 module.

Availability

Reporting entities’ availability (online / offline) to the Home Assistant.

Advanced availability

Advanced availability reporting with MQTT LWT (Last Will and Testament).

MQTT advanced

Subscribing to custom topics and publishing custom messages.

MQTT with credentials

Establishing connection with a MQTT broker using the credentials.

NodeMCU (ESP8266)

Basic example for ESP8266 devices.

Arduino Nano 33 IoT

Basic example for Arduino Nano 33 IoT (SAMD family).

mDNS discovery

Make your ESP8266 discoverable via the mDNS.