I’ve just started playing with Home Assistant and there’s one thing I’m just not getting - how the information about components gets to the web frontend.
For example, I’ve got some LIFX bulbs. I was able to add them to my configuration, and they show up on the web interface with a light switch. But they’re capable of changing colors, and I’ve seen other people talk about changing the colors on them.
I can see in the lights/lifx code that there are functions that deal with RGB colors - so how does the web component know that this device needs a color picker instead of an on/off switch? Or, more accurately, why does my web interface not seem to know that?
I have lots of coding experience but almost none with Python, so that may be part of my lack of understanding. Usually I’m find going through source code to understand how something works, but this part has me baffled.
I didn’t see anything on the “Getting Started” pages about defining what your setup looks like when accessed through a browser. If someone could point me in the right direction that’d be great.