[DEV] Add an update_switch funtion to the client lib

This new function allow to get the switch current status.