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

image

image

when I have everything separate it works and this is clear
image

I tried to get like this but does not work
image

ok I found here

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