Newbie question about channels.
I’m still exploring the system, and so far I have setup a switch, and two lamps.
I have not yet set up any pages, I just wanted to see if I could turn the switch on and off, and if I could dim the lamps and change its color. Just getting a feel for the basics, so to say.
The switch (KASA) worked just as expected: I installed the TP-LINK binding, added a ‘Thing’: the device was not auto-detected, but once I entered its IP address, it WAS found, I then clicked on the Channels tab, and saw the Power channel, which I linked to an Item of type Switch.
Clicking on that item, I can now turn that switch on and off. So far so good.
Then I installed two lamps, 1 for which I installed the LIFX binding (this lamp was auto-detected), and a KASA one, for which I had to select the proper model code in the Binding, and I had to provide its IP address.
I created Items for the Color channel for both lamps, and I could change both lamps’ color.
However, looking at the available channels, it appears that the most important one is missing for both lamps: a Channel to turn the lamps on and off!
I ended up linking a 2nd Item to the Color Channel, and selecting a type ‘Switch’ for it. NOW I could switch the lamps on with that item, but it seems strange that I had to pick an unrelated channel for: that simply doesn’t sound right. Maybe I’m doing something wrong, or don’t fully understand the concept.
Here are some questions I have, hopefully some answers help me in better understanding all the underlying concepts.
a. What am I missing: why isn’t there a Channel as simple as ‘Power On/Off’ for my lamp ‘Things’?
b. Where are these Channels coming from? Are they defined by the Binding developer, or retrieved from the device itself?
c. I read up on the documentations for configuring Channels through files, so I thought maybe I can add a channel for turning the Things on and off, but the folder that should have all those files only has a readme file. Where are these Channels defined? Kept in a Database somewhere? Any way I can add channels?
d. There seems to be a lack of uniformity between channels for similar devices (say lamps); one has a Brightness channel, the other doesn’t so I have to add a link to a dimmer type item to the Color channel: aren’t there guide lines for developers of bindings (IF that’s where those channels come from)? One device lets me actually ‘Configure a channel’, the other simply has a link to ‘Channel details’. Is there a reason for not having uniform interfaces (channels) for similar devices?