Open Mariusthvdb opened 3 months ago
There's no indication in the helper table that a helper has been defined in yaml. The purpose is to the list them all in the UI whether or not they are made in configuration or not.
From the release notes: Things set up manually using YAML are still managed using YAML. This means that if you want to change the configuration of these integrations or helpers, you will need to do so in the YAML configuration files.
Trying to explain, integrations setup in yaml pass the configuration to the integration which setups a series of entities (button, lights, ...) and the integration can provide an unique id for them, making them editable in UI. When you edit them, there are no changes to your configuration.yaml. Helpers do define an unique id in the configuration.yaml, therefore if yaml helpers would be editable in the UI given that they do have an unique id, it would be required to change your configuration.yaml when you edit in the UI.
it's a bit more complicated possibly than that ;-)
What I do, is have the yaml config be as minimal as can be, with a unique_id.
that way I can edit Name, icon, object_id or any other possible option available in the UI.
So my yaml entities are editable in the UI ;-) (yes, except for their base configuration, I am aware of that)
My point in the issue is that there is an inconsistency in the use of the pencil-off.
Right now, it shows to indicate one can Not edit them, while it should indicate they originate in Yaml.
Just like the {} in the integrations page now does
I believe it would be more consistent to have the same icon indicating an integration , or an entity originate in Yaml.
Second, I do also feel that shouldnt be {}, as that is used throughout Home Assistant to indicate Templates.
Hence my suggestion to instead use the mdi:pencil, indicating those Integrations or entities/helpers originate in Yaml
And, as a now possible result of that choice, use the pencil-off for those places in the UI to indicate to the user an options can Not be edited in the UI (like the more-info of pure Yaml integrations, without unique_id)
The icon has been changed for yaml integrations. Thank you for helping. However, the pencil-off suggestion remains. Looking into this further, the entities table uses pencil-off for both things that originate from yaml as well as integrations that do not provide an unique entity_id. So, changing that would be incorrect.
thanks. I guess I will leave it there. however, you illustrate my ppint exactly:
the entities table uses pencil-off for both things that originate from yaml as well as integrations that do not provide an unique entity_id.
the single icon having a double meaning, with in this case a rather substantial difference, should not be used imho.
For that I believe
So, changing that would be incorrect
should be exactly the opposite. Maybe you can reconsider that, taking into account the new file-code icon now used in the integrations overview (nice, thanks for that)
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Checklist
Describe the issue you are experiencing
Btw very confusing on the helpers page is that many of the Yaml template sensors listed here are showing the pencil-off, indicating they are created in Yaml.
But, it also indicates they are not editable,
which in fact they are. They all have a unique_id, as is demonstrated when opening the more-info
Describe the behavior you expected
My suggestion for the pencil-off would be to use another icon to indicate the entity is a Yaml configured entity or a UI entity.
right now, the pencil-off is used for both yaml, and not editable, and that is not correct. as is demonstrated above.
since this is in the release notes:
maybe a great idea to use that same icon here, for entities created in manual Yaml? would make it consistent.
However:
given the fact the {} symbolize templates in HA, as is also demonstrated when you add a new helper,
wouldnt it be more succinct to use another icon to indicate an entity/integration originates in Yaml? if we loosely translate Yaml to manual editing, wouldn't the pencil be a nice option?
if yes, changing the pencil-off to pencil in the Helpers section on Yaml templates would also fix the issue'
Steps to reproduce the issue
...
What version of Home Assistant Core has the issue?
2024.8.0b0
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
any, Chrome, Safari on Mac
Which operating system are you using to run this browser?
Sonoma 14.5
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response