Don't send message if it's the same as previous. Update switch position state when command is issued. Bugfixes.