'Return the state of the sensor.'

@property
def state(self):

    name = self._hmdevice.__class__.__name__
    if (name in HM_STATE_HA_CAST):
        return HM_STATE_HA_CAST[name].get(self._hm_get_state(), None)
    return self._hm_get_state()
