(OLD Dashboard)
Sorry folks, I seem to be missing something here.
I have a button that accepts parameters but it only works if the inject
node injects.
Brief code:
[{"id":"421170e716f91701","type":"inject","z":"c3ec93b2.f3154","g":"e00b697a44223e03","name":"set background","props":[{"p":"background","v":"black","vt":"str"},{"p":"txt","v":"Reset indicator LED","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":"1","topic":"","x":380,"y":4770,"wires":[["ceb7f828.6f2d3","14b9662bf33ecd63"]]},{"id":"ceb7f828.6f2d3","type":"ui_button","z":"c3ec93b2.f3154","g":"e00b697a44223e03","name":"Clear Flow error notification","group":"e48399e0.8415c","order":6,"width":"5","height":"1","passthru":false,"label":"{{msg.txt}}","tooltip":"","color":"yellow","bgcolor":"{{msg.background}}","className":"","icon":"","payload":"on","payloadType":"str","topic":"","topicType":"str","x":420,"y":4810,"wires":[["28b45862e13683a0","a568edf585a66d0f"]]},{"id":"90f495fc9a492b8b","type":"change","z":"c3ec93b2.f3154","g":"e00b697a44223e03","name":"","rules":[{"t":"set","p":"background","pt":"msg","to":"black","tot":"str"},{"t":"set","p":"txt","pt":"msg","to":"No errors detected","tot":"str"},{"t":"delete","p":"payload","pt":"msg"},{"t":"set","p":"topic","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":385,"y":4850,"wires":[["ceb7f828.6f2d3","14b9662bf33ecd63"]],"l":false},{"id":"614669d9.6a765","type":"inject","z":"c3ec93b2.f3154","g":"e00b697a44223e03","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":490,"y":4880,"wires":[["28b45862e13683a0"]]},{"id":"28b45862e13683a0","type":"junction","z":"c3ec93b2.f3154","g":"e00b697a44223e03","x":560,"y":4810,"wires":[["2671879ce407c7e9","90f495fc9a492b8b"]]},{"id":"e48399e0.8415c","type":"ui_group","name":"Flow error display","tab":"48f5e285.67a4c4","order":2,"disp":true,"width":"11","collapse":false},{"id":"48f5e285.67a4c4","type":"ui_tab","name":"ALARMS","icon":"mi-notification_important","order":6,"disabled":false,"hidden":false}]
The idea is that it is set (initially) to what I want.
Something happens, it gets/receives a message and the text is changed. (txt and background actually)
Then if/when I press the button, it RESETS the colour/text to normal.
But it isn't happening.
I've checked the messages and can't work out what it is I am doing wrong.
Thanks.