added pin state checking (with error) on toggle
Merge branch 'master' of github.com:hypn/python_home_automation