|
ZigbeePilotWireControl Library
Zigbee Pilot Wire Control Library
|
An Arduino library for controlling pilot wire electric heaters via Zigbee with ESP32-H2 or ESP32-C6.
The following example creates a virtual Zigbee Pilot Wire Control device using the ZigbeePilotWireControl class. It outputs the current pilot wire mode to the serial console whenever it changes.
The controller can be tested using a Zigbee coordinator with support for the Pilot Wire Control cluster, such as ZHA (Zigbee Home Automation) in Home Assistant.
From Home Assistant with Zigbee integration, you can control the pilot wire mode using the Pilot Wire Control card automtically created for the device with the epsilonrt quirks provided:

On the serial console, you will see output like this when changing the mode from the controller:
The simplified code for this example is as follows:
The complete example code can be found in the examples/VirtualPilotSerial folder of this repository. Other examples demonstrate using an RGB LED.
The library also includes support for optional Temperature Measurement and Electrical Measurement clusters. These can be used to report the ambient temperature and power consumption of the heater. See the examples/VirtualPilotWithTempAndMeter example for a demonstration of these features.