Danfoss TLX Pro+ Inverter integration to Home Assistant?

Listening…

Just the defines for
#define SECRET_SSID “Secret1”
#define SECRET_WIFI_PSWD “Secret2”

What kind of errors do you get ?
Are you using the right arduino environment and libraries ?

As a side note: I’ll try to add MQTT support, but have patience. Never done Arduino programming before :slight_smile:

1 Like

@majland Would you mind sharing your Home Assistant config for this (Entities and what else that is needed)?

sensor:
  # Danfoss TLX
  - platform: rest
    resource: http://192.168.189.199/OpModeTxt
    name: "TLX Operation Mode"
    method: GET
    value_template: "{{ value_json.value }}"
    
    # Energy
  - platform: rest
    resource: http://192.168.189.199/TotalE
    name: "TLX Total Energy Production"
    method: GET
    value_template: "{{ value_json.value |round(3)}}"
    unit_of_measurement: kWh
    device_class: 'energy'
    state_class: total_increasing

  - platform: rest
    resource: http://192.168.189.199/ProdTday
    name: "TLX Production today"
    method: GET
    value_template: "{{ value_json.value |round(3)}}"
    unit_of_measurement: kWh
    device_class: 'energy'
    state_class: total_increasing

    # Voltage / Ampre
  - platform: rest
    resource: http://192.168.189.199/GridV1
    name: "TLX_GridV1"
    method: GET
    value_template: "{{ value_json.value |round(1)}}"
    unit_of_measurement: V
  - platform: rest
    resource: http://192.168.189.199/GridV2
    name: "TLX_GridV2"
    method: GET
    value_template: "{{ value_json.value |round(1)}}"
    unit_of_measurement: V
  - platform: rest
    resource: http://192.168.189.199/GridV3
    name: "TLX_GridV3"
    method: GET
    value_template: "{{ value_json.value|round(1)}}"
    unit_of_measurement: V
  - platform: rest
    resource: http://192.168.189.199/GridA1
    name: "TLX_GridA1"
    method: GET
    value_template: "{{ value_json.value|round(3)}}"
    unit_of_measurement: A
  - platform: rest
    resource: http://192.168.189.199/GridA2
    name: "TLX_GridA2"
    method: GET
    value_template: "{{ value_json.value|round(3)}}"
    unit_of_measurement: A
  - platform: rest
    resource: http://192.168.189.199/GridA3
    name: "TLX_GridA3"
    method: GET
    value_template: "{{ value_json.value|round(3)}}"
    unit_of_measurement: A
    
  - platform: rest
    resource: http://192.168.189.199/PvV1
    name: "TLX_PvV1"
    method: GET
    value_template: "{{ value_json.value |round(1)}}"
    unit_of_measurement: V
  - platform: rest
    resource: http://192.168.189.199/PvV2
    name: "TLX_PvV2"
    method: GET
    value_template: "{{ value_json.value |round(1)}}"
    unit_of_measurement: V
  - platform: rest
    resource: http://192.168.189.199/PvV3
    name: "TLX_PvV3"
    method: GET
    value_template: "{{ value_json.value|round(1)}}"
    unit_of_measurement: V
  - platform: rest
    resource: http://192.168.189.199/PvA1
    name: "TLX_PvA1"
    method: GET
    value_template: "{{ value_json.value |round(3)}}"
    unit_of_measurement: A
  - platform: rest
    resource: http://192.168.189.199/PvA2
    name: "TLX_PvA2"
    method: GET
    value_template: "{{ value_json.value |round(3)}}"
    unit_of_measurement: A
  - platform: rest
    resource: http://192.168.189.199/PvA3
    name: "TLX_PvA3"
    method: GET
    value_template: "{{ value_json.value|round(3)}}"
    unit_of_measurement: A

    # Power     
  - platform: rest
    resource: http://192.168.189.199/GridP
    name: "TLX Grid Power"
    method: GET
    value_template: "{{ value_json.value |round(0)}}"
    unit_of_measurement: W
    device_class: 'power'

Hi, I have used your code and it almost works for me - thanks. I use it on a TLX and I have a few values that returns 0, and if I change the order I am able to get some of the 0 values to change, I use a 240mhz esp32 and thinking it could be a timing issue? do you have an idea where to look?

I have added data from the monitor also, I don’t have PV3 input, so the 2 zeros in PV3 are correct.

Regards

Glad that someone is trying to use it :slight_smile:
I would try to change the delay’s and timeout in
String DanfossTLX::RX_TLX(void)

I can remenber that i’ve tinkered a bit with it compared to Torbens version:
String RX_TLX() {
String RxBuffer;
String RXData = “”;
delay(25);
while (Serial2.available() > 0) {
RxBuffer = String(Serial2.read(), HEX);
if (RxBuffer.length() == 1) RxBuffer = “0” + RxBuffer;
RXData = RXData + RxBuffer;
}
RXData.toUpperCase();
RXData.replace(“7D5E”, “7E”);
RXData.replace(“7D5D”, “7D”);
return RXData;
}

But sometimes you have 13 charates in the buffer when you get a timeout and sometimes 0.

Might be two issues. If the TLX does respond to the command you get nothing, and sometimes you only get part of message.

How long time do you wait between each message to the TLX ?
Maybe trying to delay it at bit more in the main loop

Hi Majland, thanks for your reply and for sharing the code with the public. I already tried to change the delays and main loop time, but after your detailed answer I tried again but still without succes even with over 1.5 sec. time out. The tlx inverter I have is the tlx 6+ (as far as I know it’s the 10kw without the 3rd Pv input), so I updated it to the latest software 4.13 but that did not help. I then looked at torbens code and could see there was an address (h232) in the code that comments said the tlx 6 did not answer, mine does reply to that adress, but to address h244, h246 and h247 mine does not reply, but I can calculate these values. If I ask for one of these addresses it messes up the next adress I read. So I ended up with this:

I am also working on getting this running.
I use the Wemos Lolin32 Lite Board… Should that work?

I created the Secrets.h file, with the 2 “#define” lines.

But when i veryfi, it fails with this: Compilation error: stray ‘\342’ in program

What to do?

This is the whole message:

In file included from C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:14:
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:21: error: stray '\342' in program
 #define SECRET_SSID “5024”
                     ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:118:14: note: in expansion of macro 'SECRET_SSID'
   WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
              ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:22: error: stray '\200' in program
 #define SECRET_SSID “5024”
                      ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:118:14: note: in expansion of macro 'SECRET_SSID'
   WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
              ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:23: error: stray '\234' in program
 #define SECRET_SSID “5024”
                       ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:118:14: note: in expansion of macro 'SECRET_SSID'
   WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
              ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:28: error: stray '\342' in program
 #define SECRET_SSID “5024”
                            ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:118:14: note: in expansion of macro 'SECRET_SSID'
   WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
              ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:29: error: stray '\200' in program
 #define SECRET_SSID “5024”
                             ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:118:14: note: in expansion of macro 'SECRET_SSID'
   WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
              ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:30: error: stray '\235' in program
 #define SECRET_SSID “5024”
                              ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:118:14: note: in expansion of macro 'SECRET_SSID'
   WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
              ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:26: error: stray '\342' in program
 #define SECRET_WIFI_PSWD “Thilde2002”
                          ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:118:27: note: in expansion of macro 'SECRET_WIFI_PSWD'
   WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                           ^~~~~~~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:27: error: stray '\200' in program
 #define SECRET_WIFI_PSWD “Thilde2002”
                           ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:118:27: note: in expansion of macro 'SECRET_WIFI_PSWD'
   WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                           ^~~~~~~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:28: error: stray '\234' in program
 #define SECRET_WIFI_PSWD “Thilde2002”
                            ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:118:27: note: in expansion of macro 'SECRET_WIFI_PSWD'
   WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                           ^~~~~~~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:39: error: stray '\342' in program
 #define SECRET_WIFI_PSWD “Thilde2002”
                                       ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:118:27: note: in expansion of macro 'SECRET_WIFI_PSWD'
   WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                           ^~~~~~~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:40: error: stray '\200' in program
 #define SECRET_WIFI_PSWD “Thilde2002”
                                        ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:118:27: note: in expansion of macro 'SECRET_WIFI_PSWD'
   WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                           ^~~~~~~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:41: error: stray '\235' in program
 #define SECRET_WIFI_PSWD “Thilde2002”
                                         ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:118:27: note: in expansion of macro 'SECRET_WIFI_PSWD'
   WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                           ^~~~~~~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:21: error: stray '\342' in program
 #define SECRET_SSID “5024”
                     ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:125:18: note: in expansion of macro 'SECRET_SSID'
   Serial.println(SECRET_SSID);
                  ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:22: error: stray '\200' in program
 #define SECRET_SSID “5024”
                      ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:125:18: note: in expansion of macro 'SECRET_SSID'
   Serial.println(SECRET_SSID);
                  ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:23: error: stray '\234' in program
 #define SECRET_SSID “5024”
                       ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:125:18: note: in expansion of macro 'SECRET_SSID'
   Serial.println(SECRET_SSID);
                  ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:28: error: stray '\342' in program
 #define SECRET_SSID “5024”
                            ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:125:18: note: in expansion of macro 'SECRET_SSID'
   Serial.println(SECRET_SSID);
                  ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:29: error: stray '\200' in program
 #define SECRET_SSID “5024”
                             ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:125:18: note: in expansion of macro 'SECRET_SSID'
   Serial.println(SECRET_SSID);
                  ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:30: error: stray '\235' in program
 #define SECRET_SSID “5024”
                              ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:125:18: note: in expansion of macro 'SECRET_SSID'
   Serial.println(SECRET_SSID);
                  ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:21: error: stray '\342' in program
 #define SECRET_SSID “5024”
                     ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:168:16: note: in expansion of macro 'SECRET_SSID'
     WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:22: error: stray '\200' in program
 #define SECRET_SSID “5024”
                      ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:168:16: note: in expansion of macro 'SECRET_SSID'
     WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:23: error: stray '\234' in program
 #define SECRET_SSID “5024”
                       ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:168:16: note: in expansion of macro 'SECRET_SSID'
     WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:28: error: stray '\342' in program
 #define SECRET_SSID “5024”
                            ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:168:16: note: in expansion of macro 'SECRET_SSID'
     WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:29: error: stray '\200' in program
 #define SECRET_SSID “5024”
                             ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:168:16: note: in expansion of macro 'SECRET_SSID'
     WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:1:30: error: stray '\235' in program
 #define SECRET_SSID “5024”
                              ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:168:16: note: in expansion of macro 'SECRET_SSID'
     WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                ^~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:26: error: stray '\342' in program
 #define SECRET_WIFI_PSWD “Thilde2002”
                          ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:168:29: note: in expansion of macro 'SECRET_WIFI_PSWD'
     WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                             ^~~~~~~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:27: error: stray '\200' in program
 #define SECRET_WIFI_PSWD “Thilde2002”
                           ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:168:29: note: in expansion of macro 'SECRET_WIFI_PSWD'
     WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                             ^~~~~~~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:28: error: stray '\234' in program
 #define SECRET_WIFI_PSWD “Thilde2002”
                            ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:168:29: note: in expansion of macro 'SECRET_WIFI_PSWD'
     WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                             ^~~~~~~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:39: error: stray '\342' in program
 #define SECRET_WIFI_PSWD “Thilde2002”
                                       ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:168:29: note: in expansion of macro 'SECRET_WIFI_PSWD'
     WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                             ^~~~~~~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:40: error: stray '\200' in program
 #define SECRET_WIFI_PSWD “Thilde2002”
                                        ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:168:29: note: in expansion of macro 'SECRET_WIFI_PSWD'
     WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                             ^~~~~~~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:41: error: stray '\235' in program
 #define SECRET_WIFI_PSWD “Thilde2002”
                                         ^
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:168:29: note: in expansion of macro 'SECRET_WIFI_PSWD'
     WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                             ^~~~~~~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino: In function 'void setup()':
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:29: error: 'Thilde2002' was not declared in this scope
 #define SECRET_WIFI_PSWD “Thilde2002”
                             ^~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:118:27: note: in expansion of macro 'SECRET_WIFI_PSWD'
   WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                           ^~~~~~~~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino: In function 'void loop()':
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\Secrets.h:2:29: error: 'Thilde2002' was not declared in this scope
 #define SECRET_WIFI_PSWD “Thilde2002”
                             ^~~~~~~~~~
C:\Users\Kontor\Documents\Arduino\libraries\Danfoss-TLX-master\DanfossTLX-REST-LolinD32\DanfossTLX-REST-LolinD32.ino:168:29: note: in expansion of macro 'SECRET_WIFI_PSWD'
     WiFi.begin(SECRET_SSID, SECRET_WIFI_PSWD);
                             ^~~~~~~~~~~~~~~~

exit status 1

Compilation error: stray '\342' in program

er der nogle her der har lyst til at hjælpe mig ville jeg være glad
har en danfoss tlxpro 10kw når jeg læser jeres indlæg forstår jeg ikke en disse
er det muligt at hyre en af jeg til at få den til at virke i home assistent

1 Like

Had forgotten the " in Secrets.

Now it works like a charm.

Jeg har lige fået min 8kW til at fungere.
Hvor i landet?
Har du købt ESP32 Lolin og RS485 modul ?

Hi would this be posible for ESPhome?
Also I litle more guide for setting up the Arduino if ESPhome not posible.
Thanks

jeg bor i nordsjælland hillerød
skal det være ESP32 Lolin har nogle esp8266 og et
RS485 modul

Is it possible to buy the complet package? Print, moduls and with data? Plug and play version? I’m not so clever to manage all that, but would love to have my Danfoss TLX inverter at HA. After Danfoss sold their inverter to SMA the Danfoss app hasn’t worked.

@majland Finally got around to making a PCB and testing it out. However I don’t get any data from the inverter :(. Do I need to set the address to the inverter somewhere?
(From PowerLog, I get Network=8, Subnet=0, Address=144)

Edit: Got it working. Had swapped RX/TX on ESP32 :(.

Hi

I’m also searching for a way to get data from our danfoss inverters. Is there a setting to enable the TotalE website? When I try to request http:///TotalE or ProdTday i only get the message “There has been an error. Please try again.”

Thanks
René

I’ve not been following this thread - sorry.

But i have updated the code to get all the values in a single request packed in the same json response.

I’ve helped another getting it running and he has the same issues with his inverter not reponding to all the same as above - with some reposnses being 13 long and other 0.

With regard to ESPhome: I’m not familier enough with ESPhome but cant see why not. Drop the web part and implement the sensors more directly and the comlynx part should port easily.

Does not sound like a resonse from the ESP.

If you enter a something not recognized by the boad you will get a respons like

Pararameter not recognized

URI: /TEST
Method: GET
Arguments: 0

Can you see the main overview directly on the IP address starting with the heading “Danfoss TLX”