Hi folks,
I am about to start my first real ESP32 project and I’d love your help to confirm that I have selected the right components. I am very much open to improvements and by no means convinced that this is the best setup.
Use-case
some friends run a small hotel in Sri Lanka. They have just installed ACs. Many guests leave their room and keep the AC running, even though they are gone for the whole day. In a country where power is expensive and often limited, this is not a viable solution. My idea is to use presence detection to shut off the AC when there is no one in the room (with a grace period of eg. 15 minutes). Additionally, the AC should shut off when the balcony door is open, no matter if someone is in the room or not. The system should work standalone with a later (optional) integration into Home Assistant.
Presence detection
A ceiling-mounted mmWave sensor should be able to detect moving or barely moving (i.e. sleeping) people.
Door sensor
Endstop sensor with a small metal latch that is closed when the sliding door to the balcony is closed (and open when the door is open, duh).
AC control
Since the AC units are dumb, an IR transmitter should be able to turn off the unit via an IR command. I couldn’t find any IR commands for the units (AC: PN-CS-EU12AKY-8; remote: 6650-E(3X) or U6650-E24070100043) online so I will probably have to capture the necessary command(s) with a receiver (however, only once).
Brains
ESP32 connected to the 2 sensors and IR transmitter. Read sensor data and send command if condition(s) are met. Seems straightforward.
Components
Please let me know if these components work for my described use-case. Keep in mind that selection in Sri Lanka seems limited.
- mmWave sensor HLK-LD2420 (as a new user, I can only provide 2 links )
- Endstop door sensor (online retailer link)
- IR transmitter + receiver bundle (online retailer link)
Since I brought a regular ESP32 dev. and an ESP32-C3 dev. I didn’t list them here.
Discarded sensors
Things that I considered but thought are not well-suited
- PIR motion sensor (too imprecise when people are barely moving (sleeping)
- Ultrasonic sensor (too susceptible to background noise, eg. AC or road noise)
- CO-2 sensor (too slow to detect changes when someone enters the room)
- Push button in lock (major mechanical changes needed to fit sensor and cables
- Bluetooth BLE beacon (too many false positives due to rooms being very close to each other)
Thanks a lot, looking forward to your replies