network: fix global switches issues
network: update updateDeviceConfig(), sync global device switch state