also if you want a switch to be updated when you locally act on it, you have to configure automatic status report on your device.
this is done by changing some variables from the setup page. the configuration variables may vary from brand to brand, so consult your dev docs.
g.