HA的UI可以拥有自动化和脚本的内置块式图形流动的可视化编辑器吗?
![Blockymonday](//www.sz-tiancheng.com/community-assets/original/3X/e/d/edce1402b7b7ac615b1084bf460c9616737b16e3.png)
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.
我想我的主要重点是突出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 inHass.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 forHass.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:
https://github.com/bdurrer/home-assistant-blockly
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 (seehttps://www.domoticz.com/wiki/Blocklyandhttps://www.domoticz.com/wiki/Automation#Blockly)
![ha_rules](//www.sz-tiancheng.com/community-assets/optimized/3X/e/d/ede00ecb7b707dcb64863528d19756736fc6613d_2_662x135.png)
谷歌维护了封锁(封锁技术)上游代码:
https://developers.google.com/blockly.
MIT在Google封锁技术上建立了Scratch块,但旨在简化其使用
https://scratch.mit.edu/developers