I am attempting to write a script that will set the colour of an RGB Zwave bulb based on what the current month is; I think this lends itself to a Case Structure? ...So my psuedo-code would look something like this:
Select Case Month
Case 1 To 2
Set Bulb Color To White
Case 3
Set Bulb Color To Green 'St Paddies
Case 4
Set Bulb Colour To Pink 'Easter
Case 5 To 9
Set Bulb Colour to White
Case 10
Set Bulb Colour to Orange 'Halloween
Case 11 To 12
Set Bulb Colour To Red 'Christmas
End Select
I'm not sure of syntax re: retrieving current month, or the syntax re: setting the Device Value. The Device I need to change is Living Rm Aeon Labs Bulb Color Control Custom RGB (70), it has a reference ID of 194.
Any help with this would be greatly appreciated, Thanks.
Select Case Month
Case 1 To 2
Set Bulb Color To White
Case 3
Set Bulb Color To Green 'St Paddies
Case 4
Set Bulb Colour To Pink 'Easter
Case 5 To 9
Set Bulb Colour to White
Case 10
Set Bulb Colour to Orange 'Halloween
Case 11 To 12
Set Bulb Colour To Red 'Christmas
End Select
I'm not sure of syntax re: retrieving current month, or the syntax re: setting the Device Value. The Device I need to change is Living Rm Aeon Labs Bulb Color Control Custom RGB (70), it has a reference ID of 194.
Any help with this would be greatly appreciated, Thanks.
Comment