Skip to content

Commit

Permalink
Merge pull request #380 from IgorYbema/main
Browse files Browse the repository at this point in the history
release v3.2
  • Loading branch information
Egyras authored Oct 16, 2023
2 parents 5c0e833 + 2809e09 commit 3b9f724
Show file tree
Hide file tree
Showing 31 changed files with 2,647 additions and 404 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Update version.h
if: github.ref != 'refs/heads/main' #do not change version in main branch run
run: cd HeishaMon && echo "static const char *heishamon_version = \"Alpha-$(git rev-parse --short HEAD)\";" > version.h && cat version.h
shell: bash

- name: Setup Arduino CLI
uses: arduino/[email protected]
Expand All @@ -25,7 +30,7 @@ jobs:
run: arduino-cli lib install ringbuffer pubsubclient doubleresetdetect arduinojson dallastemperature onewire WebSockets

- name: Compile Sketch
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
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

- name: Add MD5 checksum
run: cd HeishaMon && MD5=`md5sum HeishaMon.ino.bin | cut -d\ -f1` && mv HeishaMon.ino.bin HeishaMon-alpha-$MD5.bin
Expand Down
12 changes: 10 additions & 2 deletions HeatPumpType.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,16 @@ Assuming that bytes from #129 to #138 are unique for each model of Aquarea heat
|25 | E2 CF 0B 75 09 12 D0 0C 06 11 | WH-ADC1216H6E5 | WH-UD12HE5 | KIT-ADC12HE5 | 12 | 1ph | T-CAP |
|26 | 42 D4 0B 83 71 42 D2 0C 46 55 | WH-ADC0309J3E5C | WH-UD07JE5 | KIT-ADC07JE5C | 7 | 1ph | HP - All-In-One Compact |
|27 | C2 D3 0C 34 65 B2 D3 0B 95 65 | Monoblock | WH-MDC07J3E5 | Monoblock | 7 | 1ph | HP (new version?) |
|28 | C2 D3 0C 33 65 B2 D3 0B 94 65 | Monoblock | WH-MDC05J3E5 | Monoblock | 5 | 1ph | HP (new version? |
|29 | E2 CF 0D 85 05 12 D0 0E 94 05 | WH-SXC09H3E8 | WH-UX09HE8 | KIT-WXC09H3E8 | 9 | 3ph | T-CAP |
|28 | C2 D3 0C 33 65 B2 D3 0B 94 65 | Monoblcok | WH-MDC05J3E5 | Monoblock | 5 | 1ph | HP (new version? |
|29 | E2 CF 0B 83 05 12 D0 0D 92 05 | WH-UQ12HE8 | WH-SQC12H9E8 | KIT-WQC12H9E8 | 12 | 3ph | T-CAP - Super Quiet |
|30 | E2 CF 0C 78 09 12 D0 0B 06 11 | WH-SXC12H6E5 | WH-UX12HE5 | KIT-WXC12H6E5 | 12 | 1ph | T-CAP |
|31 | C2 D3 0C 35 65 B2 D3 0B 96 65 | Monoblock | WH-MDC09J3E5 | Monoblock | 9 | 1ph | HP (new version?) |
|32 | 32 D4 0B 99 77 62 90 0B 01 78 | Monoblock | WH-MXC09J3E5 | Monoblock | 9 | 1ph | T-CAP
|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 |
|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 |
|35 | E2 CF 0D 85 05 12 D0 0E 94 05 | WH-SXC09H3E8 | WH-UX09HE8 | KIT-WXC09H3E8 | 9 | 3ph | T-CAP - new version |
|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 |
|37 | E2 D5 0B 08 95 02 D6 0E 66 95 | WH-SDC0309K3E5 | WH-UDZ05KE5 | KIT-WC05K3E5 | 5 | 1ph | HP - split K-series |

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

Expand Down
268 changes: 174 additions & 94 deletions HeishaMon/HeishaMon.ino
100755 → 100644

Large diffs are not rendered by default.

562 changes: 562 additions & 0 deletions HeishaMon/HeishaOT.cpp

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions HeishaMon/HeishaOT.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#ifndef _HEISHA_OT_H_
#define _HEISHA_OT_H_

#include <PubSubClient.h>
#include "src/common/webserver.h"

// opentherm
const int inOTPin = 3; //RX pin from ESP8266
const int outOTPin = 1; //TX pin from ESP8266

// mqtt
extern const char* mqtt_topic_opentherm;

#define TBOOL 1
#define TFLOAT 2

typedef struct heishaOTDataStruct_t {
const char *name;
uint8_t type;
union {
bool b;
float f;
} value;
uint8_t rw;
} heishaOTDataStruct_t;

extern struct heishaOTDataStruct_t heishaOTDataStruct[];

void HeishaOTSetup();
void HeishaOTLoop(char *actDat, PubSubClient &mqtt_client, char* mqtt_topic_base);
void mqttOTCallback(char* topic, char* value);
void openthermTableOutput(struct webserver_t *client);
void openthermJsonOutput(struct webserver_t *client);

#endif
Loading

0 comments on commit 3b9f724

Please sign in to comment.