'Return the state of the device.'

@property
def state(self):

    state = self._player_variables.get('statestring', None)
    if (state is None):
        return STATE_OFF
    if (state == 'playing'):
        return STATE_PLAYING
    elif (state == 'paused'):
        return STATE_PAUSED
    return STATE_IDLE
