Extracted light state conversion into own class.
Fixed minor issues.

Signed-off-by: Dennis Nobel <d.nobel@external.telekom.de>