Scenes in nodeRED mode?

Hello everyone,

It’s been several months since I’ve been able to work on Gladys.
I’m getting back into it for a few days (I’m taking some time off).
And what stands out to me is the heaviness of the scene functionality.
Indeed, the block system is really heavy and not very readable.

The best would be to have a system like node RED (which I don’t master at all), it’s very visual and very intuitive…
The idea would be to keep the existing blocks (triggers, actions, conditions, tests…) but to display them as small blocks on the canvas.
We could maybe use React Flow since Gladys is in prereact from what I’ve seen in the documentation.
After that, I don’t know at all the work that this would require…

But I am convinced by this approach which is really user-friendly.

Example with a button that controls a fan via a smart plug.
1 click on the button: Turns on the smart plug
2 clicks on the button: Turns off the smart plug
Long press on the button: Turns on the plug and turns it off after 2 hours.

It is possible to create 3 different scenes but we end up with a lot of scenes…

Creating a scene that handles everything, which I like much better.

But we end up with something quite heavy like:


If we could use a canvas system, we could be much simpler and readable with something like:

What are your opinions?
Both developers and users.

Thank you and have a great end of the weekend :slight_smile:

1 Like