I dont have access to the Tasmota now im not at brewery.
i have the conversion figured out its getting the right data to the custom gauge that is the iss ue at the moment.
BTW: ...you can drop the JSON node right after the mqtt-in node, if you set the mqtt-in node to set its output to be a parsed JSON object in its settings...see my previous example above.
...yes, I think so....haven*t worked with the complex gauges myself, so cannot help much...if your examples work with plain values in msg.payload, you should prepare the input message that is going into the gauge accordingly.
Ok @hominidae that did work awesome.
i totally understand now what this did.
it set the "msg.payload.Temperature" as the msg.payload
so they gauge just got the temp number since thats what the gauge uses.
and this setting in mqtt
gets rid of this Jsonnode

and when i have access to Tasmota
i can remove the unit converter nodes.
this is freaking awesome.
now ill get all set up and working temps again in my flow.
then I get to remove one Ds18b20 from the esp8266 and connect it to its dedicated esp so then i can set up temp control for that single fermenter. once i have it working and understand. then i can do it for every vessel , good thing i bought more.
The more i go down this Rabbit hole, the more i crave carrots!
..actually it overrides the value of the msg object named "payload" with the value of the formerly present object msg.payload.Temperature value. Hence all previously existing content of msg.payload (the objects underneath) will be gone.
@9toejack ,,,to be more precise, you need to give a value of 0 or 1 along with the command in order to change its setting.
The command alone will only output the current value of the setting.
Hence use "SetOption8 1" to switch settings to Fahrenheit
yes , what i meant but didn't articulate properly.
I was assuming that. but was gonna attempt before i asked for clarification. ha ha
If you want to tidy all of this up a bit more - you can purchase Sonoff TH16 - they have an inbuilt relay and connect directly to the DS18B20 and are supported by Tasmota - all in a nice package
Craig
I believe there are plans to add more sensors etc so TH16 may not have enough free GPIOs
Yep could be an issue - but i think it would still be cleaner to use a TH16 for this and then deploy something elsewhere for additional sensors.
I have just retired a couple more of my NodeMCU which were being primarly used for temperature sensing and have replaced them with TH16 - much tidier and more robust build
Craig
so i was reading about using pressure transducers with the esp8266,
after i have the temp control part down. ill need to be able to close an air lock valve and then open a co2 valve , utilizing the pressure transducer for proper carbonation level will be done sometime in the future. that means with 1 fermenter i need to control 3 valves, temp sensor, and pressure transducer
...using IoT to monitor things is one thing, however starting to control real world processes is another.
You need to consider what will happen if your RPi or power will fail in a way or another....some gallons of brew going stale is one thing, but having to clean up a mess after some valve malfunctioning is another
...that said, we need to have more information on how valves will/should operate (like simple on/off switches or rather in a more PID controlled function and what states of your brewing process needs to be controlled - maybe by means of using a FSM). Please note that you can do all of the processing in NR but in tasmota there is a Rule - and optionally a complete scripting - feature, which would possibly allow you to do some controlling/processing directly at the device (making your processing more robust or less prone to error/malfunctioning).
Using a pressure transducer or integration with an ESP will possibly involve the need of more electronic circuits than just deploying a NodeMCU, for quality A/D signalling.
let us know what other valves/sensor hardware you had in mind.
Yes you are correct. before something as amazing as that gets implemented there has to be an oh crap button, may a holy crap button, but at least a fail safe.
here is the flow i have for turning water on and pumps on in the brew house.
[{"id":"79ca16ae.ce7748","type":"tab","label":"PUMPS ","disabled":false,"info":""},{"id":"d56f6c72.d35f1","type":"rpi-gpio out","z":"79ca16ae.ce7748","name":"pump a","pin":"16","set":"","level":"0","freq":"50","out":"out","bcm":true,"x":460,"y":100,"wires":[]},{"id":"4efd684d.cc9788","type":"inject","z":"79ca16ae.ce7748","name":"on","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":110,"y":100,"wires":[["e8d000e4.515ac"]]},{"id":"d430309f.70c2c","type":"inject","z":"79ca16ae.ce7748","name":"off","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":110,"y":160,"wires":[["e8d000e4.515ac"]]},{"id":"e8d000e4.515ac","type":"ui_switch","z":"79ca16ae.ce7748","name":"Pump A","label":"PUMP A","tooltip":"","group":"c7f092f0.0482d","order":1,"width":4,"height":2,"passthru":true,"decouple":"false","topic":"switch1","style":"","onvalue":"0","onvalueType":"num","onicon":"","oncolor":"","offvalue":"1","offvalueType":"num","officon":"","offcolor":"","x":260,"y":100,"wires":[["d56f6c72.d35f1"]],"icon":"font-awesome/fa-circle-o-notch"},{"id":"f593527.92e2fb","type":"inject","z":"79ca16ae.ce7748","name":"on","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":150,"y":200,"wires":[["d5668448.4ccf48"]]},{"id":"fe2ed303.7a3f1","type":"inject","z":"79ca16ae.ce7748","name":"off","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":190,"y":320,"wires":[["d5668448.4ccf48"]]},{"id":"d5668448.4ccf48","type":"ui_switch","z":"79ca16ae.ce7748","name":"Pump b","label":"PUMP B","tooltip":"","group":"c7f092f0.0482d","order":3,"width":4,"height":2,"passthru":true,"decouple":"false","topic":"switch2","style":"","onvalue":"0","onvalueType":"num","onicon":"","oncolor":"","offvalue":"1","offvalueType":"num","officon":"","offcolor":"","x":360,"y":300,"wires":[["491048c5.6703e8"]],"icon":"font-awesome/fa-circle-o-notch"},{"id":"491048c5.6703e8","type":"rpi-gpio out","z":"79ca16ae.ce7748","name":"pump b","pin":"20","set":"","level":"0","freq":"","out":"out","bcm":true,"x":544,"y":270,"wires":[]},{"id":"6849f38d.9514fc","type":"rpi-gpio out","z":"79ca16ae.ce7748","name":"HLT HEATER","pin":"9","set":true,"level":"0","freq":"50","out":"out","bcm":true,"x":780,"y":500,"wires":[]},{"id":"65517bec.124804","type":"inject","z":"79ca16ae.ce7748","name":"on","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":210,"y":500,"wires":[["e74e738f.887ec"]]},{"id":"45a8fe92.1b37c","type":"inject","z":"79ca16ae.ce7748","name":"off","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":210,"y":560,"wires":[["e74e738f.887ec"]]},{"id":"e74e738f.887ec","type":"ui_switch","z":"79ca16ae.ce7748","name":"HLT HEATER","label":"HLT HEATER","tooltip":"","group":"c7f092f0.0482d","order":9,"width":12,"height":3,"passthru":true,"decouple":"false","topic":"switch1","style":"","onvalue":"0","onvalueType":"num","onicon":"","oncolor":"","offvalue":"1","offvalueType":"num","officon":"","offcolor":"","x":380,"y":500,"wires":[["6849f38d.9514fc"]],"icon":"font-awesome/fa-circle-o-notch"},{"id":"6df684b64f4e0433","type":"ui_countdown_timer_switch","z":"79ca16ae.ce7748","name":"","label":"","group":"c7f092f0.0482d","order":5,"width":12,"height":6,"countdowns":["60","45","30","15","10","5"],"onvalue":"true","onvalueType":"bool","offvalue":"false","offvalueType":"bool","topic":"","outputState":"true","showDropdown":true,"x":383.38868713378906,"y":611.7099752426147,"wires":[["692342a666689259","8e39472e7058da93"]]},{"id":"692342a666689259","type":"ui_led","z":"79ca16ae.ce7748","order":11,"group":"c7f092f0.0482d","width":12,"height":1,"label":"","labelPlacement":"left","labelAlignment":"left","colorForValue":[{"color":"#ff0000","value":"false","valueType":"bool"},{"color":"#008000","value":"true","valueType":"bool"}],"allowColorForValueInMessage":false,"shape":"circle","showGlow":true,"name":"","x":567.3867530822754,"y":584.0654220581055,"wires":[]},{"id":"c8e434206680cca7","type":"http request","z":"79ca16ae.ce7748","name":"Download m3","method":"GET","ret":"bin","paytoqs":"ignore","url":"https://www.thesoundarchive.com/austinpowers/very-randy.mp3","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":719,"y":610.9999732971191,"wires":[["c8539001ddd978a0"]]},{"id":"c8539001ddd978a0","type":"ui_audio","z":"79ca16ae.ce7748","name":"","group":"c7f092f0.0482d","voice":"0","always":true,"x":884.0000076293945,"y":610.9999732971191,"wires":[]},{"id":"8e39472e7058da93","type":"switch","z":"79ca16ae.ce7748","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":571.2421989440918,"y":626.6249799728394,"wires":[["c8e434206680cca7"],["ae32e8afdbb78014"]]},{"id":"ae32e8afdbb78014","type":"http request","z":"79ca16ae.ce7748","name":"finished","method":"GET","ret":"bin","paytoqs":"ignore","url":"https://www.thesoundarchive.com/ringtones/AD-FinalCountdown_pt2.mp3","tls":"","persist":false,"proxy":"","authType":"","senderr":false,"x":703.2499847412109,"y":650.5391073226929,"wires":[["a2fd1cf9b06d8760"]]},{"id":"a2fd1cf9b06d8760","type":"ui_audio","z":"79ca16ae.ce7748","name":"","group":"c7f092f0.0482d","voice":"","always":"","x":885.2500534057617,"y":649.8750190734863,"wires":[]},{"id":"c7f092f0.0482d","type":"ui_group","name":"pump","tab":"a74ffe3d.4eb73","order":1,"disp":true,"width":12,"collapse":false},{"id":"a74ffe3d.4eb73","type":"ui_tab","name":"Brewery","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
[{"id":"b11ba8fedf2978f8","type":"tab","label":"WATER SUPPLY","disabled":false,"info":""},{"id":"f70d2635f905f3ee","type":"inject","z":"b11ba8fedf2978f8","name":"on","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":450,"y":400,"wires":[["3ac3cb12fe6fb0c0"]]},{"id":"04bf4c84484b4cab","type":"inject","z":"b11ba8fedf2978f8","name":"off","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":450,"y":460,"wires":[["3ac3cb12fe6fb0c0"]]},{"id":"5183fcb4f5d188ad","type":"inject","z":"b11ba8fedf2978f8","name":"off","props":[{"p":"payload"},{"p":"color","v":"black","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":363.99999618530273,"y":126.99999809265137,"wires":[["20b4cfb92225c577"]]},{"id":"87e0df81c5bb0352","type":"inject","z":"b11ba8fedf2978f8","name":"on","props":[{"p":"payload"},{"p":"color","v":"Red","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":361.9999942779541,"y":81.99999809265137,"wires":[["20b4cfb92225c577"]]},{"id":"20b4cfb92225c577","type":"ui_switch","z":"b11ba8fedf2978f8","name":"HLT Water Sply","label":"HLT Water Supply","tooltip":"","group":"4894865519cc16c4","order":1,"width":6,"height":1,"passthru":true,"decouple":"false","topic":"switch1","style":"","onvalue":"0","onvalueType":"num","onicon":"radio_button_checked","oncolor":"red","offvalue":"1","offvalueType":"num","officon":"radio_button_unchecked","offcolor":"Blue","x":562.0000076293945,"y":99.99999761581421,"wires":[["a7541f0da706325c"]],"icon":"font-awesome/fa-circle-o-notch"},{"id":"3ac3cb12fe6fb0c0","type":"ui_switch","z":"b11ba8fedf2978f8","name":"Boil Water Supply","label":"Boil Water Supply","tooltip":"","group":"3e7d17b4939773da","order":1,"width":6,"height":1,"passthru":true,"decouple":"false","topic":"switch1","style":"","onvalue":"0","onvalueType":"num","onicon":"radio_button_checked","oncolor":"red","offvalue":"1","offvalueType":"num","officon":"radio_button_unchecked","offcolor":"Blue","x":630,"y":400,"wires":[["5f998b77942f9697"]],"icon":"font-awesome/fa-circle-o-notch"},{"id":"a7541f0da706325c","type":"rpi-gpio out","z":"b11ba8fedf2978f8","name":"HLT Water Supply","pin":"23","set":"","level":"0","freq":"50","out":"out","bcm":true,"x":804.0000228881836,"y":100.99999809265137,"wires":[]},{"id":"5f998b77942f9697","type":"rpi-gpio out","z":"b11ba8fedf2978f8","name":"BOIL Water Supply","pin":"25","set":"","level":"0","freq":"50","out":"out","bcm":true,"x":830,"y":400,"wires":[]},{"id":"4894865519cc16c4","type":"ui_group","name":"Hot Liquor Tun","tab":"a74ffe3d.4eb73","order":4,"disp":true,"width":12,"collapse":false},{"id":"3e7d17b4939773da","type":"ui_group","name":"BoilKettle","tab":"a74ffe3d.4eb73","order":2,"disp":true,"width":12,"collapse":false},{"id":"a74ffe3d.4eb73","type":"ui_tab","name":"Brewery","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
here is a few pics of how the control panel is set
so if you look at picture with the switches, they are 2 way switches,
to the left i turn on water or pump manually, center is off(dissabled)
and to the right is auto(controlled from raspberry PI)
I will only use the esp8266 to control cooling for fermenters and heating for the hlt and boil kettle(because of pwm)
as far as co2 valve , and airlock valves those will be ran from pi directly,
I'll will also use esp8266 to set up pressure transducers, however, will not be same esp8266 as for temp, and temp control, Maybe extra stuff but , if one little piece fails it doesn't stop the rest, and makes for an easier fix.
also if you notic from inside pic. pi is low voltage so it controlls a relay board, and then the low voltage from relay controls SSR's that control the single phase, and then in turn a ssr is controling my 3 phase contactor for my heating elements.
I'll probably use a slave pi for all the pressure transducer stuff or use my arduino mega, i already have it programmed to calculate the volume in my HLT and my Boil kettle, and it also calculates my specific gravity in boil kettle , so the actual volume is accurate.
i did a function node to calculate the volume for me i dont have it in flow right now on this laptop, its on main computer at home.
so here is a pic of the formula function
...so, based on the pics with switches and relay-board...your valves operate in simple open/close fashion and no need to adjust / care for setting or monitoring a valve position in between....like with a shutter, solenoid valve or some kind of level control?
Are you planning to implement the different control algorithms in NR or is there a special piece of software for controlling the brewery process installed/involved?
...anyway, looks very interesting. Have fun and thanks for sharing.
Don't forget to send us some samples
so for now its just on and off, like flipping a light switch.
the water supply is just 110v solenoid valves.
however, my plan is to switch to 12volt electric ball valves for 2 reasons.
1 the solenoid valve closing fast causes water hammer in the water lines.
2. the electric ball valve will ballence out the opening and closing hard when the float switch in the tank bounces from filling up.
I havent looked into a a safety check yet. i have power coming from the controlled sides of the relays turning on indicator lights on my control panel.
i should be able to use the same low voltage to trigger a gpio pin to declare state, aka high valve is open. low valve is closed. and then an somewhere an iff statement that tells system that valve is turned on by interface, but it still shows off, sends an error and hault the system type thing.
if an error occurs i could probably have another switch inline that if such error occurs that switch is opened breaking the signal.
hopefully that makes a little sense , i know my mind is weird.
bassicly my steps in configuring are .
displaying temps.
control valves.
controlling temps.
script controlling the valves and temps with fail safe.
adding more valves to automate more of the brew proccess.(when I understand it thourally)
and making nodered dashboard eyecandy.
obviouslly a lot to do but baby steps is the only way.
here is a dashboard of someones brewing software. i evently want mine to be as useful and extravagant as this one.
notice the green and red rectangles on the plumbing lines.
those could be all controlled with node red. to automate mashing process of the beer making.
taking out some possibilities of human error lol
I would if i could, but anyone on this post was to pop in my place you would be treated right.
either with my beer, or my Rootbeer i make.(maybe even a little{alot} of sarcasm)
cheers
and yes i definitely will use switches to control switches. fail safes are the only way to divert from catastrophe