Hi Paul, web page tell me, i can´t attach documents. Thanks. I send you text
[{"id":"e0bd160b.de8d1","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"8ae4c948.62ef2","type":"ui_button","z":"e0bd160b.de8d1","name":"On/Off","group":"2b645a82.121f96","order":0,"width":0,"height":0,"passthru":true,"label":"Encender//Apagar","tooltip":"Encender o apagar","color":"white","bgcolor":"green","icon":"power_settings_new","payload":"true","payloadType":"bool","topic":"","topicType":"str","x":310,"y":240,"wires":[["c5c3166.45c6fe8"]]},{"id":"c0662adc.e4b748","type":"function","z":"e0bd160b.de8d1","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"initialize":"// Code added here will be run once\n// whenever the node is deployed.\nflow.set(\"bandera\", false);","finalize":"","x":480,"y":140,"wires":[[]]},{"id":"c5c3166.45c6fe8","type":"switch","z":"e0bd160b.de8d1","name":"bandera?","property":"bandera","propertyType":"flow","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":480,"y":240,"wires":[["1e049d96.0fbfda"],["2b9e444.24cd2bc"]]},{"id":"2b9e444.24cd2bc","type":"change","z":"e0bd160b.de8d1","name":"false","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"},{"t":"set","p":"bandera","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":300,"wires":[["d17003a4.41d008","a89f0939.3ec5d"]]},{"id":"1e049d96.0fbfda","type":"change","z":"e0bd160b.de8d1","name":"true","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"},{"t":"set","p":"bandera","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":200,"wires":[["d17003a4.41d008","a89f0939.3ec5d"]]},{"id":"d17003a4.41d008","type":"ui_led","z":"e0bd160b.de8d1","order":1,"group":"2b645a82.121f96","width":0,"height":0,"label":"","labelPlacement":"left","labelAlignment":"center","colorForValue":[{"color":"#808080","value":"false","valueType":"bool"},{"color":"#ff0000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"square","showGlow":true,"name":"LED","x":930,"y":240,"wires":[]},{"id":"82c5b90f.a2c228","type":"inject","z":"e0bd160b.de8d1","name":"Entradas debugar","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"str","x":170,"y":420,"wires":[["8ae4c948.62ef2"]]},{"id":"a89f0939.3ec5d","type":"debug","z":"e0bd160b.de8d1","name":"Salidas debugar","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":940,"y":420,"wires":[]},{"id":"2b645a82.121f96","type":"ui_group","name":"Botón de encendido con pulsador","tab":"5b2daf04.c39518","order":1,"disp":true,"width":"6","collapse":false},{"id":"5b2daf04.c39518","type":"ui_tab","name":"Tab 1","icon":"dashboard","order":1,"disabled":true,"hidden":false}]
admin edit - wrap flow in code block