Hi all!
I have a simple condition check nodes. The chain is like this:
suncalc --> switch --> sonoff http on or off --> function to send me a telegram message
The chains works ok but it is working in a repeating loop all the time and send me messages every one minute.
Any clues to stop that loop and only check when condition is true?
From the documentation:
The node provide two outputs. The first output emits a msg.payload of 1 or 0 every minute depending if day-time (1) or night-time (0).
The second output emits only on the transition between night to day (-> 1) or day to night (-> 0).
As you are using the top output, one payload every minute. Normal.
If you want to have only when it is a transition, down output.
GV