Schedex and Date/Time Formatter

Hi All,

I’m trying to create a custom, programmable timer using Node Red. it will eventually take a user input on the HA dashboard and then set the end time for the timer. I’ve tried Schedex and eztimer and I am still having trouble. I want to set the timer “on time” to the current time. Can anyone tell me why the below flow doesn’t work? I keep getting “undefined” in the debug window and “Unformatted Input” in the Schedex message window.

It seems to be driven by the msg.payload.ontime tag, but my understanding is that is the input required for schedex. Am i wrong?

[{"id":"e8687bdfc08a6e9e","type":"tab","label":"Flow 3","disabled":false,"info":"","env":[]},{"id":"cf959e078320e3ad","type":"inject","z":"e8687bdfc08a6e9e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":100,"wires":[["2cd9198cf084827a"]]},{"id":"e636b688d011cd57","type":"debug","z":"e8687bdfc08a6e9e","name":"debug 4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload.ontime","targetType":"msg","statusVal":"","statusType":"auto","x":760,"y":80,"wires":[]},{"id":"2cd9198cf084827a","type":"moment","z":"e8687bdfc08a6e9e","name":"","topic":"","input":"payload","inputType":"msg","inTz":"America/New_York","adjAmount":0,"adjType":"days","adjDir":"add","format":"hh:mm:ss","locale":"C","output":"payload.ontime","outputType":"msg","outTz":"America/New_York","x":400,"y":80,"wires":[["e636b688d011cd57","5025e60da175faa6"]]},{"id":"5025e60da175faa6","type":"schedex","z":"e8687bdfc08a6e9e","name":"","passthroughunhandled":false,"suspended":false,"lat":"","lon":"","ontime":"07:28","ontopic":"","onpayload":"","onoffset":0,"onrandomoffset":0,"offtime":"goldenHour","offtopic":"","offpayload":"","offoffset":0,"offrandomoffset":0,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"sun":true,"x":630,"y":160,"wires":[[]]}]
![Screenshot 2023-01-27 102629|690x176](upload://ysqsF9ccXrxTABelB0KMQvbzYWD.jpeg)

Why not just use a timer helper entity defined in HA? No extra add-ons required, and you can add it to your dashboard to see it.