'Called when new messages received from the fan.'

def on_message(self, message):

    if ((self._old_value is None) or (self._old_value != self.state)):
        _LOGGER.debug('Message    received    for    %s    device:    %s', self.name, message)
        self._old_value = self.state
        self.schedule_update_ha_state()
