Node-Red flow examples

Here is an extreme refinement of my smart flow that define the direction of moving of a shutter managed by a single button.

It takes the latest move as the new reference of the direction, it inverts it when fully closed or fully opened, it toggles it when long click, if no move or no long click for 15 minutes and if not fully closed or opened then it choses the default direction according to day time or night time, it is resilient to Home Assistant or Node-Red restart.