Updated code for Fibaro Motion Sensor
https://github.com/openhab/openhab/issues/1844