A friend and myself are developing a IOT based Dog Feeder …
The feeder expects a JSON formatted string to be published on a specific MQTT channel to operate
Pretty much all i need is to send : {“volume”:“5”,“feeder”:“true,”} to the following channel GG-SmartHouse/DogFeeder/in
im already using Generic MQTT Things to receive on MQTT topics (OH2.4) … and have used the older format in OH2.3 for sending simple commands like ON/OFF to devices like lighbulbs etc …
I have no idea how to send a JSON formated command to a Generic MQTT Thing ???
its not really intuitive … i have created the thing via the paper UI as a “string” type , adding in the command topic as GG-SmartHouse/DogFeeder/in
i have created a “switch” item and linked it to the Thing . but im not sure how to format the JSON data into the ITEM
Switch DogFeederOperate “Dog Feeder” [ “Switchable” ] {channel=“mqtt:topic:57311b29:1”}
Any assistance appreciated please
Thx
Greg