How can I transmit room temperature to BSB-LAN over MQTT in JSON format? #612
-
Unfortunately, for some reason, BSB-LAN via MQTT will only work with JSON. This brings up a few problems to solve, including how can I set parameters or send temperatures via MQTT? An example I receive via MQTT: For example for the temperature to be sent: If I send it via http, it works: Should it be posted in another topic, or is there another way to do it? It's worth a separate question here as to why bsb-lan doesn't work in plain text format, but if I've got this far, I'll fight my way through it :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
BSB-LAN via MQTT also supports JSON, but only in the direction BSB-LAN -> MQTT broker, i.e. for reading from parameters. |
Beta Was this translation helpful? Give feedback.
BSB-LAN via MQTT also supports JSON, but only in the direction BSB-LAN -> MQTT broker, i.e. for reading from parameters.
In order to send (set) a parameter via MQTT to BSB-LAN, the MQTT payload has to be something like
I10000=21.3
. Sending payload in JSON format is not implemented. If someone contributes the code for this, I'm happy to add it, but since I myself do not use MQTT, I won't be the one to do it.