#YAML FTW

1 messages ยท Page 1 of 1 (latest)

steel sky
nimble wadi
#

The longer answer is ... you can configure any integration that uses YAML in YAML

steel sky
#

so i guess the better question is what can't be done in YAML?

nimble wadi
#

Any integration that uses UI configuration only

#

There are thousands of native integrations (plus countless custom ones) - it's not like there's a simple list somewhere

steel sky
#

such a shame that anyone ever thought that any removal of configuration as code was a good idea

nimble wadi
#

You're a few years too late to argue that one

steel sky
#

i get that I am personally late to this party, however, Continuous Delivery https://amzn.to/3GcCMAM was published in 2010 and strongly advocates for the use of a single repo to store all of the things as code.

#

i also get that, as a DevOps Engineer, I am slightly biased

nimble wadi
#

And the developers wanted to make this accessible to more than just techies

steel sky
#

yes, i get that too, but accessibility should not exclude the techies who want to deploy applications properly

nimble wadi
#

You're a few years too late to argue that one

steel sky
#

was literally about to say that

#

lol

#

its just so frustrating

nimble wadi
#

Honestly, you're flogging a dead horse

#

There's no benefit to going on about it

steel sky
#

right, so i'm trying to understand what cannot be done in yaml so i don't waste my time

nimble wadi
#

The answer is ... anything that can only be done in the UI

#

With many thousands of integrations it's not like there's a handy these 5 things

#

If the integration docs say YAML then you can use YAML... at least until the integration is changed to use the UI

steel sky
#

but then everyone tells me that it does not

nimble wadi
#

Yes, for all the bits that you the human will touch it uses YAML

steel sky
#

i guess i'll just have to suck it and see

steel sky
nimble wadi
#

5 years ago, sure, but today home automation is appealing to a much wider audience

#

There's no benefit to gatekeeping

steel sky
#

agreed, it just seems a shame to exclude a core demographic in an attempt to appeal to a new one. still, as you say, moot point.

violet swan
violet swan
steel sky
#

i fully appreciate that we want to make everything as easy as possible for everyone, i just think that, in an industry where everyone is pushing for more use of "Everything as Code", it was arguably a step backwards to make some things only configurable via the GUI. If people want to use the GitOps (https://www.gitops.tech/) workflow, they should be able to do so IMO. As above, I fully appreciate that, almost 3 years later, this is a moot point now.

nimble wadi
#

You're conflating your industry with home automation

steel sky
#

when I say "the industry" i mean tech in general

nimble wadi
#

Tech, in general, is not moving to everything as code

steel sky
#

yes it is

nimble wadi
#

Pick up your phone and use it... are you writing code to answer the phone?

steel sky
#

that is conflating examples!

#

๐Ÿ˜„

nimble wadi
#

You're looking at a very narrows slice of reality and confusing it with all of reality

#

Just because behind the scenes is moving to everything as code doesn't mean the world is

steel sky
#

to answer a phone call, i am not configuring anything. to configure my phone, and my laptop, and my servers, i do have scripts that take care of that

#

i am referring to configuration as code

#

which is moving away from GUI

nimble wadi
#

Home automation doesn't have to be some mystical thing hidden behind code. I'd agree that both would be nice, but that's not where we have been for the last few years, and isn't the direction of travel for many home automation platforms

nimble wadi
#

Configure your mail server with a text file

steel sky
#

life is a pendulum ๐Ÿ˜„

#

i think we are broadly agreeing - make it easy for everyone - i have no argument with that. all i'm saying is that for those who want to do it in text files, they should be able to. as i have said, i appreciate that this is now a moot point

#

i'll git what i can and document the rest

#

thanks for the pointers everyone ๐Ÿ™‚

granite pumice
#

It's a very good thing that HA developers try to make configuring easy to non-techies. Noone will deny that.
The question is not whether YAML or GUI. The question is: why not keep that small extra piece of code that allows YAML alongside GUI.

nimble wadi
#

The TL/DR is that it adds an overhead they didn't want to support

granite pumice
#

FWIW, I now define my MQTT sensors via autodiscovery.
I define a script that does the necessary mqtt publish actions and the script is called by a homeassistant startup trigger.
This way I have still full control (fuller control, even) over my MQTT sensors.

#

To make it easier, I have a small program that generates the YAML โ˜บ.

nimble wadi
#

I have no influence on the decisions the project makes

granite pumice
paper jewelBOT
#

@granite pumice When using Discord's Reply feature it defaults to pinging the person you reply to, which can get frustrating for the target. Use Shift + click on the Reply option, or click @ ON to @ OFF to stop this - on the right side of the compose bar.

You have to change this every time (thank the Discord devs for that).

nimble wadi
#
  1. What makes you think I haven't? ||I have feed back my views||
  2. What's stopping you from doing that? ||Nothing||
  3. Do you have a time machine in your pocket?