docs: @Override
      public PowerState getState() {
          if(pin.isState(onState))
              return PowerState.ON;
          else if(pin.isState(offState))
              return PowerState.OFF;
          else
              return PowerState.UNKNOWN;
      }