'Return the state of the device.'

@property
def detail_state(self):

    if (self.coffeemaker_mode is not None):
        return self.wemo.mode_string
    if self.insight_params:
        standby_state = int(self.insight_params['state'])
        if (standby_state == WEMO_ON):
            return STATE_ON
        elif (standby_state == WEMO_OFF):
            return STATE_OFF
        elif (standby_state == WEMO_STANDBY):
            return STATE_STANDBY
        return STATE_UNKNOWN
