Variable values in MQTT commands

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Gast

    #1

    Variable values in MQTT commands

    I have another question about how to manage values in the Miniserver through MQTT.

    I would like to manage what could be understood as a dimmer (a value ranging from 0 to 100%). Is it possible to send/receive a variable value through the MQTT gateway?
    What would the command look like to pick up a value inside Loxone and send it to the broker?

    Thanks!
  • Christian Fenzl
    Lebende Foren Legende
    • 31.08.2015
    • 11234

    #2
    publish to/my/topic <v>
    The output needs to be set Digital=No

    If you require json payload, this could look like
    publish to/my/topic { "bright" : <v>}

    ​​​​​​(as a generic example, depends on the payload requested by the device)
    Zuletzt geändert von Christian Fenzl; 07.03.2021, 16:16.
    Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

    Kommentar

    • Gast

      #3
      Thanks! That was easier than I expected. Worked on the first go .

      Kommentar

      Lädt...