Friendship ended with HA automation

Now Node-Red is my best friend.

For basic automations HA is a great tool but if you need a little bit more you will find hurdles (especially with blueprints).

For example: I use Sonoff  SNZB-01 as my first zigbee button and I would like to setup more than two state per action (this button has 3 actions: short, double and long press) WYSIWYG editor can be overwhelming and even yaml definition can be misleading. With blueprint you have to also maintain creator idea of handling events and this was my 2 days point of failure.

After some tinkering I got working example of what I would like to achieve and this will be separated to another post (to keep those organized in automation-ideas tag)