altrnate32 / esp-lg-control

GNU General Public License v3.0
17 stars 7 forks source link

Failed when uploading the latest config to esp32 board #22

Closed Scar172 closed 1 month ago

Scar172 commented 1 month ago

When validating the config it seems correct, however after uploading it to the board i get an error / failed. Seems to be an issue with the the following line? Any idea's?

https://github.com/altrnate32/esp-lg-control/blob/ee6adb194b5e6578d267893d50bc08b1bb733317/lg-heatpump-control/lg-heatpump-state-machine.h#L620

Compiling .pioenvs/..../src/main.cpp.o /config/esphome/lg-heatpump-control/lg-heatpump-state-machine.yaml: In lambda function: /config/esphome/lg-heatpump-control/lg-heatpump-state-machine.yaml:183:49: error: invalid types 'int[input_types]' for array subscript if(new_target != INPUT[TEMP_NEW_TARGET]->value){ ^

image
altrnate32 commented 1 month ago

Thanks for reporting! Found the error, it was a different line in the .yaml and not in the .h file. Is fixed in main branch.