Set variables IoT from Colored light

I do want to connect to ColouredLight variable that can access: both (switch, H, S, B)
HSB, for hue, saturation, brightness) are alternative representations of the RGB color model

my question is when I set up switch --how do I define this is the particular one from the list (switch, H, S, B )?
do I need to name each variable seperate...or one and is splited in code into different types?
At the end I need access to switch and color

when I have everything separate it works and this is clear

I tried to get like this but does not work

ok I found here

Serial.println(colorLightSwitch.getHue());
  Serial.println(colorLightSwitch.getSaturation());
  Serial.println(colorLightSwitch.getBrightness());
  Serial.println(colorLightSwitch.getSwitch());

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.