diff --git a/Arduino/McLighting/request_handlers.h b/Arduino/McLighting/request_handlers.h index cbc7f4c..5a9f7ce 100644 --- a/Arduino/McLighting/request_handlers.h +++ b/Arduino/McLighting/request_handlers.h @@ -410,8 +410,8 @@ void checkpayload(uint8_t * payload, bool mqtt = false, uint8_t num = 0) { amqttClient.publish(mqtt_outtopic.c_str(), qospub, false, String(String("OK ") + String((char *)payload)).c_str()); #endif #ifdef ENABLE_HOMEASSISTANT - stateOn = true; - if(!ha_send_data.active()) ha_send_data.once(5, tickerSendState); + // stateOn = true; //Commented our because # only is ment to change color and not the state + if(!ha_send_data.active()) ha_send_data.once(5, tickerSendState); #endif #ifdef ENABLE_STATE_SAVE_SPIFFS if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);