I'll throw my hat into this.
Option:
text input
node. Set to input date
format.
Sorry. Just saw you can't do that.
Send that through a node that will convert that to a timestamp
value.
Use a change
node to set flow
context of this value. (Say flow.wait_until
)
Next part:
inject
node spitting out a timestamp
every.... second. Given you want second accuracy.
That goes into a switch
node. This is configured to say:
if (msg.payload == flow.get(wait_until)
So only when the timestamp matches the flow context does it let the packet through.
You could maybe /1000
to make it real seconds, as I think the millisecond resolution is just a bit too much to ask.
Ok, not worded the best, but do you understand the gist of what I am saying?
I think only one extra node is required. I think it is the moment
node.
Sorry I can't name it exactly.
But anyway, that's my idea/thought/suggestion.
Idea in flow format:
Needed to do:
The inject
node needs to be set to inject every second.
[{"id":"b66769cb.37ea1","type":"ui_form","z":"d103f472.19f3c8","name":"","label":"DATE","group":"ac199624.cb655","order":2,"width":"6","height":"1","options":[{"label":"Date","value":"Date","type":"date","required":true,"rows":null},{"label":"Time","value":"time","type":"text","required":true,"rows":null}],"formValue":{"Date":"","time":""},"payload":"","submit":"submit","cancel":"cancel","topic":"","x":130,"y":2250,"wires":[["de99d9c8.432e5"]]},{"id":"91292cb4.d7058","type":"change","z":"d103f472.19f3c8","name":"Store","rules":[{"t":"set","p":"wait_until","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":680,"y":2250,"wires":[[]]},{"id":"2dd24339.d37be4","type":"switch","z":"d103f472.19f3c8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"wait_until","vt":"flow"}],"checkall":"true","repair":false,"outputs":1,"x":510,"y":2310,"wires":[["7bdac84.c763d38"]]},{"id":"29e4423f.e7dc76","type":"inject","z":"d103f472.19f3c8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":2310,"wires":[["221f2e95.87dbaa"]]},{"id":"7bdac84.c763d38","type":"debug","z":"d103f472.19f3c8","name":"ACTION HERE!","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":680,"y":2310,"wires":[]},{"id":"221f2e95.87dbaa","type":"moment","z":"d103f472.19f3c8","name":"","topic":"","input":"","inputType":"msg","inTz":"","adjAmount":0,"adjType":"days","adjDir":"add","format":"","locale":"","output":"","outputType":"msg","outTz":"","x":330,"y":2310,"wires":[["2dd24339.d37be4"]]},{"id":"de99d9c8.432e5","type":"string","z":"d103f472.19f3c8","name":"","methods":[{"name":"delRightMost","params":[{"type":"str","value":"T"}]}],"prop":"payload.Date","propout":"payload.Date","object":"msg","objectout":"msg","x":270,"y":2250,"wires":[["cb43b445.aa9d48"]]},{"id":"cb43b445.aa9d48","type":"template","z":"d103f472.19f3c8","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload.Date}}T{{payload.time}}","output":"str","x":430,"y":2250,"wires":[["91292cb4.d7058"]]},{"id":"ac199624.cb655","type":"ui_group","name":"Group 6","tab":"de5134a7.f0a0d","order":6,"disp":true,"width":6},{"id":"de5134a7.f0a0d","type":"ui_tab","name":"Tab 6","icon":"dashboard","order":5}]
You may need to tweak the moment
node.
But I hope you get the idea.