Hello,
how can I transfer multiple sensor values (Temperature1, Temperatur2, Humidity, Pressure) ?
For one sensor value:
MQTT:
Controller Subscribe: %sysname%/#
Controller Publish: %sysname%/Temperature1
Kind Regards
Juergen B.
MQTT: transmit several sensor values
Moderators: grovkillen, Stuntteam, TD-er
Re: MQTT: transmit several sensor values
I would expect that the MQTT server can only receive 1 value per topic, unless you use the publish command to send a combined message, instead of the more regular way of letting a controller handle it. Via the controller all values of the sensor will be sent to their respective topic one after the other.
/Ton (PayPal.me)
Re: MQTT: transmit several sensor values
The default topic for OpenHAB to publish is like this:
I guess that's what you need?
Code: Select all
%sysname%/%tskname%/%valname%
Re: MQTT: transmit several sensor values
Hello,
Many thanks for your help.
With the topic publish:
all sensor values are transmitted.
Kind Regards
Juergen B.
Many thanks for your help.
With the topic publish:
Code: Select all
%sysname%/%tskname%/%valname%
Kind Regards
Juergen B.
Who is online
Users browsing this forum: No registered users and 87 guests