UI_numeric node

Hi! I need a dashboard number cycler, exactly like the UI_numeric node; running into the following issue. The node needs to send a default value (1) whenever its input is triggered in the flow - so I have switch node with that value. The problem is that it doesn't send anything if its already on the value that it's receiving. Is there any workaround ?

Can you provide a small sample flow showing the issue? Please export it and paste it into a response

If it always sends the same value can you just add a wire around the ui_ numeric node ?

Here you go. If numeric node is at value "1" it doesn't pass the msg through. Also, noticed that at certain states (can't confirm which) and sent out a text string "change" instead of number.

[
    {
        "id": "7923d80d937bc1b1",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "801a23eb0bcbbaac",
        "type": "inject",
        "z": "7923d80d937bc1b1",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 600,
        "y": 360,
        "wires": [
            [
                "98ac5a1eb9f1ed54"
            ]
        ]
    },
    {
        "id": "98ac5a1eb9f1ed54",
        "type": "change",
        "z": "7923d80d937bc1b1",
        "name": "page",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "1",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "topic",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 750,
        "y": 360,
        "wires": [
            [
                "5178c49d1cb0e2ce"
            ]
        ]
    },
    {
        "id": "5178c49d1cb0e2ce",
        "type": "ui_numeric",
        "z": "7923d80d937bc1b1",
        "name": "",
        "label": "",
        "tooltip": "",
        "group": "20d55a3df46c721c",
        "order": 5,
        "width": "1",
        "height": "1",
        "wrap": false,
        "passthru": true,
        "topic": "topic",
        "topicType": "msg",
        "format": "{{msg.payload}}",
        "min": "0",
        "max": "20",
        "step": 1,
        "className": "",
        "x": 890,
        "y": 360,
        "wires": [
            []
        ]
    },
    {
        "id": "20d55a3df46c721c",
        "type": "ui_group",
        "name": "CENTER",
        "tab": "5e2e41aa.9826b",
        "order": 1,
        "disp": false,
        "width": "16",
        "collapse": false,
        "className": ""
    },
    {
        "id": "5e2e41aa.9826b",
        "type": "ui_tab",
        "name": "ANALYTICS",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

image

I actually want it to send out (pass through) the same value "1" whenever its triggered in the flow

That's what @dceejay was suggesting.

I notice that your change node sends in a string "1" this should really be a number, so I modified the change node. Try this and see if it does what you need ....

[{"id":"801a23eb0bcbbaac","type":"inject","z":"7923d80d937bc1b1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":600,"y":360,"wires":[["98ac5a1eb9f1ed54"]]},{"id":"98ac5a1eb9f1ed54","type":"change","z":"7923d80d937bc1b1","name":"page","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"},{"t":"set","p":"topic","pt":"msg","to":"topic","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":360,"wires":[["5178c49d1cb0e2ce","d0c3aa72e0b149d3"]]},{"id":"5178c49d1cb0e2ce","type":"ui_numeric","z":"7923d80d937bc1b1","name":"","label":"","tooltip":"","group":"20d55a3df46c721c","order":5,"width":"1","height":"1","wrap":false,"passthru":true,"topic":"topic","topicType":"msg","format":"{{msg.payload}}","min":"0","max":"20","step":1,"className":"","x":900,"y":300,"wires":[["d0c3aa72e0b149d3"]]},{"id":"d0c3aa72e0b149d3","type":"debug","z":"7923d80d937bc1b1","name":"debug 61","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1100,"y":360,"wires":[]},{"id":"20d55a3df46c721c","type":"ui_group","name":"CENTER","tab":"5e2e41aa.9826b","order":1,"disp":false,"width":"16","collapse":false,"className":""},{"id":"5e2e41aa.9826b","type":"ui_tab","name":"ANALYTICS","icon":"dashboard","disabled":false,"hidden":false}]

Thanks, but unfortunately the issue remains. After the numeric node gets set to 1 it no longer passes that same msg through.

Did you try the flow ?

Each time you inject 1 you will see 1 in the debug node, that is what you asked for ?

The numeric node doesn't need to send anything as the wire bypasses it.

I see, yes, that works, just need to disable msg passthrough otherwise you get duplicates if the node is not on 1 - thank you!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.