async def METHOD_NAME(self, cmd):
    if cmd in self._alarm_state_dp.values(self._device):
        await self._alarm_state_dp.async_set_value(self._device, cmd)
    else:
        raise NotImplementedError()