Great, getting somewhere I think now…Half the battle seems to be understanding how these lights work, and that they are different from the other hue bulbs it would seem!
So,
All 4 spots as items now:
Dimmer GF_LR_HueLight1_Brightness "GF LR Spotlight 1 Dimmer" <light> (gLights_LR) {channel="hue:0220:00178877b4a1:5:brightness"}
Dimmer GF_LR_HueLight1_ColorTemp "GF LR Spotlight 1 Color" <light> (gLights_LR_ColorTemp) {channel="hue:0220:00178877b4a1:5:color_temperature"}
Dimmer GF_LR_HueLight2_Brightness "GF LR Spotlight 2 Dimmer" <light> (gLights_LR) {channel="hue:0220:00178877b4a1:6:brightness"}
Dimmer GF_LR_HueLight2_ColorTemp "GF LR Spotlight 2 Color" <light> (gLights_LR_ColorTemp) {channel="hue:0220:00178877b4a1:6:color_temperature"}
Dimmer GF_LR_HueLight3_Brightness "GF LR Spotlight 3 Dimmer" <light> (gLights_LR) {channel="hue:0220:00178877b4a1:7:brightness"}
Dimmer GF_LR_HueLight3_ColorTemp "GF LR Spotlight 3 Color" <light> (gLights_LR_ColorTemp) {channel="hue:0220:00178877b4a1:7:color_temperature"}
Dimmer GF_LR_HueLight4_Brightness "GF LR Spotlight 4 Dimmer" <light> (gLights_LR) {channel="hue:0220:00178877b4a1:8:brightness"}
Dimmer GF_LR_HueLight4_ColorTemp "GF LR Spotlight 4 Color" <light> (gLights_LR_ColorTemp) {channel="hue:0220:00178877b4a1:8:color_temperature"}
2 Groups, one brightness and the other color temp:
Group:Dimmer gLights_LR "Living Room Lights" <light>
Group:Dimmer gLights_LR_ColorTemp "Living Room Lights ColorTemp" <light>
One rule:
rule "Living Room Spotlights"
when
Item vLivingRoomSpots changed
then
if(vLivingRoomSpots.state == ON)
{
logInfo(logName,"Living Room Spots Test ON")
GF_LR_HueLight1_Brightness.sendCommand("100")
GF_LR_HueLight1_ColorTemp.sendCommand("14")
GF_LR_HueLight2_Brightness.sendCommand("100")
GF_LR_HueLight2_ColorTemp.sendCommand("14")
GF_LR_HueLight3_Brightness.sendCommand("100")
GF_LR_HueLight3_ColorTemp.sendCommand("14")
GF_LR_HueLight4_Brightness.sendCommand("100")
GF_LR_HueLight4_ColorTemp.sendCommand("14")
}
else
{
logInfo(logName,"Living Room Spots Test OFF")
GF_LR_HueLight1_Brightness.sendCommand("0")
GF_LR_HueLight2_Brightness.sendCommand("0")
GF_LR_HueLight3_Brightness.sendCommand("0")
GF_LR_HueLight4_Brightness.sendCommand("0")
}
end
LOG:
2020-04-26 22:35:46.947 [ome.event.ItemCommandEvent] - Item 'vLivingRoomSpots' received command ON
2020-04-26 22:35:46.962 [vent.ItemStateChangedEvent] - vLivingRoomSpots changed from OFF to ON
2020-04-26 22:35:46.978 [ome.event.ItemCommandEvent] - Item 'GF_LR_HueLight1_Brightness' received command 100
2020-04-26 22:35:47.009 [ome.event.ItemCommandEvent] - Item 'GF_LR_HueLight1_ColorTemp' received command 14
2020-04-26 22:35:47.029 [ome.event.ItemCommandEvent] - Item 'GF_LR_HueLight2_Brightness' received command 100
2020-04-26 22:35:47.045 [ome.event.ItemCommandEvent] - Item 'GF_LR_HueLight2_ColorTemp' received command 14
2020-04-26 22:35:47.060 [nt.ItemStatePredictedEvent] - GF_LR_HueLight1_Brightness predicted to become 100
2020-04-26 22:35:47.064 [ome.event.ItemCommandEvent] - Item 'GF_LR_HueLight3_Brightness' received command 100
2020-04-26 22:35:47.102 [ome.event.ItemCommandEvent] - Item 'GF_LR_HueLight3_ColorTemp' received command 14
2020-04-26 22:35:47.118 [ome.event.ItemCommandEvent] - Item 'GF_LR_HueLight4_Brightness' received command 100
2020-04-26 22:35:47.134 [ome.event.ItemCommandEvent] - Item 'GF_LR_HueLight4_ColorTemp' received command 14
2020-04-26 22:35:47.149 [nt.ItemStatePredictedEvent] - GF_LR_HueLight1_ColorTemp predicted to become 14
2020-04-26 22:35:47.163 [nt.ItemStatePredictedEvent] - GF_LR_HueLight2_Brightness predicted to become 100
2020-04-26 22:35:47.174 [nt.ItemStatePredictedEvent] - GF_LR_HueLight2_ColorTemp predicted to become 14
2020-04-26 22:35:47.185 [nt.ItemStatePredictedEvent] - GF_LR_HueLight3_Brightness predicted to become 100
2020-04-26 22:35:47.195 [vent.ItemStateChangedEvent] - GF_LR_HueLight1_Brightness changed from 0 to 100
2020-04-26 22:35:47.200 [nt.ItemStatePredictedEvent] - GF_LR_HueLight3_ColorTemp predicted to become 14
2020-04-26 22:35:47.218 [nt.ItemStatePredictedEvent] - GF_LR_HueLight4_Brightness predicted to become 100
2020-04-26 22:35:47.230 [nt.ItemStatePredictedEvent] - GF_LR_HueLight4_ColorTemp predicted to become 14
2020-04-26 22:35:47.243 [vent.ItemStateChangedEvent] - GF_LR_HueLight1_ColorTemp changed from 22 to 14
2020-04-26 22:35:47.246 [vent.ItemStateChangedEvent] - GF_LR_HueLight2_Brightness changed from 0 to 100
2020-04-26 22:35:47.249 [vent.ItemStateChangedEvent] - GF_LR_HueLight2_ColorTemp changed from 22 to 14
2020-04-26 22:35:47.251 [vent.ItemStateChangedEvent] - GF_LR_HueLight3_Brightness changed from 0 to 100
2020-04-26 22:35:47.255 [vent.ItemStateChangedEvent] - GF_LR_HueLight3_ColorTemp changed from 22 to 14
2020-04-26 22:35:47.257 [vent.ItemStateChangedEvent] - GF_LR_HueLight4_Brightness changed from 0 to 100
2020-04-26 22:35:47.260 [vent.ItemStateChangedEvent] - GF_LR_HueLight4_ColorTemp changed from 22 to 14
RESULT:
All lights physically turned on and went to the designated color temp…WIN
Turn the switch off and the lights physically tuned off and the logs were the opposite of on, (no need to show them here)…
HOORAY
Now for the groups:
Revised Rule:
rule "Living Room Spotlights"
when
Item vLivingRoomSpots changed
then
if(vLivingRoomSpots.state == ON)
{
logInfo(logName,"Living Room Spots Test ON")
gLights_LR.sendCommand(100)
gLights_LR_ColorTemp.sendCommand(14)
}
else
{
logInfo(logName,"Living Room Spots Test OFF")
gLights_LR.sendCommand(0)
}
end
LOGS
ON
2020-04-26 22:43:40.347 [ome.event.ItemCommandEvent] - Item 'vLivingRoomSpots' received command ON
2020-04-26 22:43:40.358 [vent.ItemStateChangedEvent] - vLivingRoomSpots changed from OFF to ON
2020-04-26 22:43:40.363 [ome.event.ItemCommandEvent] - Item 'gLights_LR' received command 100
2020-04-26 22:43:40.370 [ome.event.ItemCommandEvent] - Item 'gLights_LR_ColorTemp' received command 14
OFF
2020-04-26 22:44:42.162 [ome.event.ItemCommandEvent] - Item 'vLivingRoomSpots' received command OFF
2020-04-26 22:44:42.181 [vent.ItemStateChangedEvent] - vLivingRoomSpots changed from ON to OFF
2020-04-26 22:44:42.192 [ome.event.ItemCommandEvent] - Item 'gLights_LR' received command 0
RESULT: The logs seem to show the commands executing correctly now, ie no errors but the lights do not physically go on or off?
So I’m back to them being ok when commanded individually but not in a group?
Reading through the group docs now for inspiration…