1.4 KiB
1.4 KiB
Presence detector for esp32-C6
This project is a the implementation of a presence detector. It runs on an esp32-C6 with an HMMD wave sensor both from waveshare. It sends a signal to zigbee using the ZigbeeOccupancySensor library.
Complilation on arduino
The following config should be enabled on arduino to compile and upload the code on your board
If the device is not recognized, the following commands could help
- 'sudo modprobe cdc_acm'
- 'sudo chmod a+rw /dev/ttyACM0'
Zigbee2MQTT
- Add manually the device to zigbee by adding the following to the devices.yaml file (usually found in opt/zigbee2mqtt/data, if not present, create it). Dont forget to change the device_id with yours :
'device_id':
friendly_name: "ESP32 Presence Detector"
model: "Presence detector"
manufacturer: "EspressIf"
description: "Custom ESP32 Zigbee Occupancy Sensor"
exposes: [
{
"name": "occupancy",
"property": "occupancy",
"type": "binary",
"access": 1,
"description": "Indicates whether the area is occupied",
"value_on": true,
"value_off": false
}
]
options: []


