biddster / node-red-contrib-schedex

Scheduler for node-red which allows you to enter on/off times as 24hr clock (e.g. 01:10) or suncalc events (e.g. goldenHour). It also allows you to offset times and randomise the time within the offset.
22 stars 17 forks source link

Passthrough msg object #37

Closed kenci closed 4 years ago

kenci commented 5 years ago

Is it possible to passtrough the msg object? I need the initial msg.topic to identify an element,

biddster commented 5 years ago

It's not currently possible, but it could be, assuming I've understood what you need.

When schedex is triggered via an input message (rather than a schedule) you want the incoming message topic to override the configuration in the node?

drmibell commented 5 years ago

I would like to see an almost complete passthrough option available, presumably via a checkbox. I think the only cases where it is not possible to pass through the incoming message would be where msg.payload is equal to "on", "off", "toggle", or "info".

biddster commented 4 years ago

Ok, @drmibell, so any input message to schedex that isn't explicitly handled by Schedex should be emitted if the passthrough checkbox is ticked?

drmibell commented 4 years ago

Yes, that was my suggestion. I have ideas for flows where this would be useful. Do you see any difficulties?

biddster commented 4 years ago

I think this should be pretty trivial. I have a fix in soak for #56 so once I'm happy with that I'll start thinking about this.

biddster commented 4 years ago

I've got this on test here are home. Should release it this week.

biddster commented 4 years ago

Fixed in 1.9.0