←back to thread

370 points remuskaos | 2 comments | | HN request time: 0.441s | source
Show context
alkonaut ◴[] No.44353003[source]
I'm sure there's no amount of ads or social media that will rot your brain faster than trying to do programming in YAML.
replies(1): >>44353161 #
tigrezno ◴[] No.44353161[source]
With homeassistant you don't need yaml for 99% of automations. I'm sure OP posted the source code of the automation but used the graphical UI to make it.

You also have the possibility to use Node-Red for that.

replies(1): >>44355007 #
1. alkonaut ◴[] No.44355007[source]
I have used HA quite a bit and been burned. I think in the choice between graphical "no code" or "low code" and yaml, I choose yaml. But to do imperative logic there is just one useful way: a proper programming language.

This is just like when writing CI scripts for GitHub actions or Azure pipelines: the right amount of yaml (if it must be used at all) is to just invoke a program in some more expressive language than yaml.

replies(1): >>44360954 #
2. bmicraft ◴[] No.44360954[source]
Depending on when that was, it might make sense to try it again. I've got 25+ actively used automations and none of them need custom yaml anymore. Things really are continuously improving with every passing year.

I do use the (jinja) value templates in some places though.