Can HA’s UI have a built-in block-style graphical flow-based visual editor for automations & scripts?
I have this feature request for Home Assistant and hope there is the right place for an open discussion, (have seen that there are a few similar discussions here but none that I could find as specific as this).
To make the programming of automations & scripts easier and more accessible to new users and beginners I would like to suggest that a simple and easy to use a web-based flow-based visual editor to allow drag-and-drop manipulating elements and conditions in automations & scripts was included by default in Home Assistant’s web-UI.
Wishing for an official ‘first-party’ visual editor of automations & scripts included as the default standard inside Home Assistant’s GUI (graphical user interface) for web-browsers that was specifically customized for Home Assistant and primarily designed for home automation enthusiast, meaning it should not only be designed for power-users and developers.
Simple web-based editor for visual drag-and-drop coding (using so-called graphical programming blocks) automation flows via the web-GUI would make it much easier for average home automation enthusiast who may be completely new to scripting automations to get started and get a visual overview of their automations & scripts from inside in Home Assistant’s web-GUI.
I want to highlight that my main point here is to express that a stong wish that some type of simple drag-and-drop flow-based visual editor for automations & scripts were included not just an option that can be installed but that an official first-party one was always included by default with Home Assistant and that it preferable was even pre-installed by default in Hass.io
As most here probably already know, there are several editor frameworks and libraries that could be used to achieve this; Node-RED perhaps being the most popular today (and it already have a plugin for Hass.io, but it is not built-in by default) though I personally prefer the interlocking-blocks style of “Blockly” and “Scratch Blocks” which makes coding look simple even to those new to scripting.
Blockly specifically is already used to create small scripts and elements for automation in some other home automation systems like Domoticz, ioBroker, Pulse Station, and Fibaro.
Back in 2017 there was a project to implement Blocky in Home Assistant but it has been abandoned:
Examples of an open-source home automation software that well know for using Blockly to enable simply programming of automations and scripting via drag-and-drop in its web-GUI is Domoticz (see https://www.domoticz.com/wiki/Blockly and https://www.domoticz.com/wiki/Automation#Blockly )
Blockly (Blockly technology) upstream code is maintained by Google:
Scratch Blocks by MIT builds on Google’s Blockly technology though aim to simplify its use further