Node red: sensor.time for comparison as a trigger

Hi there,
I want to add a time condition to a trigger node. Meaing, the trigger should only triggers within or after a certain time of the day. Could this be done by adding a 2nd condition with the sensor.time? But how to compare those values to my time window?
Does anybody has any glue / advice? Thank you.

Dave

[{"id":"6dcfc4887aa56637","type":"trigger-state","z":"a5f2299564d70994","name":"Rain?","server":"

Your json is incomplete.
Given your description it seems the time should be a condition and not a trigger.

If the above is the case, a time range node before should work.

image

Yes, the time is a condition, not a trigger. I just want to add a certain time as a condition to a trigger node. Is that possible?

Dave

Trigger nodes are for triggers.
I don’t see a reason to confuse that with conditions.

Have a look at what Mike suggested above. That is a far better and cleaner way to solve it.

Its not about mixing trigger and condition nodes, this trigger has the option for conditions, so why not using it?

It does but jsonata is limited and doesn’t have much in the way of time stamp manipulation.

https://lodash.com/docs/4.17.15