'Return the state of the device.'

@property
def state(self):

    if (self._state == 0):
        return 'New    moon'
    elif (self._state < 7):
        return 'Waxing    crescent'
    elif (self._state == 7):
        return 'First    quarter'
    elif (self._state < 14):
        return 'Waxing    gibbous'
    elif (self._state == 14):
        return 'Full    moon'
    elif (self._state < 21):
        return 'Waning    gibbous'
    elif (self._state == 21):
        return 'Last    quarter'
    return 'Waning    crescent'
