Introducing an innovative, yet straightforward DIY project for Home Assistant enthusiasts: a chair occupancy sensor. This addition to your smart home toolkit can significantly enhance room presence detection, a feature that has been increasingly popular among Home Assistant users.
Contents
The Concept of Chair Occupancy Sensing
Traditional methods of detecting presence in a room have their limitations. For instance, passive infrared sensors require significant movement, and Bluetooth-based systems, like room-assistant, hinge on the constant presence of a personal device. The latter poses an issue if the device is left in another room, leading to inaccurate presence detection. The chair occupancy sensor we are about to discuss offers a simpler and more cost-effective solution.
Crafting Your Own Chair Occupancy Sensor
The cornerstone of this project is a familiar object repurposed innovatively: a car seat pressure sensor. Common in vehicles, this sensor activates a circuit upon sensing weight, making it ideal for our purpose. When sourcing a car seat pressure sensor, opt for a universal model rather than one tailored to a specific vehicle make.
Option 1: Using ESP8266 or ESP32 Board
While an ESP8266 or ESP32 board could be employed for this project, using a GPIO binary sensor in ESPHome, it's important to consider the power demands of Wi-Fi devices. Achieving optimal battery life might necessitate a substantial battery, like an 18650 in combination with a deep sleep wake-up pin.
Option 2: Repurposing a Zigbee Sensor
A more power-efficient alternative is repurposing an Aqara Zigbee door/window sensor, as demonstrated by Home Assistant community member 'parrel'. This sensor operates with a reed switch and a magnet, detecting when a circuit is closed. By connecting the car seat pressure sensor to the reed switch, we can transform the Aqara sensor into an effective chair occupancy detector.
Connecting the sensor requires minimal technical work: solder the car seat pressure sensor's cables to the reed switch ends. It's not necessary to remove the reed switch, barring concerns about magnetic interference.
Once set up, this sensor integrates seamlessly with Zigbee2MQTT or ZHA as a binary sensor. For those who prefer a more descriptive sensor type, it's possible to modify the device class to “occupancy” in Home Assistant.
Assembling the Sensor in Your Chair
The final step involves placing the car seat pressure sensor in the chair. Most chairs have removable upholstery with a zipper, allowing easy insertion of the sensor between the fabric and padding. In chairs without such access, alternative methods may be required.
Conclusion
This DIY chair occupancy sensor not only enhances your Home Assistant's room presence detection capabilities but also introduces a fun, practical project for smart home enthusiasts. With its straightforward assembly and integration, it's an excellent addition to any smart home setup.
Remember, this guide is for intermediate users, aiming to make complex information accessible without losing technical depth. For further assistance or to share your experience, feel free to engage with the Home Assistant community.