I keep getting snippets of information from people and learning as I go but this home assistant lark is a f*** nightmare. How on earth do people learn all this coding? How much indentation, which values to use, to use a dash or not to use a dash. I really want to be able to do all this myself but I feel like I’m treading water and just guessing at stuff.
So much documentation is written in a way that you have to know what it is talking about in the first place.
I am trying to add something to my config.yaml so I can use my Flic switches but I cannot get into the yaml correctly and I have no idea why. Someone told me that I can only have 1 template section and 1 sensor section but my point above, I have no idea what that means. I cannot see ‘sections’ within here.
I have pasted pictures of my current config yaml along with the new code to go at the bottom. Please can someone help me with this and let me know what I need to change and also why it needs changing so I learn.