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?Screenshot 2022-03-13 at 11.37.25.png

    Screenshot 2022-03-13 at 11.37.43.png

    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");

  • 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");