Initialization should be scope dependent if the method takes scope
removed blank line
publish pilight state on the context if possible