Jump to content
Gen2 Devices: FW Update Required / Gen2 Geräte: FW-Update erforderlich ×

Shelly Plus Plug S - Send data every 5 minutes

Recommended Posts

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() {

  /* 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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...