My automations and scrips were a mess for a long time, I had some functionality happening fully in automations and other automations triggering scripts that had the functionality.
A few weeks ago I had the idea to consolidate my setup so that it was consistent. I used the VS-Code Addon to download the yml files for my automations, scenes and scripts and then put them in to Claude to restructure them.
This mostly worked, although a few are having issues, possibly due to missing devices in their flows, andso I'm not sure if I've over-complicated the whole thing; so I'm looking for a second opinion. I'm not sure if I'm bordering, or am actually in, the land of templating.
Attached are my current yml files. What I'm trying to do is have my:
- automations be purely for triggers with no logic of what actions actually get performed
- scripts be the logic of which checks need to be performed (although this may be better in the automation?) and be where the actions get performed
- scenes be where I tell scripts which state a device should be in, like a blind being at 50% or a light being at 15%
I'm happy to provide screenshots or any other information if helpful.