Pepeeee Posted January 26 Share Posted January 26 I have been geting shelly 3EM power over HTTP for some years now. I do need only total power signed value. The http request returns the whole bulky status or i have to make 3 separate emeter requests for the phases. This is lots of traffic to get one 16bit integer. Is there a simpler way? One "total power" request with one answer? Does not need to be http. What is the 3EM update rate? Can i get new values every second? I dont mind upgrading to pro version should that be necessary. Quote Link to comment Share on other sites More sharing options...
Pepeeee Posted January 26 Author Share Posted January 26 OK, think i can run a script if i buy the pro version. http://192.168.178.107/script/1/open function Open(request, response) { print('Executing function open'); let switchStatus = Shelly.getComponentStatus("switch:0"); response.body = JSON.stringify(switchStatus.apower); response.code = 200; response.send('test'); } HTTPServer.registerEndpoint('open', Open) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.