I’ve been using Home Assistant for quite some time now and really like the project.
I’ve seen Home Assistant evolve, and noticed often a new feature is first available for configuration via YAML and later is also configurable via the ui. Which is totally understandable, cause that way of working leads to a working version and from that yaml-only point, work can be done on creating a gui (graphical user interface). The gui seems to me as favourable way to edit settings and options, than with yaml. Although there is still a choice to use yaml if prefered.
At least, that’s what I think is the thought behind it by the largest contributing developers / NabuCasa. I think their goal is to do as much as possible via the GUI ultimately, but also have working versions to build further from. Correct me if see this wrong.
So I’ve seen a lot of developement in the UI of stuff first only being able to do via yaml and now also via the ui.
And many times I see a form of hybrid with both yaml or scripting that is editable via the UI. That if a user needs something specific done, that’s currently not possible via the UI, the user is able to do that. Probably this will always be the case, as it is unlikely that an UI can be created that can achieve the same as being done via scripting. But the presence of both options, UI and code, makes it great software for all types of users.
An example of something that’s ‘hybrid’ at the moment is setting a template sensor via the UI.
It is possible to set Name, select the measuring unit
from a list of possible values, same for device class
and status class
.
However for the state template
it is still needed to type code. And that’s what this feature request is: it would be a great adddition to Home Assistant if a part of the templating can be done via the UI.
I understand that it is impossible to incorperate everything that can be achieved with scripting in the UI. However I am thinking of the easier stuff like being able to select attributes of a entity and doing simple logic like sum, retract divide, larger then, smaller then. That would already be a great improvement.
For instance “when binary sensor A last change is before binary sensor B last change, return true”
or “retract 1,5 from the value of Temperature sensor X”
So my feature request is to make some of the functionality currently only achievable via code also available via the UI. Personally I think that will be an upgrade where users that aren’t able to code can benefit from.
This can be applied not only on template sensors as above but also within automations where templates are involved.