Hey,
The recent versions of HA encourage us to use the UI automation editor and Helpers rather than manual YAML editing. Personally I think it’s great and prefer working with the UI.
But what I would like to be able, is to use Helpers (variables) in the UI automation editor.
My feature request is adding Helpers support in the UI.
The Automation Editor closely follows how automations are manually defined in YAML, so below expects a value, not an entity_id. The example you supplied would require a template.
With that said, it would be nice if the UI editor had the power to create that template for people if they select something like an input_number as the value
There’s no harm in wishing for new things but in this case we first have to wish for below to support templates. Then comes the wish for the Automation Editor to know which options support templates and which don’t. Then comes the wish for it to automatically convert a supplied entity_id into a template, possibility offering options because you may want to access an attribute value instead of a state value.
Seems like this feature was added to 0.115 release, but only for Time / Date.
So it is half way of what I requested. You can use Helpers directly in the UI automation editor, as long as they are Time / Date.
Still can’t use them as numeric state (below / above a Helper).
trigger:
- platform: time
at: input_datetime.bedroom_alarm_clock_time
I’m dealing with the same issue at the moment. Surprised it’s not more common. A little confusing for some fields to support helpers and not others… unless I’m confused about something.
It’s less confusing if you know its evolution. For the longest time, no options ever accepted any helper. Then these two enhancements appeared in two separate releases:
The input_datetime helper was permitted for use with a Time Trigger.
Thanks for the tip. If I understand correctly I tried to add the following trigger based on the Numeric State Trigger example, but the UI gives me an error saying it expects a float for data[‘below’]: