     // Set the initial color
     hmtl_set_output_rgb(output, object, state->msg.start_value);
     changed = true;
+    state->start_time = now;
+    DEBUG5_VALUELN("Fade ms:", now);
   } else {
     // Calculate the color at this time
     CRGB start = CRGB(state->msg.start_value[0],

  }

  int32_t outputs_found = hmtl_setup(&config, readoutputs,
				     outputs, objects, HMTL_MAX_OUTPUTS,
				     &rs485, &pixels, NULL,
				     &rgb_output, &value_output,
				     NULL);

  if (!(outputs_found & (1 << HMTL_OUTPUT_RS485))) {
    DEBUG_ERR("No RS485 config found");
    DEBUG_ERR_STATE(1);
  }

  /* Setup the RS485 connection */  
  rs485.setup();
  send_buffer = rs485.initBuffer(databuffer);

  DEBUG2_VALUELN("HMTL Module initialized, v", HMTL_MODULE_BUILD);
  Serial.println(F(HMTL_READY));

      DEBUG1_VALUELN("Message larger than send buffer:", msg_hdr->length);
    } else {
      DEBUG4_VALUELN("Forwarding serial msg to ", msg_hdr->address);
      memcpy(socket->send_buffer, msg_hdr, msg_hdr->length);
      rs485.sendMsgTo(msg_hdr->address, socket->send_buffer, msg_hdr->length);
      return true;
    }
  }

  // The message was not forwarded over the socket
  return false;
}

