I have been using HA for a while now and have a decent set up. I try to learn as much as I can but there are some things I can’t find any documentation for or I don’t know where to look.
When looking at a component page there is terminology such as “string” “map” “attribute” “template” etc…
Is there a glossary which can explain these terms to be?
A string is just a sentence or a statement. This reply can be looked at as a string. As in:
A$ = “A string is just a sentence or a statement.”
A$ is the label of that string.
A string can be words, or combinations of words/letters/numbers. when you add in your config.yaml name: "Bob" you have assigned that device’s name to a string that spells “Bob”
Ok thanks. Any begginer ways to learn templating. I normally steal code from other setups but trying to figure out what it means is difficult.
For example, I want to make a template switch for a TV using ping and a RM mini 3 (ordered but not deliver). I could steal code for this but how would I learn how to do it?
One thing that is a trap for young players is strings vs numbers.
For example, 123 can be represented in a computer as a string or an integer. If it is a string then 123 + 4 is 1234. If it is an integer then 123 + 4 is 127. Knowing how something is represented can solve a lot of templating problems.
On the templating doc page there is a link to the jinja2 docs which tell you a lot about templating.