[{"id":"8a242a1b.b175f8","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"b5409d9f.e7cac","type":"dsm","z":"8a242a1b.b175f8","name":"pump (forum)","sm_config":"{\n \"triggerInput\": \"payload\",\n \"currentState\": \"running\",\n \"states\": {\n \"stopped\": {\n \"1\": \"running\"\n },\n \"running\": {\n \"0\": \"stopped\"\n }\n },\n \"methods\": {\n \"0\": \"sta.fill='red';\",\n \"1\": \"sta.fill='green';\"\n }\n}\n","x":380,"y":230,"wires":[["bd1378fc.290c98","471d97a5.537458","9f5a0857.ce2218"]]},{"id":"bd1378fc.290c98","type":"debug","z":"8a242a1b.b175f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","x":583,"y":230,"wires":[]},{"id":"de2bb761.91f328","type":"rpi-gpio in","z":"8a242a1b.b175f8","name":"Raspberry PI 3","pin":"3","intype":"tri","debounce":"25","read":false,"x":182,"y":291,"wires":[["b5409d9f.e7cac"]]},{"id":"471d97a5.537458","type":"ui_gauge","z":"8a242a1b.b175f8","name":"","group":"1f7d2c43.889e74","order":0,"width":0,"height":0,"gtype":"donut","title":"Montage","label":"units","format":"{{value}}","min":0,"max":"1","colors":["#ff0000","#e6e600","#00ff40"],"seg1":"","seg2":"","x":572,"y":178,"wires":[]},{"id":"5b354f8b.7d822","type":"dsm","z":"8a242a1b.b175f8","name":"pump","sm_config":"{\n \"triggerInput\": \"payload\",\n \"currentState\": \"stopped\",\n \"states\": {\n \"stopped\": {\n \"0\": \"running\"\n },\n \"running\": {\n \"1\": \"stopped\"\n }\n },\n \"methods\": {\n \"1\": \"sta.fill='red';\",\n \"0\": \"sta.fill='green';\"\n }\n}","x":366,"y":344,"wires":[["1ea566f8.2c8f89","ddd83bbe.062518","c840d30e.66876"]]},{"id":"1ea566f8.2c8f89","type":"debug","z":"8a242a1b.b175f8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","x":576,"y":355,"wires":[]},{"id":"ddd83bbe.062518","type":"ui_gauge","z":"8a242a1b.b175f8","name":"","group":"a73d63c0.d5d3b","order":0,"width":0,"height":0,"gtype":"donut","title":"Montage","label":"units","format":"{{value}}","min":"1","max":"0","colors":["#ff0000","#e6e600","#ca3838"],"seg1":"","seg2":"","x":574,"y":412,"wires":[]},{"id":"548bb946.ed0f78","type":"rpi-gpio in","z":"8a242a1b.b175f8","name":"Raspberry PI 3","pin":"3","intype":"tri","debounce":"25","read":false,"x":181,"y":345,"wires":[["5b354f8b.7d822"]]},{"id":"9f5a0857.ce2218","type":"ui_button","z":"8a242a1b.b175f8","name":"","group":"1f7d2c43.889e74","order":0,"width":0,"height":0,"passthru":false,"label":"Everything is OK","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":591,"y":145,"wires":[[]]},{"id":"c840d30e.66876","type":"ui_button","z":"8a242a1b.b175f8","name":"","group":"a73d63c0.d5d3b","order":0,"width":0,"height":0,"passthru":false,"label":"Warning!!!!!!!!!!!!!!!!!!","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":597,"y":310,"wires":[[]]},{"id":"1f7d2c43.889e74","type":"ui_group","z":"","name":"Test 1","tab":"6a7cc0cd.5935e","disp":true,"width":"6","collapse":false},{"id":"a73d63c0.d5d3b","type":"ui_group","z":"","name":"Test 2","tab":"6a7cc0cd.5935e","disp":true,"width":"6","collapse":false},{"id":"6a7cc0cd.5935e","type":"ui_tab","z":"","name":"Monitoring System","icon":"dashboard"}]
I did this, Normally no contact green donut seeming and should be everythings is OK
but also red donut is active and Warning !!!!!!!! is looking active.
I just want to when everything is ok, green donut and Everything is active.
when cable connected, green showing passive like grey and Warning is active.
How can I solve this problem ? Thanks for your advice.