Indeed! There are many, many posts on contexts. These are just two of my own reference ones that I’ve saved.
Petro’s articulated the problem:
I’m not sure yet how to distill this into useful, concrete information.
I’ve never been able to get very reliable code working using contexts, except for the simplest of cases, because one needs to infer things. You have to basically generate the different scenarios for your own case and it gets quite tricky if you have e.g. a script called from an automation and in the script you access the script’s context.
Perhaps the real issue is that some of this should rather be baked in at at a deeper level or even provided by integrations themselves.
I’ve been mulling one for triggers, trigger variables, limited templates in my head since this started, but it always turns into a bible . too long. Working on breaking that up.
Would anyone like to do a piece on importing files into HA for local access? How to import them; where to store them; how to reference them in dashboards and media players etc.
I imagine it would mention File Editor and Samba Share, both of which are “official” add-ons.
I have some ideas, but not the complete picture on the importing stuff. I use Samba but don’t have a complete story. I’d be glad to colab on it if someone wants to start one in a private group chat.
I have a suggestion but I’d like to bounce it off you guys, especially the mods and anyone working directly for HA who might be reading this.
The cookbooks point to the relevant pages in the docs, but shouldn’t it also be the other way round too? What if the docs also had a link to the cookbook?
Imagine you’re just starting out and actually read the docs. You can read the words on the screen, but you barely understand any of it because, let’s face it - it was written by someone who is more technically inclined.
Wouldn’t it help if there was a link to a cookbook written in a more beginner-friendly way right on that page?
I agree with @Sir_Goodenough, but you could also always do a PR on the docs and let it go through the PR approval process as well. IIRC, the PR approval process goes through all the major devs/policy makers. Might be worth a shot as a test case?
A downside of this is that if the docs change, then the cookbook entry has to be changed as well. Sooooo, dunno.
I figured, but I have an aversion to tagging people when I’m unsure it’s really necessary, especially ones who are probably spammed with enough tags already.
Guess you handled that particular dilemma for me, so thanks.