Piswitch API change