I've got a toggle switch which triggers a MQTT node to control a heater, it works fine but the initial value is always shown as OFF even if the heater is ON.
I'm feeding the msg.payload value of "ON" into the toggle switch and I've tried using an input value of both msg.payload and {{msg.payload}} but it doesn't appear to make any difference.
Hope someone can help, it's probably something very obvious I am missing.
Node code:
[{"id":"9a574584.75e57","type":"ui_switch","z":"212aea8.56fb016","name":"","label":"Toggle upstairs heater","tooltip":"","group":"249cb4f3.de0cdc","order":4,"width":4,"height":1,"passthru":false,"decouple":"false","topic":"cmnd/sonoff_garage_upstairs/power","style":"","onvalue":"On","onvalueType":"str","onicon":"","oncolor":"","offvalue":"Off","offvalueType":"str","officon":"","offcolor":"","x":620,"y":548,"wires":[["e5e9f696.80fbc","f024e819.9aea68"]],"inputLabels":["msg.payload"]},{"id":"249cb4f3.de0cdc","type":"ui_group","z":"","name":"Garage","tab":"e47a88e5.385c7","order":2,"disp":true,"width":"8","collapse":false},{"id":"e47a88e5.385c7","type":"ui_tab","z":"","name":"Main","icon":"dashboard","order":2,"disabled":false,"hidden":false}]