[SOLVED] Light patterns

Assuming FF_AllLights_PresetPercNormal is a Dimmer, try:

triggeringItem.sendCommand((FF_AllLights_PresetPercNormal.state  as DecimalType).intValue)

I have not tried that actual construct, but this works:

var int BvoolState = (SqueezeBoxBoomsVolume.state as DecimalType).intValue

if (Cstate > 0) {
    BvoolState += 10
} else {
    BvoolState -= 10
}
SqueezeBoxBoomsVolume.sendCommand(BvoolState);

BTW see my example in handling triggeringItem in bottom half here. Nice feature.

1 Like