Jump to content

MQTT message payloads


TomJ

Recommended Posts

Posted (edited)

I was able to get the MQTT Poly to work with switches using "ON" or "OFF" as the message payload.
What about the message format for the other node types?  For example, I was trying to experiment with a temperature sensor node. It shows up in the admin console just fine, but I am unable to figure out what the message payload format for this node type.  Is there documentation anywhere that shows the message payload format for the various node types that this poly supports?

Edited by TomJ
Posted

Hi @TomJ

There is a description of the other Tasmota devices (temp, humidity etc), which can be operated with the MQTT plug-in.

I'm away from my computer right now, but from memory:

From inside PG3 click on Details of MQTT plug-in, then click Configuration. If it doesn't come up right away above tue config parameters, there should be a button to display tye configuration Details.

If for some reason they do not show up, please let me know and I'll point you towards the GitHub repository.

Cheers.

Posted

If I am understanding the description page you are talking about, that describes the different types of devices and their topics, but I cannot find what the message payloads look like.  The closest I found to that is directing me to the web console of the Tasmota device, but I don't have any of these actual devices.

What I am attempting to do is to have a program running on a Raspberry Pi sending messages via MQTT to this plug-in so my eisy can do things.  I got the switch to work because someone on this forum said that "ON" or "OFF" was the message payload, but for the other device types I have found nothing on what the payload I should publish should be.

If there is no such list already existing, could you point me to the GitHub repository and I could at least reverse-engineer the code to find what I need?

Thanks.

Posted

You don't really send commands to sensors. Here is a screenshot from a Tasmota device console for a switch. If you have a more specific question, let us know. In this case my "status topic" configured in Polyglot is "stat/sSlamphC/POWER"Screenshot2025-06-02at7_47_13PM.thumb.png.c91df8c5f9704e1ec204ea29fe21dab4.pngScreenshot2025-06-02at7_47_13PM.thumb.png.c91df8c5f9704e1ec204ea29fe21dab4.png

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.


×
×
  • Create New...