Sync site and switch state

I stumbled on your code and noticed the switch and site state were not synced after pairing. This pull request solves this issue.

We at muzzley hope you keep developing using our platform. 
Any feedback is welcomed.