Simple client for interacting with the IKEA Dirigera hub (made as a proof-of-concept)
To make it work:
- Identify the Dirigera gateway ip on the local network
- Use the ip in the code (GetAccesToken.py, ListDevices.py and ControlLamp.py)
- Run GetAccessToken.py and use the access_token when running the ListDevices.py (Don't remove Bearer-string)
- Run ControlLamp.py (don't forget to insert access_token) and use a id from the response in ListDevices.py
...and remember, this is proof-of-concept to test the local interface of the IKEA Dirigera gateway. The intention of writing this code was just to see if it vas possible to connect to the gateway. The smell of the code is pretty bad ;.)
Other endpoins of the Dirigera gateway can be found by decompiling the IKEA Smart Home App.