I do what you are trying to do, but with a 3d printer.
[{"id":"625e498b.8f4ff8","type":"switch","z":"dd2d61eb.3a2db","name":"current > .35 passes","property":"payload","propertyType":"msg","rules":[{"t":"gt","v":".35","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":420,"y":1360,"wires":[["25ab321b.2d11ae"]]},{"id":"25ab321b.2d11ae","type":"traffic","z":"dd2d61eb.3a2db","name":"","property_allow":"payload","filter_allow":"ON","ignore_case_allow":false,"negate_allow":false,"send_allow":false,"property_stop":"payload","filter_stop":"OFF","ignore_case_stop":false,"negate_stop":false,"send_stop":false,"default_start":false,"differ":false,"x":650,"y":1360,"wires":[["828dff04.f32d8"]]},{"id":"1b95bbe7.3763c4","type":"change","z":"dd2d61eb.3a2db","name":"payload.ENERGY.Current","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.ENERGY.Current","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":1320,"wires":[["625e498b.8f4ff8","d7599773.5832a8"]]},{"id":"251c108d.ef8d2","type":"ui_switch","z":"dd2d61eb.3a2db","name":"","label":"3d-printer auto-off","tooltip":"","group":"44539f94.7e6d9","order":4,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"ON","onvalueType":"str","onicon":"","oncolor":"","offvalue":"OFF","offvalueType":"str","officon":"","offcolor":"","x":430,"y":1420,"wires":[["25ab321b.2d11ae"]]},{"id":"828dff04.f32d8","type":"trigger","z":"dd2d61eb.3a2db","name":"","op1":"","op2":"OFF","op1type":"nul","op2type":"str","duration":"15","extend":true,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":810,"y":1360,"wires":[["251c108d.ef8d2","8ae2fad4.d79558"]]},{"id":"d7599773.5832a8","type":"ui_gauge","z":"dd2d61eb.3a2db","name":"","group":"44539f94.7e6d9","order":3,"width":0,"height":0,"gtype":"gage","title":"3d printer current","label":"amps","format":"{{value}}","min":0,"max":"5","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1050,"y":1320,"wires":[]},{"id":"d77fd8eb.2406e8","type":"json","z":"dd2d61eb.3a2db","name":"","property":"payload","action":"","pretty":false,"x":370,"y":1320,"wires":[["1b95bbe7.3763c4"]]},{"id":"8ae2fad4.d79558","type":"mqtt out","z":"dd2d61eb.3a2db","name":"","topic":"cmnd/sonoff-3d-printer/POWER","qos":"","retain":"","broker":"24a67b3a.6b04c4","x":1090,"y":1360,"wires":[]},{"id":"393ea3f8.8049dc","type":"mqtt in","z":"dd2d61eb.3a2db","name":"","topic":"tele/sonoff-3d-printer/SENSOR","qos":"2","datatype":"auto","broker":"24a67b3a.6b04c4","x":170,"y":1320,"wires":[["d77fd8eb.2406e8"]]},{"id":"44539f94.7e6d9","type":"ui_group","name":"Other controls","tab":"acb9e96c.bfae08","order":3,"disp":true,"width":"4","collapse":false},{"id":"24a67b3a.6b04c4","type":"mqtt-broker","broker":"192.168.77.3","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"acb9e96c.bfae08","type":"ui_tab","name":"Higley Local Dashboard","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
I do use one additional node here that isn't installed by default. The excellent "stoplight" node can reduce a lot of spaghetti wires.