@Trying_to_learn
The "target" is the desired temp of my vessel.
When using a sliding bar or a drop down menu to select the desired "target" it wouldn't keep sending the payload for "target"
so setting it up as a context helped keep that message alive or stored.
right above your post is finished working flow in dashboard.
Here is my flow working and cleaned up.
ill be going in and renaming my "target" and some other pieces making more clear as to what I have done and simply copying the flow and quick change for the other fermenters. this one is actually live and keeping beer in a fermenter at 38 degrees F
[{"id":"f6858fe416b029b9","type":"tab","label":"West Fermenter","disabled":false,"info":"","env":[]},{"id":"a1935b0f08af8408","type":"ui_switch","z":"f6858fe416b029b9","name":"Wferm","label":"Wferm","tooltip":"","group":"10c36bea9197e264","order":4,"width":5,"height":1,"passthru":false,"decouple":"true","topic":"cmnd/Wferm/POWER","style":"","onvalue":"ON","onvalueType":"str","onicon":"","oncolor":"","offvalue":"OFF","offvalueType":"str","officon":"","offcolor":"","x":400.6666679382324,"y":322.2500858306885,"wires":[["4349ab2a681252f2","dcb2c21aa32eec71"]]},{"id":"4349ab2a681252f2","type":"mqtt out","z":"f6858fe416b029b9","name":"","topic":"","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"31a99116.50a74e","x":565.2381553649902,"y":374.0000877380371,"wires":[]},{"id":"ce5c66f008f4cbf3","type":"mqtt in","z":"f6858fe416b029b9","name":"","topic":"stat/Wferm/POWER","qos":"1","datatype":"auto","broker":"31a99116.50a74e","nl":false,"rap":false,"inputs":0,"x":211.23807525634766,"y":279.0000858306885,"wires":[["a1935b0f08af8408","5a422122ed052f7d"]]},{"id":"dcb2c21aa32eec71","type":"debug","z":"f6858fe416b029b9","name":"out","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":562.2381935119629,"y":325.00004482269287,"wires":[]},{"id":"5a422122ed052f7d","type":"debug","z":"f6858fe416b029b9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":424.80228424072266,"y":279.9245195388794,"wires":[]},{"id":"987d16ece3fa2e58","type":"ui_digital_display","z":"f6858fe416b029b9","name":"","group":"10c36bea9197e264","order":2,"width":5,"height":1,"digits":5,"decimals":1,"x":682.5644073486328,"y":106.93490600585938,"wires":[]},{"id":"c978949d90d42b1e","type":"mqtt in","z":"f6858fe416b029b9","name":"","topic":"tele/Wferm/SENSOR","qos":"2","datatype":"auto","broker":"31a99116.50a74e","nl":false,"rap":true,"rh":0,"inputs":0,"x":126.56424713134766,"y":27.83073902130127,"wires":[["4c4294bd3b2d8cf3","a1bfb15585d7eb59"]]},{"id":"93a3046bdaeff2c8","type":"debug","z":"f6858fe416b029b9","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":686.5643920898438,"y":219.92105102539062,"wires":[]},{"id":"65f9fd5be1a51434","type":"change","z":"f6858fe416b029b9","name":"set payload to Temperature value","rules":[{"t":"move","p":"payload.Temperature","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":454.00897216796875,"y":195.00180339813232,"wires":[["987d16ece3fa2e58","93a3046bdaeff2c8","b347d6e4a4c09c90","d6958a16fb27f9d2"]]},{"id":"4c4294bd3b2d8cf3","type":"debug","z":"f6858fe416b029b9","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":383.56078720092773,"y":30,"wires":[]},{"id":"a1bfb15585d7eb59","type":"json","z":"f6858fe416b029b9","name":"","property":"payload","action":"","pretty":false,"x":137.00869178771973,"y":134.33507919311523,"wires":[["27d0a195ec58a6a1"]]},{"id":"bb44589f1917700d","type":"switch","z":"f6858fe416b029b9","name":"If =442FBOIL","property":"payload.Id","propertyType":"msg","rules":[{"t":"cont","v":"3C01F096FCA3","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":339.11983489990234,"y":103.00185203552246,"wires":[["65f9fd5be1a51434"],[]]},{"id":"27d0a195ec58a6a1","type":"split","z":"f6858fe416b029b9","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":150.11634826660156,"y":192.97664165496826,"wires":[["bb44589f1917700d"]]},{"id":"9bd6b8480e7b4725","type":"ui_slider","z":"f6858fe416b029b9","name":"Target","label":"Target Temp","tooltip":"","group":"10c36bea9197e264","order":10,"width":0,"height":0,"passthru":true,"outs":"end","topic":"target","min":0,"max":"200","step":1,"x":1150.0086555480957,"y":20,"wires":[["df13c59e58745e77","c4e2cbc7eb73c7e6"]]},{"id":"df13c59e58745e77","type":"debug","z":"f6858fe416b029b9","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1305.335781097412,"y":20,"wires":[]},{"id":"c4e2cbc7eb73c7e6","type":"change","z":"f6858fe416b029b9","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"target","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1267.9103775024414,"y":71.4497184753418,"wires":[["aaafdd9f9a8b598e","8cc9931debd26135"]]},{"id":"aaafdd9f9a8b598e","type":"debug","z":"f6858fe416b029b9","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1455.2969055175781,"y":53.09364318847656,"wires":[]},{"id":"8cc9931debd26135","type":"change","z":"f6858fe416b029b9","name":"","rules":[{"t":"set","p":"target","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1450.9261474609375,"y":92.62238121032715,"wires":[[]]},{"id":"06ea2d4d1d36cae0","type":"switch","z":"f6858fe416b029b9","name":"","property":"target","propertyType":"flow","rules":[{"t":"gte","v":"ambient","vt":"flow"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":974.9296836853027,"y":182.63451766967773,"wires":[["f59a64501d3e4995","b757ad2e9a21172d"],["dca9643d538d9c10","efbd0245b8dd1ad5"]]},{"id":"f59a64501d3e4995","type":"change","z":"f6858fe416b029b9","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1152.926368713379,"y":183.62065601348877,"wires":[["8e8ffc3b58648b48","be56299a7516053c"]]},{"id":"dca9643d538d9c10","type":"change","z":"f6858fe416b029b9","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1153.926368713379,"y":220.6223258972168,"wires":[["e4614f962524aec5","be56299a7516053c"]]},{"id":"b757ad2e9a21172d","type":"debug","z":"f6858fe416b029b9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1130.926254272461,"y":148.74212837219238,"wires":[]},{"id":"efbd0245b8dd1ad5","type":"debug","z":"f6858fe416b029b9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1121.92626953125,"y":252.74561882019043,"wires":[]},{"id":"8e8ffc3b58648b48","type":"debug","z":"f6858fe416b029b9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1321.9333801269531,"y":152.74212837219238,"wires":[]},{"id":"e4614f962524aec5","type":"debug","z":"f6858fe416b029b9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1323.9279975891113,"y":256.74909019470215,"wires":[]},{"id":"02ce3d1fc02a6740","type":"ui_dropdown","z":"f6858fe416b029b9","name":"","label":"","tooltip":"","place":"Select option","group":"10c36bea9197e264","order":7,"width":0,"height":0,"passthru":true,"multiple":false,"options":[{"label":"Lager","value":"55","type":"str"},{"label":"Ale","value":"68","type":"str"},{"label":"Dyacetal Rest","value":"70","type":"str"},{"label":"Cold crash","value":"38","type":"str"}],"payload":"","topic":"target_temperature","x":1007.0086975097656,"y":20,"wires":[["9bd6b8480e7b4725"]]},{"id":"b347d6e4a4c09c90","type":"change","z":"f6858fe416b029b9","name":"","rules":[{"t":"set","p":"ambient","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":793.4491386413574,"y":181.65693759918213,"wires":[["06ea2d4d1d36cae0"]]},{"id":"be56299a7516053c","type":"change","z":"f6858fe416b029b9","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"cmnd/Wferm/POWER","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1333.0086555480957,"y":199.00171947479248,"wires":[["0cf85aaa0a7b0507"]]},{"id":"0cf85aaa0a7b0507","type":"mqtt out","z":"f6858fe416b029b9","name":"","topic":"","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"31a99116.50a74e","x":1481.0086784362793,"y":199.0017604827881,"wires":[]},{"id":"d6958a16fb27f9d2","type":"ui_template","z":"f6858fe416b029b9","group":"10c36bea9197e264","name":"West Fermenter","order":11,"width":6,"height":6,"format":"<div id=\"{{'gauge_'+$id}}\" class=\"g-container\" style=\"--gauge-value:0; --container-size:6; --gn-distance:14; --ga-tick-count:10; --ga-subtick-count:100; --g-unit:''\">\n <div id=\"bgr\" class=\"g-body\">\n <div class=\"g-ring\">\n <div class=\"g-rivets\">\n <div class=g-rivet></div>\n <div class=g-rivet></div>\n <div class=g-rivet></div>\n <div class=g-rivet></div>\n </div>\n <div class=\"g-plate\">\n <div class=\"g-ticks\">\n <div class=\"g-tick\" style=\"--ga-tick:1;\"></div>\n <div class=\"g-tick\" style=\"--ga-tick:3;\"></div>\n <div class=\"g-tick\" style=\"--ga-tick:5;\"></div>\n <div class=\"g-tick\" style=\"--ga-tick:7;\"></div>\n <div class=\"g-tick\" style=\"--ga-tick:9;\"></div>\n <div class=\"g-tick\" style=\"--ga-tick:11;\"></div>\n </div>\n <div class=\"g-ticks\">\n <div class=\"g-subtick\" style=\"--ga-tick:11;\"></div>\n <div class=\"g-subtick\" style=\"--ga-tick:31;\"></div>\n <div class=\"g-subtick\" style=\"--ga-tick:51;\"></div>\n <div class=\"g-subtick\" style=\"--ga-tick:71;\"></div>\n <div class=\"g-subtick\" style=\"--ga-tick:91;\"></div>\n </div>\n <div class=\"g-nums\">\n <div class=\"g-num\" style=\"--ga-tick:1;\" >0</div>\n <div class=\"g-num\" style=\"--ga-tick:3;\">20</div>\n <div class=\"g-num\" style=\"--ga-tick:5;\">40</div>\n <div class=\"g-num\" style=\"--ga-tick:7;\">60</div>\n <div class=\"g-num\" style=\"--ga-tick:9;\">80</div>\n <div class=\"g-num\" style=\"--ga-tick:11;\">100</div>\n </div>\n <div class=\"g-label\">West Fermenter</div>\n <div class=\"g-needle\"></div>\n <div class=\"g-needle-ring\"></div>\n <div id=\"{{'gauge_val_'+$id}}\" class=\"g-val\"></div>\n </div>\n </div>\n </div>\n</div>\n<script>\n(function(scope) {\n let min = 0;\n let max = 100;\n scope.$watch('msg', function(msg) {\n if (msg) {\n // Do something when msg arrives\n const v = Math.floor(((msg.payload - min) / (max - min)) * 100);\n document.getElementById('gauge_'+scope.$id).style.setProperty('--gauge-value', v);\n document.getElementById('gauge_val_'+scope.$id).innerText = v+\"Ā°F\";\n }\n \n });\n})(scope);\n</script>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":732.0086898803711,"y":145.00177574157715,"wires":[[]]},{"id":"10c36bea9197e264","type":"ui_group","name":"WestFermenter2new","tab":"a74ffe3d.4eb73","order":12,"disp":true,"width":"12","collapse":false},{"id":"31a99116.50a74e","type":"mqtt-broker","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"a74ffe3d.4eb73","type":"ui_tab","name":"Brewery","icon":"dashboard","order":1,"disabled":false,"hidden":false}]