Reaction on MQTT command

  • I am trying to control my shelly plug S via MQTT.

    I use Mqtt explorer to see if the messages arrive correctly.


    The shelly is reporting its state correctly.

    When I sent a message with the same topic and content no reaction is observed. The plug does not switch on or off.

    How can I get the plug to react?

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.

    2 Mal editiert, zuletzt von eporocrail (20. März 2022 um 10:42) aus folgendem Grund: I managed to solve the problem The topic to publish the command should read: "shells/appliance id/relay/0/command" The commands are: on, off or toggle e.g.: mqttClient.publish("shellies/fan/relay/0/command", 0, true, "toggle"); mqttClient.publish("shellies/fan/relay/0/command", 0, true, "on"); mqttClient.publish("shellies/fan/relay/0/command", 0, true, "off");

  • Gast10 13. März 2022 um 12:24

    Hat das Thema aus dem Forum Shelly Plug S nach MQTT verschoben.
  • I managed to solve the problem

    The topic to publish the command to should read:

    "shellies/appliance id/relay/0/command"

    The commands are: on, off or toggle

    e.g.:

    mqttClient.publish("shellies/fan/relay/0/command", 0, true, "toggle");

    mqttClient.publish("shellies/fan/relay/0/command", 0, true, "on");

    mqttClient.publish("shellies/fan/relay/0/command", 0, true, "off");