Hints to solve some scenarios in openHab (coming from homee)

rule "Delayed off for lights"
when
    Item Hue_Dimmer_Switch changed
then
    if(receivedCommand == OFF || (Hue_Dimmer_Switch.state as Number) == 0){
        Thread::sleep(10000)
        Lights_Group.sendCommand(OFF)
    }
end

This is one way to do it. There are plenty of others including using a Timer.

I don’t know how or whether the Fibaro Motion Sensor can be separately activated so I’ll assume no.

Create an Unbound Switch that represents whether the Motion Sensor is activated or not. In rules that trigger from the Motion Sensor add:

    if(MotionSensor_Active.state == ON) {
        // Motion Sensor code
    }
```

This will cause the rules to only operate when MotionSensor_Active is ON.

Then in the activate rule:

```php
rule "Corridor switch ON"
when
    Item Corrifor_Switch receivedCommand
then
    if(receivedCommand == ON){
        MotionSensor_Active.sendCommand(ON)
        CorridorLight.sendCommand(ON)
    }
    else {
        MotionSensor_Active.sendCommand(OFF)
        CorridorLight.sendCommand(OFF)
    }
end
```

[quote="chrisonline, post:1, topic:30263"]
Because the Hue Dimmer Switch isn't a "Thing" in openHAB (in homee it is added as a controller, the don't use the Philips Bridge)!
[/quote]

According to the Philips Hue docs:

> The Hue bridge is required as a “bridge” for accessing any other Hue devices.

So you must use the Hue Bridge to use these devices with the Philips Hue binding. The older 1.x Hue binding also requires a Bridge.

I don't use these but I believe that once connected to the Bridge the device will show up as a ON/OFF Plugin Unit or Dimmable Plugin Unit Thing after auto-discovery.