I am pretty sure this is a simple question, I just can't wrap my head around JSON or expression to get it to do what I want. And I havent found a post or information on the node to help me.
I have successfully input MQTT message from Topic "tasmota1/stat/RESULT" and output it to "tasmota2/cmnd/Dimmer"
Thats half of what I need. The problem is the payload is
{"POWER":"ON","Dimmer":70}
This gets read in and sent out. I need to only send the number. the "Dimmer": value will be 10-100.
Can someone help me understand how to delete out everything but the number at the end? The flow should look like
MQTT in
tasmota1/stat/RESULT
{"POWER":"ON","Dimmer":50}
Change to
tasmota2/cmnd/Dimmer
50
MQTT out
If it is possible to split the message I could get rid of my Change State node that turns on/off Dimm2 if Dimm1 is turned on/off.
MQTT in
tasmota1/stat/RESULT
{"POWER":"ON","Dimmer":50}
Change to
tasmota2/cmnd/POWER
ON
tasmota2/cmnd/Dimmer
50
MQTT out
Any help would be greatly welcomed!
Thanks