Lighting Scene Rule Help

Hello,

I am having some issues trying to configure a Lighting Scene Rule that controls Phillips Hue, Lightpack via a script I have running and some of my other openhab items. I thought the most straight forward way was to create “phases” to have a rule for each light’s color. Then control all of the phases/lights with a trigger switch and rule. It was working very well a few days ago but suddenly does not work at all and I am wondering what the potential issue is. Any thoughts on how to fix the issue?

//Relax Colors

rule “Relax Colors Scene Phase 1”
when
Item Relax_Color_Scene_Phase_1 received update
then
HueColorLamp2_.sendCommand(ON) //Living Room Arch Lamp
var DecimalType hue = new DecimalType(200) // 0-360; 0=red, 100=green, 240=blue, 360=Magenta, 175=cool blue, 280=purple
var PercentType sat = new PercentType(100) // 0-100
var PercentType bright = new PercentType(60) // 0-100
var HSBType light = new HSBType(hue,sat,bright)
HueColorLamp2_.sendCommand(light)
end

rule “Relax Colors Scene Phase 2”
when
Item Relax_Color_Scene_Phase_2 received update
then
TvStand_.sendCommand(ON) //Tv Stand
var DecimalType hue = new DecimalType(280) // 0-360; 0=red, 100=green, 240=blue, 360=Magenta, 175=cool blue, 280=purple
var PercentType sat = new PercentType(100) // 0-100
var PercentType bright = new PercentType(100) // 0-100
var HSBType light = new HSBType(hue,sat,bright)
TvStand_.sendCommand(light)
end

rule “Relax Colors Scene Phase 3”
when
Item Relax_Color_Scene_Phase_3 received update
then
ExtendedColorLight1_.sendCommand(ON) //Couch Color Lights
var DecimalType hue = new DecimalType(0) // 0-360; 0=red, 100=green, 240=blue, 360=Magenta, 175=cool blue, 280=purple
var PercentType sat = new PercentType(100) // 0-100
var PercentType bright = new PercentType(100) // 0-100
var HSBType light = new HSBType(hue,sat,bright)
ExtendedColorLight1_.sendCommand(light)
end

rule “Relax Colors Scene Phase 4”
when
Item Relax_Color_Scene_Phase_4 received update
then
HueLightstripPlus1_Color.sendCommand(ON) //Bar Light
var DecimalType hue = new DecimalType(240) // 0-360; 0=red, 100=green, 240=blue, 360=Magenta, 175=cool blue, 280=purple
var PercentType sat = new PercentType(100) // 0-100
var PercentType bright = new PercentType(60) // 0-100
var HSBType light = new HSBType(hue,sat,bright)
HueLightstripPlus1_Color.sendCommand(light)
end

rule “Relax Colors Scene Phase 5”
when
Item Relax_Color_Scene_Phase_5 received update
then
HueColorLamp1_.sendCommand(ON) //Color Table Lamp
var DecimalType hue = new DecimalType(280) // 0-360; 0=red, 100=green, 240=blue, 360=Magenta, 175=cool blue, 280=purple
var PercentType sat = new PercentType(100) // 0-100
var PercentType bright = new PercentType(60) // 0-100
var HSBType light = new HSBType(hue,sat,bright)
HueLightstripPlus1_Color.sendCommand(light)
end

rule “Relax Colors Scene”
when
Item Relax_Color_Scene received update
then
Relax_Color_Scene_Phase_1.sendCommand(ON)
Relax_Color_Scene_Phase_2.sendCommand(ON)
Relax_Color_Scene_Phase_3.sendCommand(ON)
Relax_Color_Scene_Phase_4.sendCommand(ON)
Relax_Color_Scene_Phase_5.sendCommand(ON)
HueWhiteLamp4_.sendCommand(OFF)
Dining_Room_Light1.sendCommand(OFF)
entry_way.sendCommand(OFF)
Lightpack_Command.sendCommand(‘3’)
Echo_Living_Room_TTS.sendCommand(‘Relax lights initiated, try and chill out.’)
end

Items:

//Scene Switches
Switch Relax_Color_Scene “Relax Color Switch” (gRoutines)
//Scene Phase Switches
Switch Relax_Color_Scene_Phase_1 “Relax Phase 1 Switch”
Switch Relax_Color_Scene_Phase_2 “Relax Phase 2 Switch”
Switch Relax_Color_Scene_Phase_3 “Relax Phase 3 Switch”
Switch Relax_Color_Scene_Phase_4 “Relax Phase 4 Switch”
Switch Relax_Color_Scene_Phase_5 “Relax Phase 5 Switch”

Have a look at my rules here:

May we see a failed sequence of events from your events.log, and any related messaging in your openhab.log ?

I was able to get it back up and running by cleaning the Cache. Thank you.