Good point. I picked that at random. Unfortunately it was one of my early automations. However I do the opposite and always make them the same now for precisely that reason.
I’ve never seen it. I think it is assumed knowledge that strings are quoted numbers aren’t. Could be in the YAML specification (i.e. not just for home assistant but everything that uses YAML).
Scott this is “your” thread we appear to have hi-jacked, the discussion seems to be relevant to you so that’s great, but it is we who should be appologising to you (not enough that we’ll stop though :cough: )
Automation IDs…if I create my own within the configurator, the UI editor does not recognize that it can be edited. So unless you create the automation in the editor, I guess adding such in the configurator doesn’t matter. As you said, time to get rid of the those IDs
Tom, noticed while editing (with just the home assistant addon) that when you add a space it lets you, but when you backspace it takes out two (a tad inconsistent but I suppose that’s to allow normal writting, both for comments AND for just mid normal code … I would hope that rainbow allows the same … )
… off now to download rainbow and have a play with that.
From the discussion (Tom & Taras) I’m assuming that using multiple addon’s simultaneously is permitted ? So Home Assistant + Rainbow + Config Helper ??? (where do I find that ?)
Cheers
P.S. I don’t think you have saved me any time at all, I think I will now spend ages going through all my files (obviously with currently valid yaml) making all the spacing 100% consistent. Damn my OCD !
I noticed there are a couple different ways to express turning on/off the device/light, which I have noted below. Is there a ‘best’ way to present this, either or?
You could use the home assistant service everywhere if you wanted to.
I tend to use platform specific services when available, no real reason. It just feels right. Sometimes it catches me out (e.g. groups with more than one platform in them).
I usually just use the switch …
Unless I’m there unbeknownst to the owner … then I just sneak around in the dark
As quiet as possible … except for when I stub my toe cos I don’t know the layout, or if their kid left lego on the floor …