Address https://github.com/toblum/McLighting/issues/248
Commented our because # only is ment to change color and not the state
This commit is contained in:
Debashish Sahu 2018-10-15 12:09:58 -04:00
parent 97120a196c
commit c53d02bdbe

View file

@ -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()); amqttClient.publish(mqtt_outtopic.c_str(), qospub, false, String(String("OK ") + String((char *)payload)).c_str());
#endif #endif
#ifdef ENABLE_HOMEASSISTANT #ifdef ENABLE_HOMEASSISTANT
stateOn = true; // 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); if(!ha_send_data.active()) ha_send_data.once(5, tickerSendState);
#endif #endif
#ifdef ENABLE_STATE_SAVE_SPIFFS #ifdef ENABLE_STATE_SAVE_SPIFFS
if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState); if(!spiffs_save_state.active()) spiffs_save_state.once(3, tickerSpiffsSaveState);