Jump to content
Visit us at IFA2024 / Besuche uns auf der IFA2024 06.-10.09.2024 Stand H1.2-420 ×
Shelly wiring diagram Now LIVE ×

Shelly Plus Plug S - Send data every 5 minutes


Recommended Posts

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

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.

Guest
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.

×
×
  • Erstelle neue...