2022.5: Streamlining settings

What other baggage?

It looks like it was the other guys baggage, you just chimed in. I’m on the same page. Either way, I could see blueprints and automations creating helpers at some point and it would work exactly like you described: created at automation load, stored in the entity registry. I know it’s been mentioned before. The only issue I see is that if you created it from the automation, you’d only be able to edit from the automation. I.e. if you created it and gave it a range, you could only edit the range from where it was created.

1 Like

Then something is broken. Climate integrations show the current_temperature and temperature (ie the set temperature as attributes. Why do you need to keep them in a variable?

Good, I already have enough baggage to worry about.

A reasonable restriction. I would probably make the “automation helpers” visible in the main helper UI, but not directly editable. Maybe have them filtered out by default, with an option to show. Elsewhere, I would have the “automation helpers” visible for selection in most of the UI (dashboards, other automations, etc).

I can also agree with the sentiment helpers can be cumbersome to work with when using a “variable.” A shorthand syntax to set the values would be nice, but would open a can of worms on how to handle consistently across all helper options and types. A line has to be drawn somewhere.

Have you looked at “packages”?

This whole conversation started by @salsaman asking a question, and the example he gave was to give mirror an existing atttribute to a global variable, for which there is no earthly need. The conversation should die.

1 Like

So use Packages. Simple. That’s how my entire HA config is written.

EDIT: I just saw that I was beaten to the mark with this suggestion. Leaving it here for the link.

Unfortunately no. I set up a transparent proxy to get better network connection and it reaches the ghcr.io domain, but still get the same error.

Missed that. That’s about 80% there. UI support would be nice, but blueprint support even better, but this at least gets a lot of functionality into one sed script.

The UI won’t support packages. I recommend creating a #feature-requests for dynamically creating helpers via blueprints.

I am finding it very confusing to find the check config / restart etc. options. It’s not obvious that they would be under developer tools / YAML. IMO a more logical place would be under settings / system / supervisor or somewhere similar.

1 Like

It is:
image

And when you click that - the system automatically checks config.

surely it could. If you examine the trace of an automation it shows you the “changed variables”. IT ought to be simple matter to search animtaion traces to find instances of the variable in question being updated. If that doesnt work, presumably at some level HA would call a service to set the variable value (the HACS integration has var.set for example). So just search the database for instances of that service with the corresponding entity_id, and then from there figure out what animation or script called the service.

aha, yes, I hadn’t noticed that. It is less prominent with the theme I am using, than in the image.
I don’t find it very good UI design to have a scrolling frame with categories and then a single button in the margin to perform a specific task. Also, there is no indication that it will check the config. I wouldn’t dare to press it unless I was aware of that fact. There should at least be a ‘Check Config’ button alongside it, even if it is redundant, users will learn after clicking that and then Restart that it is not necessary.

That’s why it is on the YAML dev page. You only need to check config when you change YAML code. Seriously, it’s not an issue. I’m getting sick of people complaining about change. The new UI is much better than the previous one.

3 Likes

In the “Margin” ? 
 I would call it “The Header” in this case The Header of Systems-Settings
If your Theme confuses you or make things “Diffuse” i suggest another Theme/Style/Color

Well I have a fine example which I am trying to resolve this very minute. I have an AC unit which due to the way it is integrated has only toggle state, there is no specific on or off. There is also no feedback from the unit, so I need to keep track of the assumed state, to avoid turning it on or off multiple times due to various triggers firing,
The best way I have found to do this is using an input boolean, however this is not very user friendly for novice users. You have to first set up a helper toggle, which new users might assume to be purely an interface element. Then to use it in a condition you have to check the state of input boolean (not a toggle, note), which is weird at first, because it is not an input to anything. Then to set the value you need to call service input_boolean.on or off. Sure, I figured it out, but only after months of playing around with HA.

IMO - a much better solution would be to provide an easier way to create variables (they can be input_booleans.etc with a different class perhaps), make the type (int, float, boolean, etc) a readonly attribute, separate variables from helpers in the menu, In automations, instead of call_service input_boolean.xxx on, have a more user-friendly actions: set_state, / set_numeric_sate, with entity_id: var. xxx, value: on, likewise in triggers and conditions, you would choose - state or numerical state of var.xxx.

Change variable/State : Notify, or what ever fits you, change color on “Toggle”, or change color on entity/entities, add entity to auto/conditional list etc ( What ever the “Triggers” are ). 
 and for your last usecase, use a “metered Plug” ( if W above +0.x = on , else Off ) (PS: you get power-consumption and ability to turn it off completely, just in case, 3 in 1) , in any case for some reason your AC don’t provide you with any info, so take/use what you have

I think to clarify this for everyone reading you might want to refer to what you’re proposing as “automation states”, “memory” or “temporary storage” instead of variables. Since we already have “variables” but you are specifically after some sort of state/memory based variables (persistent)

I had assumed until now that you had a climate entity for your AC. It seems you don’t.

I think you should try setting up a Generic Thermostat, then your system will work as intended without all these workarounds or added “features” you think you need. Generic Thermostat - Home Assistant

2 Likes