How can I integrate my lights into Home Assistant?
All the lights in my home are controlled by REST API by intranet.
I’m not that good at English so I hope you understand.
Actually, my lights are controlled by REST API from my apartment’s server as below.
APARTMENT_SERVER/v2/api/livinglight/turnOn APARTMENT_SERVER/v2/api/livinglight/turnOff APARTMENT_SERVER/v2/api/livinglight/states
One of our resident has found these APIs from decompiling related mobile app.
So I want to introduce how to integrate our entities into HA.
Is there any easy way to add entities into Home Assistant? I can find informations on internet, so please let me know core words or some related web pages. (I can’t find now :()
How can I maintain the status of the device? I mean, there is a “states” API but I’m really care to be blocked by the administrator of the server if I call it every minutes.
I think HA doesn’t have to know the status all the time. I need just can do on/off commands from HA. Is there a good way?
I need to apply access_token in every APIs and I can retrive it by login API. This token is expired in every hours. How can I handle it? (ADDED)
Thanks for reading my thread and thank you in advance!