added mains power switch press detection
changed mains switch action so that it toggles all node channels at once
added mains switch lights toggling based on previous lights state