add IR code

This commit is contained in:
reaw 2024-02-17 00:41:19 +07:00
parent 44687da028
commit 68dac6a4d0
6 changed files with 254 additions and 104 deletions

View file

@ -200,7 +200,9 @@ void pmfanspeedupdatedisplay(char* value){
iseDisplay.updateAirPurifierState();
}
void pmswitchupdatedisplay(char* value){
ESP_LOGI("PM switch", "getting PM switch state from MQTT: %d", pm_switch.getValue());
iseDisplay.updateAirPurifierState();
ESP_LOGI("PM switch", "toggling PM switch state from: %d to %d", pm_switch.getValue(), !pm_switch.getValue());
}