When switching the hardware switch the internal status was not updated so the software switch does not switch after manual action (and switches back to the last state). Workaround was to switch it fast off and on and then off (or on - off - on). This pull request fixes the bug.
When switching the hardware switch the internal status was not updated so the software switch does not switch after manual action (and switches back to the last state). Workaround was to switch it fast off and on and then off (or on - off - on). This pull request fixes the bug.