Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stiebel WPC 10 Cool #59

Open
Hotzenplotz1 opened this issue Nov 20, 2024 · 80 comments
Open

Stiebel WPC 10 Cool #59

Hotzenplotz1 opened this issue Nov 20, 2024 · 80 comments
Assignees

Comments

@Hotzenplotz1
Copy link

Hotzenplotz1 commented Nov 20, 2024

Hello everyone,

I first had to find my way around Github.

I have connected an ESP32 MCP25115 and connected it to the CAN bus. I have attached the yaml, as well as the logbook of the query.
Unfortunately I can't get any further because I don't have the basics. Perhaps you can give me some tips on how I can familiarize myself with it.

It would probably make sense to restart the current project with the structure and the information from the log.

Thank you very much
HP
yaml.txt
logs_heatingpump_logs(2).txt

@kr0ner kr0ner self-assigned this Nov 20, 2024
@kr0ner
Copy link
Owner

kr0ner commented Nov 20, 2024

Hi there,

so you are currently using the code from some other repo and that works?
So if you want to give my approch a try, check the README.md for instructions.
If you encounter problems in the process, update the issue here with logs, so that I can try to help.
I don't know which model is the one that is closest to the WPC 10 Cool. Just try 504 first, and maybe TTF07.

@Hotzenplotz1
Copy link
Author

Okay, got it.

My problem is to understand your how to...

@kr0ner
Copy link
Owner

kr0ner commented Nov 20, 2024

Can you be more specific?

@Hotzenplotz1
Copy link
Author

Hotzenplotz1 commented Nov 20, 2024

Yes, i dont know how to clone the repo or copy the sym link.
I dont have the basics to solve the problems. Mostly trial and error...

If you can show me how to geht the data from github to HA it will be nice!

@mkaiser
Copy link
Contributor

mkaiser commented Nov 20, 2024

hey,

I guess your WPC 10 Cool could be similar to my Tecalor TTF 07 cool.

I am still in the debug-phase, but most of the sensors work - the control (set temperatures) does not work, yet

The code is currently completely messy. Just wait a week or so and I will have it mainlined again :)

https://github.com/mkaiser/OneESP32ToRuleThemAll/tree/dbg_msg

@Hotzenplotz1
Copy link
Author

yes. tecalor amd se should be the same.

@kr0ner
Copy link
Owner

kr0ner commented Nov 20, 2024

Yes, i dont know how to clone the repo or copy the sym link. I dont have the basics to solve the problems. Mostly trial and error...

If you can show me how to geht the data from github to HA it will be nice!

Ok, here are some hints:
1, Install VSCode addon for Home Assistant https://github.com/hassio-addons/addon-vscode
2, navigate to esphome folder, right click and open in terminal
3, execute : git clone https://github.com/kr0ner/OneESP32ToRuleThemAll.git
4, execute: cp OneESP32ToRuleThemAll/esp32-poe-technik.yaml esp32-poe-technik.yaml
5, comment out Thz504.yaml in esp32-poe-technik.yaml and remove # in front of ttf07
6, adopt the pins to your setup
7, build with esphome and do OTA

@Hotzenplotz1
Copy link
Author

How i clone 3.?

@kr0ner
Copy link
Owner

kr0ner commented Nov 20, 2024

How i clone 3.?

Those questions are too fundamental to be answered here. I suggest to use chatgpt https://chatgpt.com/ to solve the basics until it compiles ;)

@Hotzenplotz1
Copy link
Author

easy :-) and done. What means 5 and 7?

  1. understand :-)

@kr0ner
Copy link
Owner

kr0ner commented Nov 20, 2024

easy :-) and done. What means 5 and 7?

  1. understand :-)
  1. is exactly what is written there.
  2. Is building the Software with ESPhome and installing it to the ESP

@Hotzenplotz1
Copy link
Author

Okay.
I got Nr. 5.
But I'm hanging on building the Software with ESPhome and installing it to the ESP.

Sorry for wasting your time. This projekt is a little bit to big for me.

@kr0ner
Copy link
Owner

kr0ner commented Nov 20, 2024

Okay.
I got Nr. 5.
But I'm hanging on building the Software with ESPhome and installing it to the ESP.

Sorry for wasting your time. This projekt is a little bit to big for me.

But you have a running ESP already ... How did you install the the software there? It is fairly easy check esphome.io
And try to consolidate chatgpt and the Esphome discord or Forum. Don't give Up so easily

@Hotzenplotz1
Copy link
Author

Yes, ESP is running. And I also have the application running as posted, but without values.
For installation, I loaded the files from git hub into my home assistant via my desktop.
Then I copied the text from the .yaml into the editor of the application using drag and drop.
Surely there is an easier way, as you have already shown me.

i am now missing the specific step of how to get your .yaml files onto the ESP32. simply pasting them is not an option, it doesn't work.

I am very sure that the solution is very simple, but unfortunately I don't have the wording to search for it in databases like ESP-Home or GPT.

@Quotic
Copy link

Quotic commented Nov 20, 2024

if you flash your esp32 initially with esphome you get a new yaml file, and when you name your esp32 in this process esp32-poe-technik you can use the command kr0ner wrote:

4, execute: cp OneESP32ToRuleThemAll/esp32-poe-technik.yaml esp32-poe-technik.yaml

@Quotic
Copy link

Quotic commented Nov 20, 2024

But to be honest, you might want to familiarize yourself with esphome in general and implement other sensors with it before you tackle this complex topic.

@Hotzenplotz1
Copy link
Author

Never give up!

Thank you for your support.

I have carried out all the steps. when flashing ota I get an error message.

it is not clear to me whether I have to enter all the passwords, api etc. manually in the .yaml or whether these are taken over.

I have attached the script.
esp.txt

@kr0ner
Copy link
Owner

kr0ner commented Nov 20, 2024

Never give up!

Thank you for your support.

I have carried out all the steps. when flashing ota I get an error message.

it is not clear to me whether I have to enter all the passwords, api etc. manually in the .yaml or whether these are taken over.

I have attached the script.
esp.txt

I think your main problem is that you are not familiar with ESPHome. The initial yaml is for an esp32dev board and the one in the previous post still has the esp-poe from my config. Yours has WiFi mine has Ethernet. You need to work on the base config and make sure you understand what each section does. Also the yaml without logs or compiler errors does not help much, because I need to compile it in my head than.

@Hotzenplotz1
Copy link
Author

Hello everyone.

I have set up the ESP according to your instructions and am now getting the first values.
And also the following error message:
[W][component:237]: Component canbus took a long time for an operation (58 ms).
[W][component:238]: Components should block for at most 30 ms.
That should be related to the bit_rate, right? Actual: 20kbps

A few values from the heating also fit (room temperature, outside temperature, return temperature ....), others still have errors in the display, others are not found or are not logically linked.

As I have understood, I now check which values from the log match my values on the heating system and then adjust the address in the property h or adjust their addresses.
Is this the correct procedure?

@mkaiser
Copy link
Contributor

mkaiser commented Dec 1, 2024

Hi,

[W][component:237]: Component canbus took a long time for an operation (58 ms).
[W][component:238]: Components should block for at most 30 ms.
That should be related to the bit_rate, right? Actual: 20kbps

The Bit rate is fixed at 20kbit/s. The Long taking operations propably result by not answered requests / wrong register mappings

A few values from the heating also fit (room temperature, outside temperature, return temperature ....), others still have errors in the display, others are not found or are not logically linked.

As I have understood, I now check which values from the log match my values on the heating system and then adjust the address in the property h or adjust their addresses.

Did you use the TTF07 define?

The Heatpump of the repos owner differs very much from my TTF07 ( and your WPC).

IT took me some weeks to get most of the register adresses working. But my findings are not upstreamed yet. The easy way for you would be to wait 2-3 weeks until I find some time to finish that.

@Hotzenplotz1
Copy link
Author

I use TTF07. It would be very nice if you can share your result!

Thanks!

Copy link

github-actions bot commented Jan 1, 2025

Hi there! This is an automated message to let you know that this issue has been inactive for some time. If no further activity or updates are provided in the next 7 days, this issue will be closed as stale. If you're still working on this issue, please leave a comment to let us know. Otherwise, feel free to reopen the issue if you encounter the problem again in the future. Thanks for your understanding!

@github-actions github-actions bot added the Stale label Jan 1, 2025
@Hotzenplotz1
Copy link
Author

Hi,

[W][component:237]: Component canbus took a long time for an operation (58 ms).
[W][component:238]: Components should block for at most 30 ms.
That should be related to the bit_rate, right? Actual: 20kbps

The Bit rate is fixed at 20kbit/s. The Long taking operations propably result by not answered requests / wrong register mappings

A few values from the heating also fit (room temperature, outside temperature, return temperature ....), others still have errors in the display, others are not found or are not logically linked.
As I have understood, I now check which values from the log match my values on the heating system and then adjust the address in the property h or adjust their addresses.

Did you use the TTF07 define?

The Heatpump of the repos owner differs very much from my TTF07 ( and your WPC).

IT took me some weeks to get most of the register adresses working. But my findings are not upstreamed yet. The easy way for you would be to wait 2-3 weeks until I find some time to finish that.

Good morning and a happy new year,

have you already had the opportunity to collect new values?
Or could you be so kind as to share your current status?

Thank you very much!

@github-actions github-actions bot removed the Stale label Jan 6, 2025
@mkaiser
Copy link
Contributor

mkaiser commented Jan 10, 2025

Please Check #47 (comment)

@kr0ner
Copy link
Owner

kr0ner commented Jan 22, 2025

please have a look if #93 is sufficient

@Hotzenplotz1
Copy link
Author

I only get the room temperature and room humidity displayed, could it be that the CAN ID is not the right one?

How can i check the CAN ID's?

@kr0ner
Copy link
Owner

kr0ner commented Jan 28, 2025

Without logs I can't help. Please post the logs and in case you changed the yamls I'd also need the changes there in order to be able to see whats going wrong

@kr0ner
Copy link
Owner

kr0ner commented Feb 7, 2025

@Hotzenplotz1 I'm working on it. Some messages have the format that I've seen before. Others are completely different. I'm not even sure if there is some randomness in the data 🤷
I'll try to come up with sth. for you to test and if the weird values still persist you would need to try a different MCP2515. Those sometimes cause problems. I will keep you updated

@Hotzenplotz1
Copy link
Author

Thank you very much!

Do you think it's my can MCP2515 adapter and it's damaged?

@kr0ner
Copy link
Owner

kr0ner commented Feb 7, 2025

I don't know yet :/
there is a certain format of ids (byte 0 and 1) which almost always looks good. But sometimes those ids show up as byte 5 or 6 or at random places ... which looks weird. That would explain why the data is so random if the bytes are shifted. But I'm still investigating. Having a spare MCP2515 is never a bad idea 😉

@Hotzenplotz1
Copy link
Author

New MCP2515's log:

logs_esp32-poe-technik_logs(12).txt

@kr0ner
Copy link
Owner

kr0ner commented Feb 16, 2025

sorry @Hotzenplotz1 did not find the time to look at the new logs 🤧

@Hotzenplotz1
Copy link
Author

No Problem. Get well soon!

@Hotzenplotz1
Copy link
Author

Could it be that something is wrong with my other hardware? For example, is a second resistor missing? Or the ports I have selected do not fit?

@kr0ner
Copy link
Owner

kr0ner commented Feb 24, 2025

You are getting some data, so that most likely is not the issue. Some values also make sense like:

[15:36:42][V][sensor:043]: 'AUSSENTEMP': Received new state 4.200000
[15:37:01][V][sensor:043]: 'RUECKLAUFISTTEMP': Received new state 31.500000
[15:38:03][V][sensor:043]: 'RUECKLAUFISTTEMP': Received new state 30.299999

but all the other values are weird. I still believe you are connected to the wrong canbus 🤷

@Hotzenplotz1
Copy link
Author

Hotzenplotz1 commented Feb 24, 2025

How can i fix it?

@kr0ner
Copy link
Owner

kr0ner commented Feb 25, 2025

You would need to try different CAN Bus. Can you take a picture of where the MCP2515 is connected to the heat pump? Cause with the current values we can't work ... there are only like 5 usable values in the logs.

@Hotzenplotz1
Copy link
Author

imageimage

@Hotzenplotz1
Copy link
Author

Does it have an influence on the values if the FEK is still connected?

@Quotic
Copy link

Quotic commented Feb 25, 2025

what is the red cable which is also connected to CAN High?
Ah you have also the FEK connected?

@Hotzenplotz1
Copy link
Author

Hotzenplotz1 commented Feb 25, 2025

Yes, FEK is connected.

I have connected the FEK because I think it is needed for the cooling function.

@Hotzenplotz1
Copy link
Author

FEK was disconnected. Here is the current data log.

logs_esp32-poe-technik_logs(14).txt

@kr0ner
Copy link
Owner

kr0ner commented Feb 25, 2025

FEK was disconnected. Here is the current data log.

logs_esp32-poe-technik_logs(14).txt

Did you now connect the MCP2515 to where the FEK was connected before?
Or did you just remove the FEK? It is possible to use FEK and the MCP at the same time.

@Hotzenplotz1
Copy link
Author

I have 2 possibilities to connect:

  1. the mcp directly to the heater or
  2. the mcp in series with the fek in the living room.

I had connected the mcp directly to the heating system, but because the wifi was poor here, I connected the mcp in the living room again and disconnected the 4 connections of the fek. the fek is currently dead.

when both devices were connected, we had the measured values that seemed confused to you.

maybe we can write in discord?

@kr0ner
Copy link
Owner

kr0ner commented Feb 25, 2025

If the wires lead to the same CAN, it should not make any difference. I currently have no time for discord, sorry. I can only look here from time to time.

The problem is that some of the values that you received looked good, and others were completely off. I tried to match the values against your pictures but that did not help.

Can you connect it back to how it was somewhat working before? After that compile with logging set to debug, pick any property(or 2 or 3) in the display of your heatpump and change it(them) multiple times to different values. Tell me the numbers and the name and i'll try one more time to match the stuff

@Hotzenplotz1
Copy link
Author

I have adjusted the ANLAGENFROST value and can confirm the address. Does this help us?

[13:47:12][I][Communication:150]: Message received: Read/Write ID 0x60 0x79(0x339) for property ANLAGENFROST (0x0a00) with raw value: 40 --> Anlagenfrost OK

Does a comparison with the index from the ELSTER TABLE help?

@kr0ner
Copy link
Owner

kr0ner commented Mar 5, 2025

I have adjusted the ANLAGENFROST value and can confirm the address. Does this help us?

[13:47:12][I][Communication:150]: Message received: Read/Write ID 0x60 0x79(0x339) for property ANLAGENFROST (0x0a00) with raw value: 40 --> Anlagenfrost OK

Does a comparison with the index from the ELSTER TABLE help?

Yes, that is exactly what we need
Can you do this for, let's say 5 values? Change it back and forth, capture the logs along with some pictures if the display where you change values. If the communication works reliably, mapping the entries is not a big deal.

@Hotzenplotz1
Copy link
Author

I have created a list based on the values from the log and the elster table.

I was able to extract the date from the values.

I also recorded the time value, as this is automatically adjusted.

The question is, how can I adjust the other existing values to the exact time?

Is it possible to display further values that I can check?

2025-03-06 Werte WPC.xlsx

2025-03-06 logs_esp32-poe-technik_logs.txt

@kr0ner
Copy link
Owner

kr0ner commented Mar 6, 2025

after looking at the logs and consulting Deepseek I'm like : WTF?
looks like the date is the following

1539 -> hex -> 0603 -> 06.03
2053 -> hex -> 0805 -> 08.05

@Hotzenplotz1
Copy link
Author

Can I do something else?

@kr0ner
Copy link
Owner

kr0ner commented Mar 6, 2025

Still did not figure out how the time is encoded. There must be another property aside 0x0009 and 0x000a.

Can you take pictures of the display again? Can be the same menu, but i need at least 1 hours of logs

@Hotzenplotz1
Copy link
Author

Hotzenplotz1 commented Mar 6, 2025

You Need 1 Hour log? And Take the same pictures?

@kr0ner
Copy link
Owner

kr0ner commented Mar 6, 2025

The more the better. I'm also happy if you switch any value back and forth a few times (>5) and just provide pictures of the values along with the logs. 1 or two switches provide too many ambiguities

@Hotzenplotz1
Copy link
Author

I repeat:

  • Start logging
  • Take picture of value
  • change value and Take pictures
  • wait 10 minutes
  • change value back
  • 5 times
  • min. 3 values

Right?

@kr0ner
Copy link
Owner

kr0ner commented Mar 6, 2025

I repeat:

  • Start logging
  • Take picture of value
  • change value and Take pictures
  • wait 10 minutes
  • change value back
  • 5 times
  • min. 3 values

Right?

You got it :) except the 10 minutes wait is not needed. If there is value logged for the change it is good enough. Dont fo too many properties in the first place. Just the top 5 on your list to start
Also changing to different values everytime would be great

@Hotzenplotz1
Copy link
Author

Hotzenplotz1 commented Mar 6, 2025

So:
I cant change the values from the excel List, this was "istwerte" i can Change:

  • Zustände on / off or
  • Zahlenwerte

What you Need?

F.e.:

  • warmwasser soll
  • Rücklauf Max
  • Vorlauf Max

@kr0ner
Copy link
Owner

kr0ner commented Mar 6, 2025

Any value you can set. Sollwerte are fine 👍🏼 maybe we can really do a live session once to speed things up soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants