I’m a complete noob. I’ve been running Home Assistant for almost a year now, and nothing I’ve done looks anything like what you guys are constantly posting. I almost never touch the YAML and when I do it’s to paste something I found online and pray it works. 95% of my setup is all through the UI. Add an integration, type in some numbers, tied in an automation - no code used.
I’ve been trying to figure out how to run an hourly automation (I know how to do that) but conditionally only if a particular switch has been on for > X minutes. I’ve spent 2 days pounding my head on the keyboard. The only thing I got to work was using the history_stats, but it doesn’t show how long since the switch was turned on - it just shows how long the switch has been on today. I can get pretty graphs in my UI related to that, but it’s not really what I was after.
I see example snippets that start with a minus sign, but those always just throw an error for me. Looks like I need to specify a keyword before or something. The gap in my knowledge of the YAML structure this uses is rather large apparently.
I feel like I’m back when I started learning Linux and 95% of the answers were “read the man page” which we all know isn’t written in English. Where do you guys learn how all this functions? I keep hearing “template” but I don’t see anything in the UI about templates and I can’t figure out where it goes or how it works. Basic things like that. I’m missing some root understanding of how HASS reads configs and I’m not sure where to get that understanding from.
The most frustrating part: I’ve done software development for > 30 years from 6502 assembly, to Pascal, to Golang. This is just too alien for my experience to apply.