Not really. My point still stands - the people who are here and voting are those who are the survivors for the most part.
You’re confusing the REST API with the API of HA’s YAML. I’m talking about the acceptable YAML code - for instance, what tap_action: takes as a variable is shown in the page here [1] but there’s no detail as to what’s actually acceptable for any of the options it takes, such as perform-action or a link to it. So then you have to find out either by trial and error, or by a lot of searching of forum posts. Which is much higher-friction than it should be, IMO.
And with a YAML API which seems to have had breaking changes over the years it means you often end up with code that worked in 2021 but doesn’t any more. I’ve had that happen more often than it didn’t (last time was yesterday afternoon, in fact).
I think you’ve got the wrong end of the stick here. I’m not talking about the REST API, I’m talking about the YAML API. Which would be helpful if it was fully documented, as I’ve already mentioned. Then a lot of the questions that I see here would go away as at least you’d know what you can expect to feed into any given key/mapping/etc. At the moment that’s difficult to find. The main django docs aren’t something I like, but the API Reference [2] is very useful. HA should have this, as it would be an explicit indication of what is acceptable for each entry.
That’s not been my experience. Python generally gives a sensible traceback - line number where the exception occurred, often with underlining of the part the parser thinks is incorrect, and last time I did any C it was also the case. The feedback given by the raw config editor in HA is often totally unhelpful - one yesterday just made reference to r and that was it.
That’s not been my experience of any of the things that I want to get done. Beyond the basics (which have been nice from the visual editor) I’ve had to use YAML to get things done - there have been lots of things that need installation from HACS and then the visual editor isn’t supported so you need to use YAML. Hence the sharp corners.
I think that’s missing the point. Yes, YAML is a ‘shorthand’ version of JSON, and as a result can be easier to type. But that’s not the main issue here - if you need to create or edit it then it can be a frustrating experience (and the lack of delimiting makes it more difficult to parse mentally IMO), and there’s a vast difference between ‘knowing YAML’ and being able to create YAML which HA will parse, interpret and action appropriately. It’s the difference being able to write using a pen words that might look French and being able to write French that makes sense. They aren’t the same thing.
[1] - Actions - Home Assistant
[2] - API Reference | Django documentation | Django




