GeoVi Posted June 17 Share Posted June 17 Hello, I have a Shelly Plug S (Gen1) which is working very well now for several years. It publishes the data (energy, power) every 5 minutes over MQTT. I wanted to replicate this behavior with my new Shelly Plus Plug S, but I can't get it working. I used the following code in a script (number of milliseconds reduced for debugging): function timerCode() { Shelly.call("Shelly.GetStatus"); Shelly.call("Switch.GetStatus"); print("done"); }; Timer.set( /* number of miliseconds */ 10000, /* repeat? */ true, /* callback */ timerCode ); In the console I can see, that "done" is written every 10 seconds, but nothing is published over MQTT. I have enabled MQTT, MQTT control, RPC over MQTT. RPC status notifications over MQTT and Generic status update over MQTT are not enabled since it published every second and therefore writes data quite too much in an uncontrollable way. I would really appreciate if someone could point me in the right direction since I don't want to replace the shelly hardware. Thank you 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.