norberts1 / hometop_HT3

Pimp your heater.
GNU General Public License v3.0
39 stars 19 forks source link

SW-enhancement for different Solaroptions #28

Closed norberts1 closed 7 months ago

norberts1 commented 11 months ago

Describe the bug The decoding for different Solar System-Konfigurations (SolarOptions) should be implemented.

To Reproduce Systems with EMS2 Solarmodul MS200 can have many different configurations and telegrams. See logfiles on URL: https://www.mikrocontroller.net/topic/324673?page=single#7454290

Expected behavior Decoding for different solar options is done and send to external interfaces.

Documentation SolarOptions_MS200

Negruej commented 11 months ago

Hi Norbert,

[log-16072023.xlsx](https://github.com/norberts1/hometop_HT3/files/12065051/log-16072023.xlsx

cw400-log-16072023.tar.gz

Negruej commented 11 months ago

Hi Norbert,

telegram 868_9 - byte6 should be the solar pump PS1 power ( in case of PWM used)

Regards, Jürgen

Negruej commented 11 months ago

Hi Norbert,

info for solar option "J" ( reload SP1 to SP3 )

Regards, Jürgen

cw400-log-18072023.tar.gz cw400-log-solar-option-J.xlsx

norberts1 commented 11 months ago

telegram 868_9 - byte6 should be the solar pump PS1 power ( in case of PWM used)

Yes it is.

Thanks for that logs. I have to make many extensions for that solar options and decoding.

But this is what I want to do, and good luck: you can create the log-files and will test the results :-)

Attached you can find a commented logfile with the assignment of temperature sensors (TSxy) to the bytes in the telegramm-streams (cw400-log-16072023a.log_comment_part1.zip). Please check it for the right assignment. cw400-log-16072023a.log_comment_part1.zip

Also I have made an update for the telegram documentation with a first assignment of temperature sensor names to the bytes in telegramm ID:866. Must not yet be OK, but it seems to fit to your system. Please check it. ID866_TS_assignment1

Negruej commented 11 months ago
norberts1 commented 11 months ago

The assignment of Solar Option letters to the bytes in MesID:866 and others are done by Junkers itself. I found and used this from there older documentation. But never mind, some of the TSxy names are used twice and more for different Solar-Options. Only TS1, TS2 and TS7 have fixed assignment to Solar-Options letters. The others are more or less used in different configurations. Common interface overview for MS200: MS200_interfaces

I have made a new software testversion for you to check it out on your system. It's important to recreate the used databases, cause there are new logitems used for the solar-part. Please enable the DEBUG flag in the configuration-file to get detailed info on messages. In the HT3_Analyser the additional solar-measurements are visible only in the 'solar'-view and not yet in the system-view. The tar-file holds the complete project-files in the latest version for tests.

tar-file removed now.

Negruej commented 11 months ago

I use a distributed deployment ( proxy on RaspiZW / client on Proxmox CT ) do I have to update both or only the client ?

norberts1 commented 11 months ago

do I have to update both or only the client ?

Only the client, cause no change in the ht_proxy-sw and message-transfer.

Negruej commented 11 months ago

it works immediately after update, alle the missing values now shown in the analyzer window. Thanks a lot, great work.

Negruej commented 11 months ago

could you please verify that my findings are correct: Telegramm 868_14 Byte6 (or 868_0 Byte 20) contains the value for PS7 ? Currently it shows always "Aus" Analyser1

norberts1 commented 11 months ago

Telegramm 868_14 Byte6 (or 868_0 Byte 20) contains the value for PS7 ?

It contains the: 'Required Reload Pump Power' for the PS7. I have used the flag 874_1_2 on 874 for PS7, but this one is not set.

But it could be the 874_11 used for PS7. If 874_11 = 4 -> PS7 running and 874_11 = 6 -> PS7 off.

Attached you'l find an update of ht_discode.py with above mentioned modification. Extract the tar-file and move the content to ~/HT3/sw/lib. ht_discode_20230721.tar.gz

Negruej commented 11 months ago

with the modified "ht_discode.py" show the analyzer window now the correct state from PS7. The attached bin- and debug-log file contains 22:31=ON / 22:32=OFF and 22:40=ON / 22:41=OFF for your reference. cw400-ps7-bin.log.tar.gz debug-log-PS7.tar.gz

norberts1 commented 11 months ago

@Negruej I have made a new release for tests on your system. Modifications are:

For above mentioned changes it is required to recreate the databases with call: .create_databases.py

Please check it on your system and hopefully it runs as good as the previous test-release. All project sw-parts are included in the tar-file. ht_sw_rev_0_6_test2.tar.gz

Negruej commented 11 months ago

Hi Norbert,

_test2. works just like the previous version. I can not find problems in this version

norberts1 commented 9 months ago

@Negruej I have made some modifications on rrdtool grafic-draw for matching to your system. There is an additional draw for your special system filled with temperature- and pump-data. Attached you can find the first draft on this output:

rrdtool_draw_solar_storage_cell2

If this matches to your requirements I'll create a new release.

norberts1 commented 9 months ago

@Negruej During tests with that HT3_Analyser using your logfiles I found one Displaycode (error): A11 and CauseCode: 3061. Perhaps there is something wrong configured or faulty on your system. See attached grafic-output: DisplayCode_A11

norberts1 commented 8 months ago

@Negruej New release made, please check it.

Negruej commented 8 months ago

@norberts1 I have installed the new release on a new separate system with the provided script. It works instantly after set the ip from proxy and MQTT broker. Page from second "Speicher" now available. Here the example from today: Bildschirmfoto 2023-10-13 um 16 48 32 We have changed the setup to "1BDHI" mainly to activate option "H". photo_2023-10-13_17-13-11

VS1 is now changed to VS3. Therefore I did not expect that all values on the display now correct. I will generate new logs and update this here later this weekend. Thks for your effort and help ..

Negruej commented 8 months ago

@norberts1 Could you please check the value of TS8 on the second solar graph. I'm not sure that the value of TS11 was shown there in my first setup. I have generated bin log from 3:07 - 3:19 pm today and also take pictures from CW400 to show the value's. To control the function of the "solar heating support" would it be possible to show also VS3 ? ( in % ) Until now it works perfect and is a great help to tune my setup. Thanks and regards, Jürgen bilder.zip binlog03-07bis03-19.log

Negruej commented 8 months ago

@norberts1 I have verified TS4 and TS8 on MS200:

Negruej commented 8 months ago

@norberts1 vor Option "H" (VS3)

norberts1 commented 8 months ago

@Negruej Thank's for your logfile and investigation. I have implemented this mixer-position 868_15 in my testenvironment, see picture. The assignment is currently to the 'Solar'-part of the 'Analyser', but I'm very unsure that's the right place. Cause, the 'Heizungsunterstützung' is foreseen for one of your two heating-circuits (I'll thing it's circuit 2). And the logical assignment should be then: heating-circuit 2 for the mixer-position, cause there is already one placeholder for it. See pictue: Solar_Mischerposition

It would be very helpful to get one extended logfile with data including also heating-circuit2 and more information on your currently configured and used system.

Negruej commented 8 months ago

@norberts1 here my findings: the "Mischer" in HK1 or HK2 is installed depends you have "underfloor heating" or "radiator" installed there. Here is one example of mixed setup, this will be my final setup (vor now I have only HK1 active): hk1+hk2.pdf

The "Heizungsunterstützung" can be implemented with VS1 (as option "A" on SP1 or "D" on SP2) as a switch. If temp on TS3 > TS4 then VS1 = 1, the RL use SPx to 100% until TS3 < TS4 then VS1 = 0 means SPx is bypassed in RL If a Mischer is installed there, option "H" is used in addition to "A" or "D". The system will now try to bring the return temp on TS8 to the required VL temp. with Mischer position between 0 and 100% until TS3 < TS4 ( no heat avail in SPx ) Here the prinziple drawing for the "Heizungsunterstützung": VS3.pdf

With this, the VS3 could be stay in solar ... (in my opinion and that doesn't have to be correct as all above) Thanks for your effort and help +Regards, Jürgen

norberts1 commented 8 months ago

@Negruej

With this, the VS3 could be stay in solar ...

Yes, cause the hybrid buffer is used for the hole system independent how many heating-circuits are connected. I have made a sw-update to check it out at your system. Database must not be new created, cause I used a spare-name for the new 'mixerposition VS3'-logitem. The rrdtool-drawing has now this VS3-value included. Please check it out.

ht_sw_update_0_7_x.tar.gz

Negruej commented 8 months ago

@norberts1 copy the files from above and restart display TS8 and VS3 now. Bildschirmfoto 2023-10-29 um 17 29 23 Thanks + Regards, Jürgen