Integrating Dwelo Smart Apartment Controls with Home Assistant

After spending quite some time figuring out how to integrate my apartment’s Dwelo system into Home Assistant, I thought I’d share my journey and solution with the community. For those who might be in a similar situation, here’s how I managed to get everything working smoothly!

The Challenge:
Dwelo, while functional, lacks a robust integration with smart home ecosystems. My goal was to control all Dwelo items—locks, gates, thermostats—directly through Home Assistant. I had already reverse-engineered their public API, captured the necessary endpoints, and even wrote a proof-of-concept Python script. The challenge was translating this into a seamless Home Assistant setup.

The Solution:

  1. API Integration: I utilized Home Assistant’s REST API component to interact with Dwelo’s endpoints. This allowed me to send GET and POST requests to control my devices without needing to expose my local network.
  2. Custom Scripts: I created a series of custom Python scripts that act as intermediaries. These scripts handle authentication, request routing, and response parsing, ensuring that all commands are executed reliably.
  3. Entity Setup: I configured custom entities within Home Assistant for each controllable item (e.g., front door lock, community gates, thermostat). This made them fully integrated into the UI and automations.
  4. Automations: To enhance usability, I set up automations such as opening gates via carplay shortcuts and adjusting thermostats based on occupancy sensors.

Key Takeaways:

  • Documentation: While Dwelo’s API lacks official documentation, tools like Burp Suite were invaluable for capturing and analyzing requests.
  • Security: Keeping everything secure was paramount. I ensured all communications were over HTTPS and avoided exposing any sensitive data.
  • Testing: Thorough testing of each endpoint and scenario was essential. This helped catch any unexpected behaviors early on.

Final Thoughts:
This project was a fantastic learning experience, and I’m thrilled with how everything now works seamlessly. It’s incredibly satisfying to have full control over my smart home systems without relying on proprietary apps. If anyone has similar challenges or questions, feel free to reach out—I’d be happy to help!

Happy automating! :rocket: