Hello,
my Tescase fo receiving a mqqt message is the following.
- creating an mqqt Broker (Thing)
- creatig a genereic mqqt Thing and match the Broker Thing to the generic Thing
- creting a channel for the generic Thing and define the state topic
Then i put in the .items file the following:
String mqtt_kitchen_gas “Gas Level [%s]” { channel=“mqtt:topic:myMqttThing:myChannelID” }
Is there a easier way instead of channel…
I saw an syntax like this
Number mqtt_kitchen_gas “Gas Level [%.1f]” {mqtt="<[mosquitto:Home/Floor1/Kitchen/Gas_Sensor:state:default]"}
But what mus i change from channel to mqtt syntax above?