Hi all,
Pardon the extremely newbie question, but I am somewhat new to HA (I do have a ton of integrations and automation, but thus far everything has been out-of-the-box, so I am new to the custom aspect of it). I do however have a fairly good grasp of REST API and Python.
I live in an apartment complex that uses the atrocious “Dwelo” which is a pain in itself, but there is nothing I can do about it. Anyway, what I want to do is control all the Dwelo items through HA. Thanks to the good folks from Burp, I was able to figure out how it works - they have a public API (with 0 documentation available, naturally), I managed to figure out how to get my access token, and I captured a few API requests (lock/unlock doors, check lock status, get the thermostat temperature, change it…), so I wrote a python script to do a “proof of concept” type of test, and yes, I am able to control everything by sending get/post requests via their web API. (My only way to control is the web anyway, while the device is at my home, I absolutely refuse to connect it to my local network, so they are using an LTE card to connect to the internet).
The goal now is to implement this in HA, and this is where I am completely and utterly lost.
Ideally, what I want to end up with is:
- Lock / Unlock the front door and see the current lock/unlock status
- Unlock each of the community gates (I want to eventually create a carplay shortcut so I can open the stupid gate without having to fish for my phone, find the stupid app and go through several menus to do it…)
- Control the thermostat
Now, for everything above, I already have (or know how to get) the API call to do it. The question is, how to best implement this in HA? It’s okay to send me to RTFM too, I did try to search but there are so many variations of this answer online that I couldn’t figure out what the “right” way to do it is.
TIA!