This one works in the UI
I tryed to use a http requset and you can see the http command in the text node.
But when i connect the stat it will be a never ending loop..
"Hallen_nere" is Swedish words..
Or is there a comand that i can put in topic like "cmnd/Hallen_nere/POWER2/OFF" since "/OFF" dosent work.
[{"id":"f06670c8.982bf","type":"tab","label":"Flow 4","disabled":false,"info":""},{"id":"4d6e01e7.2f531","type":"ui_switch","z":"f06670c8.982bf","tab":"31b95423.40f18c","name":"Switch","topic":"","group":"","order":1,"onvalue":"on","offvalue":"off","x":600,"y":340,"wires":[["290763e4.54710c"]]},{"id":"290763e4.54710c","type":"switch","z":"f06670c8.982bf","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":750,"y":340,"wires":[["f3dbd8bf.571c"],["f0e78528.607c5"]]},{"id":"8cbb47d7.a9b758","type":"mqtt out","z":"f06670c8.982bf","name":"","topic":"cmnd/Hallen_nere/POWER2","qos":"","retain":"","broker":"e2f7a181.dc3568","x":1170,"y":380,"wires":[]},{"id":"43e6c4e8.97d48c","type":"rbe","z":"f06670c8.982bf","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":410,"y":340,"wires":[[]]},{"id":"da84220b.121f58","type":"mqtt in","z":"f06670c8.982bf","name":"","topic":"stat/Hallen_nere/POWER1","qos":"0","datatype":"auto","broker":"e2f7a181.dc3568","x":220,"y":300,"wires":[[]]},{"id":"f191be68.54266","type":"mqtt in","z":"f06670c8.982bf","name":"","topic":"stat/Hallen_nere/POWER2","qos":"0","datatype":"auto","broker":"e2f7a181.dc3568","x":220,"y":420,"wires":[[]]},{"id":"f0e78528.607c5","type":"http request","z":"f06670c8.982bf","name":"","method":"use","ret":"txt","paytoqs":false,"url":"http://192.168.1.232/cm?cmnd=Backlog%20Power1%20off%3BPower2%20on","tls":"","persist":false,"proxy":"","authType":"","x":890,"y":380,"wires":[["8cbb47d7.a9b758"]]},{"id":"f3dbd8bf.571c","type":"http request","z":"f06670c8.982bf","name":"","method":"use","ret":"txt","paytoqs":false,"url":"http://192.168.1.232/cm?cmnd=Backlog%20Power1%20on%3BPower2%20off","tls":"","persist":false,"proxy":"","authType":"","x":890,"y":280,"wires":[["50cf5d24.10fde4"]]},{"id":"50cf5d24.10fde4","type":"mqtt out","z":"f06670c8.982bf","name":"","topic":"cmnd/Hallen_nere/POWER1","qos":"","retain":"","broker":"e2f7a181.dc3568","x":1170,"y":280,"wires":[]},{"id":"be0fdb84.4d2f2","type":"ui_text","z":"f06670c8.982bf","tab":"31b95423.40f18c","name":"http://192.168.1.232/cm?cmnd=Backlog%20Power1%20off%3BPower2%20on","group":"","order":1,"format":"{{msg.payload}}","x":1090,"y":220,"wires":[]},{"id":"b8b6f206.dfa61","type":"ui_text","z":"f06670c8.982bf","tab":"31b95423.40f18c","name":"http://192.168.1.232/cm?cmnd=Backlog%20Power1%20on%3BPower2%20off","group":"","order":1,"format":"{{msg.payload}}","x":1050,"y":460,"wires":[]},{"id":"31b95423.40f18c","type":"ui_tab","z":"","name":"ESP devices","icon":"dashboard","order":10},{"id":"e2f7a181.dc3568","type":"mqtt-broker","z":"","name":"","broker":"192.168.1.131","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]