raomin / ESPAltherma

Monitor your Daikin Altherma / ROTEX heat pump with ESP32
MIT License
356 stars 121 forks source link

PlatformIO problem #4

Closed pengemetal closed 3 years ago

pengemetal commented 3 years ago

Hi,

I am very happy to fond this project! I am new in PlatformIO. I can't flash ESP32-devkit v4, I get a lot of problems! What do i do wrong?

image

raomin commented 3 years ago

Hi! Glad you like the project. It's a bit difficult to see from the screenshot. Could you run a build (the ☑️) and paste the compilation logs?

raomin commented 3 years ago

Make sure you selected ONE file definition in setup.h. Also, download the latest revision, I just fixed a bug that would prevent you from compiling.

pengemetal commented 3 years ago

Thank you for your effort! I get the same errors:

Executing task in folder ESPAltherma-main: C:\Users\Admin.platformio\penv\Scripts\pio.exe run <

Processing default (platform: espressif32; board: esp32doit-devkit-v1; framework: arduino) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html PLATFORM: Espressif 32 (2.1.0) > DOIT ESP32 DEVKIT V1 HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

Terminal will be reused by tasks, press any key to close it.

raomin commented 3 years ago

There seems to be a problem with your setup.h.

Line 2 should read #define WIFI_SSID "Emelet"//Your SSID here

Can you paste your setup.h here? (mark **** for your WiFi pwd)

pengemetal commented 3 years ago

//Setup your credentials and mqtt info here: WIFI_SSID "Emelet"//Your SSID here WIFI_PWD "****"//Your password here leave empty if open (bad!)

MQTT_SERVER "192.168.1.114"//Your IP address here MQTT_USERNAME "szunyog"//leave empty if not set (bad!) MQTT_PASSWORD "****"//leave empty if not set (bad!) MQTT_PORT 1883

FREQUENCY 30000 //query values every 30 sec RX_PIN 3// Pin connected to the TX pin of X10A TX_PIN 1// Pin connected to the RX pin of X10A PIN_THERM 0// Pin connected to the thermosta relay (normally open)

MAX_MSG_SIZE 4096//max size of the json message sent in mqtt

//Uncomment ONE of the following according to your installation. //Then, open and edit the selected file in the include folder and uncomment each values you are interested in.

//#include "def/ALTHERMA(BIZONE_CB_04-08KW).h" //#include "def/ALTHERMA(BIZONE_CB_11-16KW).h" //#include "def/ALTHERMA(GSHP).h" //#include "def/ALTHERMA(GSHP2).h" //#include "def/ALTHERMA(HPSU6_ULTRA).h" //#include "def/ALTHERMA(HYBRID).h" //#include "def/ALTHERMA(LT-D7_E_BML).h" //#include "def/ALTHERMA(LT_11-16KW_HYDROSPLIT_HYDRO_UNIT).h" //#include "def/ALTHERMA(LT_CA_CB_04-08KW).h"

include "def/ALTHERMA(LT_CA_CB_11-16KW).h"

//#include "def/ALTHERMA(LT_DA_04-08KW).h" //#include "def/ALTHERMA(LT_DA_PAIR_BML).h" //#include "def/ALTHERMA(LT_GAS_INJ)20200702.h" //#include "def/ALTHERMA(LT_MULTI_DHWHP).h" //#include "def/ALTHERMA(LT_MULTI_HYBRID).h" //#include "def/ALTHERMA(MONOBLOC_CA_05-07KW).h" //#include "def/ALTHERMA(TOP-GRADE).h" //#include "def/DAIKIN_MINI_INVERTER_CHILLER04-08KW.h" //#include "def/DEFAULT.h"

raomin commented 3 years ago

Ah, you should NOT remove the #define from any line. This is how is defined a constant value in C.

So, get back the original file https://github.com/raomin/ESPAltherma/blob/main/src/setup.h and replace only what is between the " " (and uncomment your heatpump model as you did).

Your first lines should look like this:

//Setup your credentials and mqtt info here:
#define WIFI_SSID "Emelet"//Your SSID here
...
pengemetal commented 3 years ago

OMG! Thank you, I dont know why delete, the whole rows, including #define! (C is new for me) I managed to compile! Tomorrow I will start wiring :)

raomin commented 3 years ago

Great, that's good news. Happy wiring!