I will post the local API when I get to work on Monday.
A module may be difficult once you see it. Everything is dynamic. First you need a token, then you ask it what devices are connected to it and it responds with a ¡®list¡¯ of random number groupings that correspond to them...which are interspersed with other groups of random numbers that don¡¯t mean anything. Once you get to that point you use those device numbers to ask it what functions said device supports...like fan speed 1,2,3 or 1,2,3,4,5,6 and light control, rotation direction etc. I have two fans that respond to a value of ¡®0¡¯ to turn them off and two that respond to a specific ¡®off¡¯ command. If you are still alive after all of that then armed with the above information you are ready to format your command strings to JSON with proper HTTP headers, fire it off and cross your fingers. If all the juju is correct it will work every single time...its quite a solid and reliable little device. Cool thing is that it will learn any RF remote like AC units or fireplaces as well.
I was part of their hardware beta testing a while back and had frequent conversions with their developers and engineers. I repeatedly brought up Crestron integration but it fell on deaf ears.