Hello,
looking for a solution to integrate mygekko home automation. There doesn’t seem to be native support for HA but there is an http API, it seems to be a resftful API:
Does anyone have a good approach on how to create entities in HA bases on this API to control things like lights and shutters?
I am trying to make HA work with a personal setup of mygekko (smart home). So my goal is not to develop and publish an integration but to get it working in an individual setup.
Here is an extract of the API when I use it in a browser:
"lights": {
"item0": {
"name": "room1",
"page": "EG",
"sumstate": {
"value": "state[0=Off|1=On]; dimValue[%]; RGBcolor[24Bit]; sum[0=Ok|1=ManualOff|2=ManualOn|3=Locked|4=Alarm]",
"type": "STRING",
"permission": "READ",
"index": 100000
},
"scmd": {
"value": "0|1|D100|TOG|C255 (0=Off|1=On|Dim%|Toggle|RGB24Bit)",
"type": "STRING",
"permission": "WRITE",
"index": 100001
}
},
"item1": {
"name": "room2",
"page": "EG",
"sumstate": {
"value": "state[0=Off|1=On]; dimValue[%]; RGBcolor[24Bit]; sum[0=Ok|1=ManualOff|2=ManualOn|3=Locked|4=Alarm]",
"type": "STRING",
"permission": "READ",
"index": 100100
},
"scmd": {
"value": "0|1|D100|TOG|C255 (0=Off|1=On|Dim%|Toggle|RGB24Bit)",
"type": "STRING",
"permission": "WRITE",
"index": 100101
}
I can successfully set on a light with:
https://live.my-gekko.com/api/v1/var/lights/item8/scmd/set?value=1&username=shrek&key=xxxxx&gekkoid=yyyyyy
and set it to off accordingly with value=0 in a webbrowser.
I am looking for help getting this integrated into HA and I am missing experience and knowledge how to leverage the existing Rest integrations best for this.
Thank you,
Shrek