Piswitch api & settings page fixes

API change; UI fix for Piswitch