Send JSON command with MQTT?

Server name needs to be 192.168.0.12 - this would certainly explain why it’s not working. Username should be mqtt and password your password, according the config snippet you posted earlier.

1 Like

holy moly guacamole! its works now.

I can’t believe it was such a stupid error on my part. I became so obsessed with trying to make this work that it actually got to an unhealthy point :smiley: thank you so much for your patience and help, I will be forever grateful because I would have only figured this after actually deep diving into mqtt.

Gosh this is exactly what I had been trying to achieve myself, as the Wall panel 's motion detection-wake-up was draining my battery faster than I could take a shower.
This works perfectly, although not with the backslashes, but just the ‘{“wake”:true}’

Thanks to all the contributors, for solving this for us.

Michael

Hello all, I try to send a command to the panel via script but it just fails … without doing anything

would someone please be so kind and post an example script or automation to changel the url.

Thanks in advance :slight_smile:

That’s my failing attept:

alias: Open Youtube on magicmirror
sequence:
  - service: mqtt.publish
    data:
      topic: wallpanel/MagicMirror/command
      payload:
        url: 'http://youtube.com'