Skip to content

Commit 3b9f724

Browse files
authored
Merge pull request #380 from IgorYbema/main
release v3.2
2 parents 5c0e833 + 2809e09 commit 3b9f724

31 files changed

+2647
-404
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v3
15+
16+
- name: Update version.h
17+
if: github.ref != 'refs/heads/main' #do not change version in main branch run
18+
run: cd HeishaMon && echo "static const char *heishamon_version = \"Alpha-$(git rev-parse --short HEAD)\";" > version.h && cat version.h
19+
shell: bash
1520

1621
- name: Setup Arduino CLI
1722
uses: arduino/setup-arduino-cli@v1.1.1
@@ -25,7 +30,7 @@ jobs:
2530
run: arduino-cli lib install ringbuffer pubsubclient doubleresetdetect arduinojson dallastemperature onewire WebSockets
2631

2732
- name: Compile Sketch
28-
run: cd HeishaMon && arduino-cli compile --output-dir . --fqbn=esp8266:esp8266:d1_mini:xtal=160,vt=flash,ssl=basic,mmu=3216,non32xfer=safe,eesz=4M2M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 --vid-pid=1A86_7523 --warnings=none --verbose HeishaMon.ino
33+
run: cd HeishaMon && arduino-cli compile --output-dir . --fqbn=esp8266:esp8266:d1_mini:xtal=160,vt=flash,ssl=basic,mmu=3216,non32xfer=safe,eesz=4M2M,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 --warnings=none --verbose HeishaMon.ino
2934

3035
- name: Add MD5 checksum
3136
run: cd HeishaMon && MD5=`md5sum HeishaMon.ino.bin | cut -d\ -f1` && mv HeishaMon.ino.bin HeishaMon-alpha-$MD5.bin

HeatPumpType.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,16 @@ Assuming that bytes from #129 to #138 are unique for each model of Aquarea heat
3232
|25 | E2 CF 0B 75 09 12 D0 0C 06 11 | WH-ADC1216H6E5 | WH-UD12HE5 | KIT-ADC12HE5 | 12 | 1ph | T-CAP |
3333
|26 | 42 D4 0B 83 71 42 D2 0C 46 55 | WH-ADC0309J3E5C | WH-UD07JE5 | KIT-ADC07JE5C | 7 | 1ph | HP - All-In-One Compact |
3434
|27 | C2 D3 0C 34 65 B2 D3 0B 95 65 | Monoblock | WH-MDC07J3E5 | Monoblock | 7 | 1ph | HP (new version?) |
35-
|28 | C2 D3 0C 33 65 B2 D3 0B 94 65 | Monoblock | WH-MDC05J3E5 | Monoblock | 5 | 1ph | HP (new version? |
36-
|29 | E2 CF 0D 85 05 12 D0 0E 94 05 | WH-SXC09H3E8 | WH-UX09HE8 | KIT-WXC09H3E8 | 9 | 3ph | T-CAP |
35+
|28 | C2 D3 0C 33 65 B2 D3 0B 94 65 | Monoblcok | WH-MDC05J3E5 | Monoblock | 5 | 1ph | HP (new version? |
36+
|29 | E2 CF 0B 83 05 12 D0 0D 92 05 | WH-UQ12HE8 | WH-SQC12H9E8 | KIT-WQC12H9E8 | 12 | 3ph | T-CAP - Super Quiet |
37+
|30 | E2 CF 0C 78 09 12 D0 0B 06 11 | WH-SXC12H6E5 | WH-UX12HE5 | KIT-WXC12H6E5 | 12 | 1ph | T-CAP |
38+
|31 | C2 D3 0C 35 65 B2 D3 0B 96 65 | Monoblock | WH-MDC09J3E5 | Monoblock | 9 | 1ph | HP (new version?) |
39+
|32 | 32 D4 0B 99 77 62 90 0B 01 78 | Monoblock | WH-MXC09J3E5 | Monoblock | 9 | 1ph | T-CAP
40+
|33 | 42 D4 0B 15 76 12 D0 0B 10 11 | WH-ADC1216H6E5C | WH-UD12HE5 | KIT-ADC12HE5C-CL | 12 | 1ph| HP - All-In-One Compact |
41+
|34 | E2 D5 0C 29 99 83 92 0C 28 98 | WH-ADC0509L3E5 | WH-WDG07LE5 | KIT-ADC07L3E5 | 7 | 1ph | HP - All-In-One L-series |
42+
|35 | E2 CF 0D 85 05 12 D0 0E 94 05 | WH-SXC09H3E8 | WH-UX09HE8 | KIT-WXC09H3E8 | 9 | 3ph | T-CAP - new version |
43+
|36 | E2 D5 0D 36 99 02 D6 0F 67 95 | WH-ADC0309K3E5AN | WH-UDZ07KE5 | KIT-ADC07K3E5AN | 7 | 1ph | HP - All-In-One K-series - AN |
44+
|37 | E2 D5 0B 08 95 02 D6 0E 66 95 | WH-SDC0309K3E5 | WH-UDZ05KE5 | KIT-WC05K3E5 | 5 | 1ph | HP - split K-series |
3745

3846
All bytes are used for Heat Pump model identification in the code.
3947

HeishaMon/HeishaMon.ino

100755100644
Lines changed: 174 additions & 94 deletions
Large diffs are not rendered by default.

HeishaMon/HeishaOT.cpp

Lines changed: 562 additions & 0 deletions
Large diffs are not rendered by default.

HeishaMon/HeishaOT.h

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#ifndef _HEISHA_OT_H_
2+
#define _HEISHA_OT_H_
3+
4+
#include <PubSubClient.h>
5+
#include "src/common/webserver.h"
6+
7+
// opentherm
8+
const int inOTPin = 3; //RX pin from ESP8266
9+
const int outOTPin = 1; //TX pin from ESP8266
10+
11+
// mqtt
12+
extern const char* mqtt_topic_opentherm;
13+
14+
#define TBOOL 1
15+
#define TFLOAT 2
16+
17+
typedef struct heishaOTDataStruct_t {
18+
const char *name;
19+
uint8_t type;
20+
union {
21+
bool b;
22+
float f;
23+
} value;
24+
uint8_t rw;
25+
} heishaOTDataStruct_t;
26+
27+
extern struct heishaOTDataStruct_t heishaOTDataStruct[];
28+
29+
void HeishaOTSetup();
30+
void HeishaOTLoop(char *actDat, PubSubClient &mqtt_client, char* mqtt_topic_base);
31+
void mqttOTCallback(char* topic, char* value);
32+
void openthermTableOutput(struct webserver_t *client);
33+
void openthermJsonOutput(struct webserver_t *client);
34+
35+
#endif

0 commit comments

Comments
 (0)