Hi all!!!
I have my OH2 in rasb.
So i want to send this payload —>
Timer1 {“Arm”:1,“Mode”:2,“Time”:"-2:23",“Window”:0,“Days”:“11TW11S”,“Repeat”:1,“Output”:1,“Action”:1}
via mqtt to my device(arendst/Sonoff-Tasmota Software installed)
Item:
String heater_command { mqtt=">[broker:cmnd/relay_heater/timer:command:*:default]"}
Switch progr
rule "heater time adjust Mode 2"
when
Item progr received command
then
//I want to change the payload values like Arm 1 or 0, Mode 1 or 2 etc
//but how can i create/compose the json string to send it? because i can't send it with this form above like a simple string
sendCommand(heater_command,jsonstring)
end
i thing with .map or transformation but i dont know how to write the code
thnx in advance