Need Text and Numeric Input help

I need to set my charge values that will be used to drive the automated runs.

So I need to set one value to 0-100 and the other value 0-100.

When I hit the run button it will open and close valves based on the count.

I don't want to pass on a message as i am incrementing.

Any suggestions? New nodes ?

[{"id":"c585499a.0a48","type":"mqtt in","z":"c3b24910.186f48","name":"Reset","topic":"Reset","qos":"2","datatype":"auto","broker":"6b8f56d7.82af78","x":60,"y":1080,"wires":[["666dca14.db822c","3ca0b23d.b5aa06","96d4e2e.c04962","3019b205.cf6bee","fb4f8442.57435","df1f919c.fb015","f81f522f.97cab8","e497a056.d816e","c517d77b.699888","f7e01892.1fbe48"]]},{"id":"f78d05e4.ebca18","type":"debug","z":"c3b24910.186f48","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":840,"y":1080,"wires":[]},{"id":"aa1a6d81.1e3d8","type":"ui_numeric","z":"c3b24910.186f48","name":"Hydrogen Charge","label":"Hydrogen Charge","tooltip":"","group":"f3115efa.a37cd","order":1,"width":"4","height":"4","wrap":true,"passthru":true,"topic":"Hydrogen Charge","format":"{{value}}","min":0,"max":"100","step":1,"x":580,"y":1080,"wires":[["f78d05e4.ebca18"]]},{"id":"75c1e840.99c138","type":"ui_numeric","z":"c3b24910.186f48","name":"Oxygen Charge","label":"Oxygen Charge","tooltip":"","group":"f3115efa.a37cd","order":3,"width":"4","height":"4","wrap":true,"passthru":true,"topic":"Oxygen Charge","format":"{{value}}","min":0,"max":"100","step":1,"x":570,"y":1140,"wires":[["f78d05e4.ebca18"]]},{"id":"9dc72169.5b237","type":"ui_ui-button","z":"c3b24910.186f48","action":"click","actionType":"str","name":"Run","group":"f3115efa.a37cd","order":5,"width":"4","height":"4","passthru":false,"label":"Run","tooltip":"","color":"black/white","bgcolor":"blue","icon":"","x":60,"y":1140,"wires":[["b13330f9.7147"]]},{"id":"f7e01892.1fbe48","type":"change","z":"c3b24910.186f48","name":"","rules":[{"t":"set","p":"enabled","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":1080,"wires":[["aa1a6d81.1e3d8","75c1e840.99c138"]]},{"id":"b13330f9.7147","type":"change","z":"c3b24910.186f48","name":"","rules":[{"t":"set","p":"enabled","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":1140,"wires":[["aa1a6d81.1e3d8","75c1e840.99c138"]]},{"id":"6b8f56d7.82af78","type":"mqtt-broker","z":"","name":"PI","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"home/temperature","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"f3115efa.a37cd","type":"ui_group","z":"","name":"Inputs","tab":"91b245b1.b4ed7","order":12,"disp":false,"width":"80","collapse":false},{"id":"91b245b1.b4ed7","type":"ui_tab","z":"","name":"Pump Control Dashboard","icon":"dashboard","order":3,"disabled":false,"hidden":false}]

Sorry but you seem to be making some assumptions about what we know. Some additional background is needed to let us understand the question.

I have developed the worlds fastest most efficient pump based on hypersonic pulse detonation of Hydrogen and Oxygen. I have 2 valves that let in the nessesary gas to provide 1 PSIA of pressure each time they operate. I have the dashboard that manually operates this and now have to automate it. So I need to set the charge values of Hydrogen and Oxygen ...1 to 100. I dont need the messages passed on each time I increment. I have a master reset button that resets all the values to zero. But I need to set the desired max pressure as say 50 PSI, so I have to operate the valves 50 times to set the charge.

I want to hit the run button that reads the 50 each cycle but cant seen to get a node working correctly to provide the 50 Numeric when I need it.

Each time I increment the numeric it passes a message. I just need something I can poke to see what its set to (50) when I need it.

1/26/2020, 4:30:12 PMnode: f78d05e4.ebca18
Hydrogen Charge : msg : Object
object
payload: 2
topic: "Hydrogen Charge"
socketid: "2x9Q9eBimrbQghGFAAAQ"
_msgid: "b21b9b01.68c848"
1/26/2020, 4:30:13 PMnode: f78d05e4.ebca18
Hydrogen Charge : msg : Object
object
payload: 3
topic: "Hydrogen Charge"
socketid: "2x9Q9eBimrbQghGFAAAQ"
_msgid: "c6395394.6ae5b"
1/26/2020, 4:30:14 PMnode: f78d05e4.ebca18
Hydrogen Charge : msg : Object
{ payload: 4, topic: "Hydrogen Charge", socketid: "2x9Q9eBimrbQghGFAAAQ", _msgid: "852b0df6.f7339" }
1/26/2020, 4:30:17 PMnode: f78d05e4.ebca18
Hydrogen Charge : msg : Object
object
payload: 4
socketid: "2x9Q9eBimrbQghGFAAAQ"
_msgid: "7c17edcf.b04a84"
enabled: true
topic: "Hydrogen Charge"
1/26/2020, 4:30:18 PMnode: f78d05e4.ebca18
Oxygen Charge : msg : Object
{ payload: 0, socketid: "2x9Q9eBimrbQghGFAAAQ", _msgid: "7c17edcf.b04a84", enabled: true, topic: "Oxygen Charge" }
1/26/2020, 4:35:01 PMnode: f78d05e4.ebca18
Hydrogen Charge : msg : Object
object
topic: "Hydrogen Charge"
payload: 0
qos: 0
retain: false
_topic: "Reset"
_msgid: "b223f30.97b731"
enabled: false

Looks like you want a form instead of the button then. The form will have a number input field and a button to submit. Then you'll only get the value out when you press the button.

image

This too has its problem. I can't integrate it with the run button and then poke the form for the message.

I can poke the other numeric boxes.

[{"id":"c585499a.0a48","type":"mqtt in","z":"c3b24910.186f48","name":"Reset","topic":"Reset","qos":"2","datatype":"auto","broker":"6b8f56d7.82af78","x":60,"y":1080,"wires":[["666dca14.db822c","3ca0b23d.b5aa06","96d4e2e.c04962","3019b205.cf6bee","fb4f8442.57435","df1f919c.fb015","f81f522f.97cab8","e497a056.d816e","c517d77b.699888","c543ccca.1bc88"]]},{"id":"f78d05e4.ebca18","type":"debug","z":"c3b24910.186f48","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":410,"y":1140,"wires":[]},{"id":"9dc72169.5b237","type":"ui_ui-button","z":"c3b24910.186f48","action":"click","actionType":"str","name":"Run","group":"f3115efa.a37cd","order":5,"width":"4","height":"4","passthru":false,"label":"Run","tooltip":"","color":"black/white","bgcolor":"blue","icon":"","x":60,"y":1140,"wires":[["c543ccca.1bc88"]]},{"id":"c543ccca.1bc88","type":"ui_form","z":"c3b24910.186f48","name":"Charge","label":"Charge","group":"f3115efa.a37cd","order":3,"width":"10","height":"4","options":[{"label":"Oxygen Charge","value":"Oxygen Charge","type":"number","required":true,"rows":null},{"label":"Hydrogen Charge","value":"Hydrogen Charge","type":"number","required":true,"rows":null}],"formValue":{"Oxygen Charge":"","Hydrogen Charge":""},"payload":"","submit":"submit","cancel":"cancel","topic":"","x":240,"y":1140,"wires":[["f78d05e4.ebca18"]]},{"id":"6b8f56d7.82af78","type":"mqtt-broker","z":"","name":"PI","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"home/temperature","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"f3115efa.a37cd","type":"ui_group","z":"","name":"Inputs","tab":"91b245b1.b4ed7","order":12,"disp":false,"width":"80","collapse":false},{"id":"91b245b1.b4ed7","type":"ui_tab","z":"","name":"Pump Control Dashboard","icon":"dashboard","order":3,"disabled":false,"hidden":false}]

I think that you are hitting a common issue - trying to drive Dashboard in ways it doesn't like. So you probably will need to move everything into a template so you are setting up everything yourself.

I don't really use Dashboard for anything other than a quick prototype very occasionally. So it is possible that I've missed something easier.

I've changed the category of this question to Dashboard since that is what it is about.

1 Like

You can pre-set the ui_form by sending in the values as you expect them to come out... so in the example given you would need to send in an object like
{"Oxygen Charge":100,"Hydrogen Charge":20}
(or whatever makes sense) - The user can then change them and submit the form.

Or if that's not what is required - I guess we still don't understand the question.... :slight_smile:

Ok, there is no way to "Poke" the form with the run button to get its values out. You can see the form only allows sliders and the text is always a bet skewed in the form.

You can see from the Numeric that it sends a message each time I increment the counter, but I can "Poke" it with the run button and they return the set values.

Reset doesn't reset the form, but it does reset the Numeric.

I need to build the run cycle of the pump as follows.

  1. Set charge values and cycle count
  2. Run charge valves to the set values to build the charge
  3. Close Inlet valve
  4. Start High Speed capture of video, pressure, and temperature
  5. Trigger Ignition
  6. Wait 1 to 1.5 sec to max low pressure.
  7. Open Inlet
  8. If continuous mode - Run again or till cycle count is hit.

1/27/2020, 4:20:53 PMnode: 902b1f87.1ab8e
Charge : msg : Object
object
payload: object
topic: "Charge"
socketid: "PT0R6c9V--TaoocgAAA7"
_msgid: "1b71e30d.06fe0d"
1/27/2020, 4:20:56 PMnode: 902b1f87.1ab8e
Hydrogen Charge : msg : Object
object
payload: 1
topic: "Hydrogen Charge"
socketid: "PT0R6c9V--TaoocgAAA7"
_msgid: "8f7a6f38.6359c"
1/27/2020, 4:20:57 PMnode: 902b1f87.1ab8e
Hydrogen Charge : msg : Object
object
payload: 2
topic: "Hydrogen Charge"
socketid: "PT0R6c9V--TaoocgAAA7"
_msgid: "f4d4dfa3.3da74"
1/27/2020, 4:20:57 PMnode: 902b1f87.1ab8e
Hydrogen Charge : msg : Object
object
payload: 3
topic: "Hydrogen Charge"
socketid: "PT0R6c9V--TaoocgAAA7"
_msgid: "e3ed800a.b782"
1/27/2020, 4:20:59 PMnode: 902b1f87.1ab8e
Oxygen Charge : msg : Object
object
payload: 1
topic: "Oxygen Charge"
socketid: "PT0R6c9V--TaoocgAAA7"
_msgid: "ce03c68f.0ce658"
1/27/2020, 4:20:59 PMnode: 902b1f87.1ab8e
Oxygen Charge : msg : Object
object
payload: 2
topic: "Oxygen Charge"
socketid: "PT0R6c9V--TaoocgAAA7"
_msgid: "db968afa.83dce8"
1/27/2020, 4:21:00 PMnode: 902b1f87.1ab8e
Oxygen Charge : msg : Object
object
payload: 3
topic: "Oxygen Charge"
socketid: "PT0R6c9V--TaoocgAAA7"
_msgid: "f1c6e401.57a318"
1/27/2020, 4:21:01 PMnode: 902b1f87.1ab8e
Hydrogen Charge : msg : Object
object
payload: 3
socketid: "PT0R6c9V--TaoocgAAA7"
_msgid: "3ebd5d1d.c3f082"
topic: "Hydrogen Charge"
1/27/2020, 4:21:02 PMnode: 902b1f87.1ab8e
Oxygen Charge : msg : Object
object
payload: 3
socketid: "PT0R6c9V--TaoocgAAA7"
_msgid: "3ebd5d1d.c3f082"
topic: "Oxygen Charge"
[{"id":"902b1f87.1ab8e","type":"debug","z":"e1213f64.542d9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":770,"y":110,"wires":[]},{"id":"11d103d.42a70fc","type":"ui_ui-button","z":"e1213f64.542d9","action":"click","actionType":"str","name":"Run","group":"c1fd0027.f84b3","order":1,"width":5,"height":10,"passthru":false,"label":"Run","tooltip":"","color":"black/white","bgcolor":"blue","icon":"","x":320,"y":110,"wires":[["3a1fbd57.19d522","14a2e660.2c0a8a","571628f3.ffb318"]]},{"id":"3a1fbd57.19d522","type":"ui_form","z":"e1213f64.542d9","name":"Charge","label":"Charge","group":"df35ec3e.35e01","order":4,"width":15,"height":4,"options":[{"label":"Oxygen Charge","value":"Oxygen Charge","type":"number","required":true,"rows":null},{"label":"Hydrogen Charge","value":"Hydrogen Charge","type":"number","required":true,"rows":null}],"formValue":{"Oxygen Charge":"","Hydrogen Charge":""},"payload":"","submit":"submit","cancel":"cancel","topic":"Charge","x":500,"y":110,"wires":[["902b1f87.1ab8e"]]},{"id":"14a2e660.2c0a8a","type":"ui_numeric","z":"e1213f64.542d9","name":"Hydrogen Charge","label":"Hydrogen Charge","tooltip":"","group":"6135d68a.78ab78","order":1,"width":15,"height":5,"wrap":false,"passthru":true,"topic":"Hydrogen Charge","format":"{{value}}","min":0,"max":"100","step":1,"x":530,"y":160,"wires":[["902b1f87.1ab8e"]]},{"id":"571628f3.ffb318","type":"ui_numeric","z":"e1213f64.542d9","name":"Oxygen Charge","label":"Oxygen Charge","tooltip":"","group":"6135d68a.78ab78","order":2,"width":15,"height":5,"wrap":false,"passthru":true,"topic":"Oxygen Charge","format":"{{value}}","min":0,"max":"100","step":1,"x":520,"y":210,"wires":[["902b1f87.1ab8e"]]},{"id":"db1ccc81.d6dee","type":"mqtt in","z":"e1213f64.542d9","name":"Reset","topic":"Reset","qos":"2","datatype":"auto","broker":"6b8f56d7.82af78","x":130,"y":50,"wires":[["50b2cd9f.ba2304"]]},{"id":"50b2cd9f.ba2304","type":"change","z":"e1213f64.542d9","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":290,"y":50,"wires":[["3a1fbd57.19d522","14a2e660.2c0a8a","571628f3.ffb318"]]},{"id":"d095f23e.20538","type":"ui_text","z":"e1213f64.542d9","group":"df35ec3e.35e01","order":7,"width":0,"height":0,"name":"","label":"text","format":"{{msg.payload}}","layout":"row-spread","x":480,"y":270,"wires":[]},{"id":"c1fd0027.f84b3","type":"ui_group","z":"","name":"Inputs","tab":"4f58277d.42dda8","order":1,"disp":true,"width":"5","collapse":false},{"id":"df35ec3e.35e01","type":"ui_group","z":"","name":"Form","tab":"4f58277d.42dda8","order":2,"disp":true,"width":"15","collapse":false},{"id":"6135d68a.78ab78","type":"ui_group","z":"","name":"Numeric","tab":"4f58277d.42dda8","order":3,"disp":true,"width":"15","collapse":false},{"id":"6b8f56d7.82af78","type":"mqtt-broker","z":"","name":"PI","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"home/temperature","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"4f58277d.42dda8","type":"ui_tab","z":"","name":"Test","icon":"dashboard","order":5,"disabled":false,"hidden":false}]

This topic was automatically closed after 60 days. New replies are no longer allowed.