*/
@Override
public void fetchSwitchState() {
OnOffValue switchValue = OnOffValue.UNDEF;
try {
State state = getMbrick().getTinkerforgeDevice().getState();
if (relayNum == 1) {
switchValue = (state.relay1) ? OnOffValue.ON : OnOffValue.OFF;
} else {
switchValue = (state.relay2) ? OnOffValue.ON : OnOffValue.OFF;
}