Fix variable name ('device' -> 'devices').
Added possibility to change intensity for each device.