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

PowerLimit Regelung via MQTT mit separatem ESP #618

Merged
merged 280 commits into from
Mar 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
280 commits
Select commit Hold shift + click to select a range
3d3e3dc
improved payload handling (request / retransmit) #464
lumapu Jan 17, 2023
3adcb68
improved payload handling (retransmit all fragments on CRC error)
lumapu Jan 19, 2023
a0a40be
fix compile
lumapu Jan 19, 2023
76b5818
fix compile
lumapu Jan 20, 2023
2b3f252
fix wakeup issue, once wifi was lost during night the communication d…
lumapu Jan 20, 2023
f78e417
fix ip
lumapu Jan 20, 2023
6704328
fix script
lumapu Jan 20, 2023
2dbf732
fix power limit not possible #607
lumapu Jan 20, 2023
7ceaa79
reduce MQTT retry interval from maximum speed to one second
lumapu Jan 21, 2023
9cedb41
implemented `getNTPTime` improvements #609 partially #611
lumapu Jan 22, 2023
2610f1a
fix ESP32 compile
lumapu Jan 22, 2023
22ae6d2
fix wrong filename for automatically created manifest (online install…
lumapu Jan 24, 2023
6721c8b
wifi debug
lumapu Jan 25, 2023
3bd8fe6
Fix attempt for HA autodiscovery
antibill51 Jan 28, 2023
9456937
Add Autodiscovery for total topic
antibill51 Jan 28, 2023
f8d4b4f
fixed Wifi scan during first configuration (client connected to AP of…
lumapu Jan 28, 2023
8457f46
further improvements regarding wifi #611, fix connection if only one …
lumapu Jan 28, 2023
a25aad3
Merge branch 'main' into development03
lumapu Jan 29, 2023
6e6ef9f
Merge branch 'development03' into development03
antibill51 Jan 29, 2023
bd8de5f
Send totals values once
antibill51 Jan 29, 2023
a37a9d4
Ignore "exp_aft" for yieldtotal and yieldday.
antibill51 Jan 29, 2023
9610e71
chunked response for prometheus metrics
fsck-block Jan 30, 2023
94fe61b
Merge pull request #635 from fsck-block/development03
lumapu Jan 30, 2023
146c761
Remove exp_aft for all YD & YT. Add reset YD total at midnight. Publi…
antibill51 Jan 31, 2023
a8b9ca0
don't send "0" for CH0 YT YD at reboot
antibill51 Jan 31, 2023
ca4083f
Merge branch 'lumapu:development03' into development03
antibill51 Feb 1, 2023
802205a
Update appInterface.h
beegee3 Feb 5, 2023
139129e
Update app.h
beegee3 Feb 5, 2023
5fb45f1
Update app.cpp
beegee3 Feb 5, 2023
447a433
Update main.cpp
beegee3 Feb 5, 2023
975ee66
Update defines.h
beegee3 Feb 5, 2023
7177d54
Update pubMqtt.h
beegee3 Feb 5, 2023
8f49aae
Delete ahoyTimer.h
beegee3 Feb 5, 2023
48c4884
Update web.h
beegee3 Feb 5, 2023
5056d7c
Update ahoywifi.h
beegee3 Feb 5, 2023
bbee9ab
Update ahoywifi.cpp
beegee3 Feb 5, 2023
155d602
Delete CircularBuffer.h
beegee3 Feb 5, 2023
6159c07
Update hmRadio.h
beegee3 Feb 5, 2023
9638414
Update hmSystem.h
beegee3 Feb 5, 2023
c241f35
Update payload.h
beegee3 Feb 5, 2023
1a3d101
Merge branch 'development03' of https://github.com/lumapu/ahoy into d…
lumapu Feb 5, 2023
a9179ec
fixed mixed reset flags #648
lumapu Feb 5, 2023
967c777
Merge branch 'develop03-devil' of https://github.com/beegee3/ahoy int…
lumapu Feb 5, 2023
6ca215c
Merge branch 'beegee3-develop03-devil' into development03
lumapu Feb 5, 2023
3ed8151
next changes from @beegee many thanks for your contribution!
lumapu Feb 5, 2023
7ee5e94
Merge branch 'development03' of https://github.com/antibill51/ahoy in…
lumapu Feb 5, 2023
e787ae9
Merge branch 'antibill51-development03' into development03
lumapu Feb 5, 2023
a85ed6c
fixed MQTT `autodiscover` #630 thanks to @antibill51
lumapu Feb 5, 2023
edefcf1
fix Interrupt
lumapu Feb 5, 2023
e7fff27
added further inverter and alarm info to prometheus endpoint
fsck-block Feb 6, 2023
0e6faa7
fixed communication #656
lumapu Feb 6, 2023
e8d45ac
Merge pull request #658 from fsck-block/development03
lumapu Feb 6, 2023
67ff020
renamed payload to hmPayload
lumapu Feb 6, 2023
75539c5
started implementation of MI inverters (setup.html, own processing `M…
lumapu Feb 6, 2023
5765e05
fixed communication error #652
lumapu Feb 7, 2023
21c5bda
MI integration in 0.5.82
rejoe2 Feb 8, 2023
7423de7
fix MQTT publishing, `callback` was set but reset by following `setup()`
lumapu Feb 8, 2023
e03464d
merge #664
lumapu Feb 8, 2023
1a96d28
decoding of status for MI600
rejoe2 Feb 9, 2023
f53d6fd
Merge branch 'development03' into development03
rejoe2 Feb 9, 2023
4d0bac9
further updates for MI
rejoe2 Feb 9, 2023
d94af14
MI - partially working
rejoe2 Feb 10, 2023
a157f2b
fix blue LED lights up all the time #672
lumapu Feb 10, 2023
1dd1b3b
Merge branch 'rejoe2-development03' into development03
lumapu Feb 10, 2023
026df8a
fix power-limit was not checked for max retransmits #667
lumapu Feb 11, 2023
a843ab6
fixed 'polling stop message' on `index.html` #639
lumapu Feb 11, 2023
ca25f16
prevent send devcontrol request during disabled night communication
lumapu Feb 12, 2023
32daf4f
fix yield total correction as module (inverter input) value #570
lumapu Feb 12, 2023
15bc5f2
reneabled instant start communication (once NTP is synced) #674
lumapu Feb 12, 2023
b69ab06
MQTT Yield Day zero, next try to fix #671, thx @beegee3
lumapu Feb 13, 2023
fe54599
version increase to 0.5.88
lumapu Feb 13, 2023
a0879cf
reduced heap fragmentation (removed `strtok` completely) #644, #645, …
lumapu Feb 14, 2023
b6a4150
fix MqTT client ID
lumapu Feb 14, 2023
8342851
configurable offset for tickMidnight
fsck-block Feb 19, 2023
2a5a31b
get rid of spaces in topics
ManfredBrauchle Feb 22, 2023
6b822a7
Merge pull request #705 from ManfredBrauchle/patch-2
lumapu Feb 22, 2023
20864db
Merge pull request #698 from fsck-block/development03
lumapu Feb 22, 2023
9ef2df2
merged PR #684, #698, #705
lumapu Feb 22, 2023
4f0d365
improved html and navi, navi is visible even when API dies #660
lumapu Feb 25, 2023
b63a54a
0.5.91
lumapu Feb 25, 2023
209d648
fix workflow
lumapu Feb 25, 2023
e74d3f4
fix workflow
lumapu Feb 25, 2023
dab6b17
Merge branch 'main' into development03
lumapu Feb 25, 2023
3cfa564
fix workflow
lumapu Feb 25, 2023
53624e4
0.5.92
lumapu Feb 25, 2023
eae10b0
fix channel assignment etc.
rejoe2 Feb 27, 2023
e89ac08
fill yield fields
rejoe2 Feb 27, 2023
730c4b9
Add EKD ESPNRF Case
Feb 28, 2023
f6ad403
MI models partly working
rejoe2 Mar 2, 2023
70cb0dc
improved web API for `live`
lumapu Mar 2, 2023
dd9f7ef
Merge branch 'development03' of https://github.com/rejoe2/ahoy into r…
lumapu Mar 2, 2023
d1d860a
Merge branch 'rejoe1-development03' into development03
lumapu Mar 2, 2023
8ed8a7d
0.5.93
lumapu Mar 2, 2023
cd30208
Merge branch 'subdancer-main' into development02
lumapu Mar 2, 2023
491155f
hotfix some web GUI parts
lumapu Mar 3, 2023
90955b9
fix /live
lumapu Mar 3, 2023
b8ed9b0
fix total in GUI
lumapu Mar 3, 2023
71ea715
fix UI
lumapu Mar 3, 2023
a5fb9cc
interim version
rejoe2 Mar 3, 2023
f1b722f
ePaper und Nokia über HSPI, erster Test
dAjaY85 Mar 5, 2023
3a2e2fa
Ordner MonochromeDisplay auf Display umbenannt
dAjaY85 Mar 5, 2023
7add54b
MI - request missing parts
rejoe2 Mar 5, 2023
319a69d
small changes
rejoe2 Mar 5, 2023
0026b2e
Delete hmInverter.h
rejoe2 Mar 5, 2023
b973d61
Delete miPayload.h
rejoe2 Mar 5, 2023
4eed422
MI - small changes
rejoe2 Mar 5, 2023
18ea8b5
Versuch die WebOberfläche an zu passen
dAjaY85 Mar 5, 2023
ce20d7c
MonochromeDisplay in Display umbenannt
dAjaY85 Mar 5, 2023
0ff821a
kleine Optimierungen
dAjaY85 Mar 5, 2023
565b944
PeriodenDauer hinzugefügt
dAjaY85 Mar 5, 2023
f7a7026
renamed var to VAr
lumapu Mar 5, 2023
674a844
Merge branch 'main' of https://github.com/lumapu/ahoy into development03
lumapu Mar 5, 2023
f471023
Merge branch 'development03' of https://github.com/dAjaY85/ahoy into …
lumapu Mar 5, 2023
501daf0
Merge branch 'dAjaY85-development03' into development03
lumapu Mar 5, 2023
892ce44
MI - delete unnecessary MiInfoCommand
rejoe2 Mar 5, 2023
52020d5
MI - refacture "complete?" code for 1/2 ch
rejoe2 Mar 7, 2023
6dbb88e
added ePaper (for ESP32 only!), thx @dAjaY85 #735
lumapu Mar 6, 2023
c27c5e1
fix time for ePaper
lumapu Mar 7, 2023
4f8a569
Merge branch 'lumapu:development03' into development03
rejoe2 Mar 7, 2023
a104e99
Merge branch 'main' into development03
lumapu Mar 7, 2023
b3e01fb
Merge branch 'main' into development03
lumapu Mar 7, 2023
52ce6e5
Merge branch 'development03' of https://github.com/rejoe2/ahoy into r…
lumapu Mar 7, 2023
fd698f2
Merge branch 'rejoe2-development03' into development03
lumapu Mar 7, 2023
39c02f8
merged #742 MI Improvments
lumapu Mar 7, 2023
f5ef19c
merged #736 remove obsolete JSON Endpoint
lumapu Mar 7, 2023
6ef7720
added Nokia display again for ESP8266 #764
lumapu Mar 8, 2023
ad64d73
MI - request firmware infos
rejoe2 Mar 9, 2023
84eb70d
Merge pull request #1 from rejoe2/MI-firmware
rejoe2 Mar 9, 2023
133f018
MI - code restructuring
rejoe2 Mar 9, 2023
8a7b1a0
add MI types to firmware version collection
rejoe2 Mar 9, 2023
9604687
Attention: re-ordered display types, check your settings! #746
lumapu Mar 9, 2023
4342ef0
Merge branch 'development03' of https://github.com/rejoe2/ahoy into r…
lumapu Mar 9, 2023
8bdd0f5
Merge branch 'rejoe2-development03' into development03
lumapu Mar 9, 2023
28bd99e
0.5.97
lumapu Mar 9, 2023
9ffa0d3
Add more inverters to user manual
rejoe2 Mar 10, 2023
0cc6e09
fix SH1106 rotation and turn off during night #756
lumapu Mar 10, 2023
3e919b4
removed MQTT subscription `sync_ntp`, `set_time` with a value of `0` …
lumapu Mar 10, 2023
499e1e4
0.5.98 removed debug outputs
lumapu Mar 10, 2023
2d9f53c
fix upload settings #686
lumapu Mar 11, 2023
116a1e6
0.5.99
lumapu Mar 11, 2023
6da58e3
0.5.100
lumapu Mar 13, 2023
20688b2
Korrektur, damit SSD wieder funktioniert.
dAjaY85 Mar 14, 2023
237d45f
Version 101
dAjaY85 Mar 14, 2023
02985af
Merge branch 'lumapu:development03' into development03
rejoe2 Mar 14, 2023
58d992c
Two improvements to heap fragmentation
Mar 14, 2023
7303266
Resolve conflict, accept upstream
Mar 14, 2023
58c2aa7
Merge remote-tracking branch 'upstream/development03' into development03
Mar 14, 2023
56b4ed2
Merge pull request #769 from dAjaY85/development03
lumapu Mar 14, 2023
108ab3e
1306 Fehlerkorrektur
dAjaY85 Mar 14, 2023
81c368e
Merge branch 'lumapu:development03' into development03
dAjaY85 Mar 14, 2023
0a19485
Merge pull request #774 from dAjaY85/development03
lumapu Mar 14, 2023
49899e7
Merge branch 'lumapu:development03' into development03
rejoe2 Mar 14, 2023
44faa03
MI - reviw ac calculation (#2)
rejoe2 Mar 15, 2023
3e67f2a
Merge pull request #776 from rejoe2/development03
lumapu Mar 15, 2023
3b661b0
Increase the MQTT topic buffer size
Mar 15, 2023
2781604
Merge remote-tracking branch 'upstream/development03' into development03
Argafal Mar 15, 2023
53ae7fe
Mi dev control (#3)
rejoe2 Mar 16, 2023
12f37c2
MI - add some multiframe handling
rejoe2 Mar 16, 2023
3317265
MI - optimize serial output and resending logic
rejoe2 Mar 16, 2023
a2f559d
Delete miPayload.h
rejoe2 Mar 16, 2023
95420e3
Delete hmRadio.h
rejoe2 Mar 16, 2023
c3fce0a
MI - optimize debug output and resending logic
rejoe2 Mar 16, 2023
d01b527
Debug: introduce DPRINTHEAD function
rejoe2 Mar 16, 2023
ff93954
use DPRINTHEAD for MI
rejoe2 Mar 16, 2023
a2f4807
Move some fix texts to debug.h
rejoe2 Mar 17, 2023
e132669
0.5.102
lumapu Mar 17, 2023
57bda04
0.5.102
lumapu Mar 18, 2023
d7c06fd
0.5.102
lumapu Mar 18, 2023
159b78c
0.5.103
lumapu Mar 19, 2023
3e6693f
Merge branch 'development01' of https://github.com/Argafal/ahoy into …
lumapu Mar 19, 2023
96eb32c
0.5.103
lumapu Mar 19, 2023
0b00261
Merge branch 'main' into development03
lumapu Mar 19, 2023
fd0b7d2
Merge branch 'development03' of https://github.com/rejoe2/ahoy into r…
lumapu Mar 19, 2023
ce6267a
Merge branch 'rejoe1-development03' into development03
lumapu Mar 19, 2023
296597a
0.5.103
lumapu Mar 19, 2023
a7bacf1
MI - dec control plus debug (#4)
rejoe2 Mar 19, 2023
a6b8794
0.5.104
lumapu Mar 19, 2023
25695fc
0.5.104
lumapu Mar 19, 2023
0526a51
Create Dockerfile
isarrider Mar 20, 2023
6fc2f2d
Merge branch 'lumapu:development03' into development03
rejoe2 Mar 22, 2023
0535117
MI - some small fixes (#5)
rejoe2 Mar 22, 2023
250d3f9
MI - debug output for error calculation
rejoe2 Mar 23, 2023
7d2efd7
Update Dockerfile
isarrider Mar 23, 2023
b498ea6
MI - restructure error calculation
rejoe2 Mar 23, 2023
3ed7632
clean up pull request
lumapu Mar 23, 2023
ce5c618
Merge branch 'rejoe2-development03' into development03
lumapu Mar 23, 2023
53d02df
Merge branch 'isarrider-patch-1' into development03
lumapu Mar 23, 2023
5a1a600
0.5.105
lumapu Mar 23, 2023
32092ed
debug review
rejoe2 Mar 24, 2023
c1e7128
debug review
rejoe2 Mar 24, 2023
03b1eb1
MI - small bugfix
rejoe2 Mar 24, 2023
a1fb4aa
MI - fix length for command packets
rejoe2 Mar 24, 2023
3f2e408
review #804
lumapu Mar 24, 2023
850cda3
0.5.106
lumapu Mar 25, 2023
02dc025
Merge branch 'rejoe1-development03' into development03
lumapu Mar 25, 2023
ecfefc6
Add uptime to Prometheus metrics
towolf Mar 25, 2023
97d60f2
start making SPI configurable
markusdd Mar 25, 2023
380f86c
Add missing argument for devicename
towolf Mar 25, 2023
cccbe63
fix config override example
markusdd Mar 25, 2023
44f602f
add spi pins to config container, remove hacks from app code
markusdd Mar 25, 2023
e2f8b7b
Also add RSSI metric
towolf Mar 25, 2023
190e8c7
conditionally display esp32-s3 list of pins for selection
markusdd Mar 25, 2023
9df7da4
add SPI pin config option
markusdd Mar 25, 2023
8c36093
extend api and settings container with spi pins
markusdd Mar 25, 2023
e3aa64b
remove explicit HSPI call as it breaks 8266 builds
markusdd Mar 25, 2023
44c254b
prevent setting of SPI pins for ESP82xx as not supported
markusdd Mar 25, 2023
79980fd
remove accidental file
markusdd Mar 25, 2023
2e0add3
prevent selection of SPI pins for 8266
markusdd Mar 25, 2023
c532be8
restore deafults for ESP32 standard modules
markusdd Mar 25, 2023
f350f8c
add S3 example in override.h
markusdd Mar 25, 2023
8df90cb
extend ci
markusdd Mar 25, 2023
80b8e17
also fix pin selection for displays
markusdd Mar 25, 2023
7c449b6
Add description for new metrics
towolf Mar 25, 2023
dfc869a
fix display selection for s3
markusdd Mar 25, 2023
081adeb
0.5.107
lumapu Mar 26, 2023
c01a4ef
Merge branch 'prometheus-add-uptime' of https://github.com/towolf/aho…
lumapu Mar 26, 2023
a9b1b57
Merge branch 'towolf-prometheus-add-uptime' into development03
lumapu Mar 26, 2023
a95dce5
0.5.107
lumapu Mar 26, 2023
a5f93f1
more fixes to serial output
rejoe2 Mar 26, 2023
8cab534
extend ci also on devel branch
markusdd Mar 26, 2023
11b0c5b
add s3 release binary
markusdd Mar 26, 2023
7ee9a9d
fix for display stealing the spi interface
markusdd Mar 26, 2023
e598865
Merge branch 'development03' of https://github.com/lumapu/ahoy into d…
markusdd Mar 26, 2023
29315b9
fix pointer lifetime for SPIClass
markusdd Mar 26, 2023
ac7423c
0.5.108
lumapu Mar 26, 2023
8f2cac7
Merge branch 'markusdd-development03' into development03
lumapu Mar 26, 2023
7cdd775
Merge branch 'development03' of https://github.com/rejoe2/ahoy into r…
lumapu Mar 26, 2023
e567d13
Merge branch 'rejoe2-development03' into development03
lumapu Mar 26, 2023
115f397
0.5.108
lumapu Mar 26, 2023
580a17d
improve centering of text on eInk display
markusdd Mar 26, 2023
5018009
Merge branch 'development03' of https://github.com/lumapu/ahoy into d…
markusdd Mar 26, 2023
4a44041
0.5.109
lumapu Mar 26, 2023
a23ee37
Merge branch 'development03' of https://github.com/markusdd/ahoy into…
lumapu Mar 26, 2023
1d0860f
0.5.109
lumapu Mar 26, 2023
1413fa1
update docs wrt to SPI pins
markusdd Mar 27, 2023
6aac856
Update Readme
DanielR92 Mar 27, 2023
48f03d0
Update Readme
DanielR92 Mar 27, 2023
a1aedce
small improvement, MQTT
lumapu Mar 27, 2023
7baa95c
MI - change logic for progressing 4ch dev info cmd
rejoe2 Mar 27, 2023
fae46c4
0.5.110
lumapu Mar 27, 2023
c4e9fec
0.5.110
lumapu Mar 27, 2023
a6424a8
Merge branch 'development03' of https://github.com/markusdd/ahoy into…
lumapu Mar 27, 2023
27815b8
Merge branch 'markusdd-development03' into development03
lumapu Mar 27, 2023
fdb4856
whitespace fix
lumapu Mar 27, 2023
150340b
Merge remote-tracking branch 'remotes/origin/DanielR92-patch-1' into …
lumapu Mar 27, 2023
7813bd4
Merge remote-tracking branch 'remotes/origin/DanielR92-patch-2' into …
lumapu Mar 27, 2023
0ddc001
Merge branch 'development03' of https://github.com/rejoe2/ahoy into r…
lumapu Mar 27, 2023
2c0dbc9
Merge branch 'rejoe2-development03' into development03
lumapu Mar 27, 2023
68da9e0
0.5.110
lumapu Mar 27, 2023
bb5cb8b
0.6.0
lumapu Mar 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/compile_development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: python convert.py

- name: Run PlatformIO
run: pio run -d src --environment esp8266-release --environment esp8285-release --environment esp8266-nokia5110 --environment esp8266-ssd1306 --environment esp32-wroom32-release --environment esp32-wroom32-nokia5110 --environment esp32-wroom32-ssd1306
run: pio run -d src --environment esp8266-release --environment esp8266-release-prometheus --environment esp8285-release --environment esp32-wroom32-release --environment esp32-wroom32-release-prometheus --environment opendtufusionv1-release

- name: Rename Binary files
id: rename-binary-files
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compile_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
run: python convert.py

- name: Run PlatformIO
run: pio run -d src --environment esp8266-release --environment esp8285-release --environment esp8266-nokia5110 --environment esp8266-ssd1306 --environment esp32-wroom32-release --environment esp32-wroom32-nokia5110 --environment esp32-wroom32-ssd1306
run: pio run -d src --environment esp8266-release --environment esp8266-release-prometheus --environment esp8285-release --environment esp32-wroom32-release --environment esp32-wroom32-release-prometheus --environment opendtufusionv1-release

- name: Rename Binary files
id: rename-binary-files
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
.vscode/extensions.json
src/config/config_override.h
src/web/html/h/*
src/web/html/tmp/*
/**/Debug
/**/v16/*
*.db
*.suo
*.ipch
src/output.map
108 changes: 69 additions & 39 deletions Getting_Started.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
## Overview

This page describes how the module of a Wemos D1 mini and ESP8266 is wired to the radio module and is flashed with the latest Firmware.<br/>
Further information will help you to communicate to the compatible inverters.

You find the full [User_Manual here](User_Manual.md)

## Compatiblity

For now the following Inverters should work out of the box:

Hoymiles Inverters

| Status | Serie | Model | comment |
| ----- | ----- | ------ | ------- |
| ✔️ | MI | 300, 600, 1000/1200/⚠️ 1500 | 4-Channel is not tested yet |
| ✔️ | HM | 300, 350, 400, 600, 700, 800, 1000?, 1200, 1500 | |
| ⚠️ | TSUN | [TSOL-M350](https://www.tsun-ess.com/Micro-Inverter/M350-M400), [TSOL-M400](https://www.tsun-ess.com/Micro-Inverter/M350-M400), [TSOL-M800/TSOL-M800(DE)](https://www.tsun-ess.com/Micro-Inverter/M800) | others may work as well (need to be verified). |

## Table of Contents

- [Table of Contents](#table-of-contents)
Expand All @@ -6,9 +25,12 @@
- [Things needed](#things-needed)
- [There are fake NRF24L01+ Modules out there](#there-are-fake-nrf24l01-modules-out-there)
- [Wiring things up](#wiring-things-up)
- [ESP8266 wiring example](#esp8266-wiring-example)
- [ESP8266 wiring example on WEMOS D1](#esp8266-wiring-example)
- [Schematic](#schematic)
- [Symbolic view](#symbolic-view)
- [ESP8266 wiring example on 30pin Lolin NodeMCU v3](#esp8266-wiring-example-2)
- [Schematic](#schematic-2)
- [Symbolic view](#symbolic-view-2)
- [ESP32 wiring example](#esp32-wiring-example)
- [Schematic](#schematic-1)
- [Symbolic view](#symbolic-view-1)
Expand All @@ -23,40 +45,13 @@
- [HTTP based Pages](#http-based-pages)
- [MQTT command to set the DTU without webinterface](#mqtt-command-to-set-the-dtu-without-webinterface)
- [Used Libraries](#used-libraries)
- [Contact](#contact)
- [ToDo](#todo)

***

## Overview

This page describes how the module of a Wemos D1 mini and ESP8266 is wired to the radio module and is flashed with the latest Firmware.<br/>
Further information will help you to communicate to the compatible inverters.

You find the full [User_Manual here](User_Manual.md)

## Compatiblity
Solenso Inverters:

For now the following Inverters should work out of the box:

Hoymiles Inverters

- HM300
- HM350
- HM400
- HM600
- HM700
- HM800
- HM1000?
- HM1200
- HM1500

TSUN Inverters:

- [TSOL-M350](https://www.tsun-ess.com/Micro-Inverter/M350-M400)
- [TSOL-M400](https://www.tsun-ess.com/Micro-Inverter/M350-M400)
- [TSOL-M800/TSOL-M800(DE)](https://www.tsun-ess.com/Micro-Inverter/M800)
- others may work as well (need to be verified).
- SOL-H350

## Things needed

Expand All @@ -69,8 +64,9 @@ Make sure the NRF24L01+ module has the "+" in its name as we depend on the 250kb

| **Parts** | **Price** |
| --- | --- |
| D1 ESP8266 Mini WLAN Board Mikrokontroller | 4,40 Euro |
| D1 ESP8266 Mini WLAN Board Microcontroller | 4,40 Euro |
| NRF24L01+ SMD Modul 2,4 GHz Wi-Fi Funkmodul | 3,45 Euro |
| 100µF / 10V Capacitor Kondensator | 0,15 Euro |
| Jumper Wire Steckbrücken Steckbrett weiblich-weiblich | 2,49 Euro |
| **Total costs** | **10,34 Euro** |

Expand All @@ -80,6 +76,7 @@ To also run our sister project OpenDTU and be upwards compatible for the future
| --- | --- |
| ESP32 Dev Board NodeMCU WROOM32 WiFi | 7,90 Euro |
| NRF24L01+ PA LNA SMA mit Antenne Long | 4,50 Euro |
| 100µF / 10V Capacitor Kondensator | 0,15 Euro |
| Jumper Wire Steckbrücken Steckbrett weiblich-weiblich | 2,49 Euro |
| **Total costs** | **14,89 Euro** |

Expand All @@ -89,6 +86,18 @@ Watch out, there are some fake NRF24L01+ Modules out there that seem to use rebr
An example can be found in [Issue #230](https://github.com/lumapu/ahoy/issues/230).<br/>
You are welcome to add more examples of faked chips. We will add that information here.<br/>

Some users reported better connection or longer range through more walls when using the
"E01-ML01DP5" EBYTE 2,4 GHz Wireless Modul nRF24L01 + PA + LNA RF Modul, SMA-K Antenna connector,
which has an eye-catching HF cover. But beware: It comes without the antenna!

In any case you should stabilize the Vcc power by a capacitor and don't exceed the Amplifier Power Level "LOW".
Users reporting good connection over 10m through walls / ceilings with Amplifier Power Level "MIN".
It is not always the bigger the better...

Power levels "HIGH" and "MAX" are meant to wirings where the nRF24 is supplied by an extra 3.3 Volt regulator.
The bultin regulator on ESP boards has only low reserves in case WiFi and nRF are sending simultaneously.
If you operate additional interfaces like a display, the reserve is again reduced.

## Wiring things up

The NRF24L01+ radio module is connected to the standard SPI pins:
Expand All @@ -107,7 +116,7 @@ Additional, there are 3 pins, which can be set individual:

*These pins can be changed from the /setup URL.*

#### ESP8266 wiring example
#### ESP8266 wiring example on WEMOS D1

This is an example wiring using a Wemos D1 mini.<br>

Expand All @@ -119,6 +128,18 @@ This is an example wiring using a Wemos D1 mini.<br>

![Symbolic](doc/AhoyWemos_Steckplatine.jpg)

#### ESP8266 wiring example on 30pin Lolin NodeMCU v3

This is an example wiring using a NodeMCU V3.<br>

##### Schematic

![Schematic](doc/ESP8266_nRF24L01+_Schaltplan.jpg)

##### Symbolic view

![Symbolic](doc/ESP8266_nRF24L01+_bb.png)

#### ESP32 wiring example

Example wiring for a 38pin ESP32 module
Expand All @@ -141,12 +162,27 @@ CE D2 (GPIO4)
IRQ D0 (GPIO16 - no IRQ!)
```

ATTENTION: From development version 108 onwards, also MISO, MOSI and SCLK
are configurable. Their defaults are correct for 'standard' ESP32 boards
and non-settable for ESP8266 (as this chip cannot move them elsewhere).
If you have an existing install though, you might see '0' in the web GUI.

Set MISO=19, MOSI=23, SCLK=18 in GUI and save for existing installs, this is the old
correct default for most ESP32 boards, for ESP82xx, a simple settings save should suffice.
Reboot afterwards.


## Flash the Firmware on your Ahoy DTU Hardware

Once your Hardware is ready to run, you need to flash the Ahoy DTU Firmware to your Board.
You can either build your own using your own configuration or use one of our pre-compiled generic builds.

#### Compiling your own Version
### Flash from your browser (easy)

The easiest step for you is to flash online. A browser MS Edge or Google Chrome is required.
[Here you go](https://ahoydtu.de/web_install/)

### Compiling your own Version

This information suits you if you want to configure and build your own firmware.

Expand Down Expand Up @@ -255,12 +291,6 @@ When everything is wired up and the firmware is flashed, it is time to connect t
| `ArduinoJson` | 6.19.4 | MIT |
| `ESP Async WebServer` | 4.3.0 | ? |

## Contact

We run a Discord Server that can be used to get in touch with the Developers and Users.

<https://discord.gg/WzhxEY62mB>

## ToDo

[See this post](https://github.com/lumapu/ahoy/issues/142)
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,27 @@ This work is licensed under a

**Communicate with Hoymiles inverters via radio**. Get actual values like power, current, daily energy and set parameters like the power limit via web interface or MQTT. In this repository you will find different approaches means Hardware / Software to realize the described functionalities.

List of approaches
Table of approaches:

- [ESP8266/ESP32, C++](Getting_Started.md) 👈 the most effort is spent here
- [Arduino Nano, C++](tools/nano/NRF24_SendRcv/)
- [Raspberry Pi, Python](tools/rpi/)
- [Others, C/C++](tools/nano/NRF24_SendRcv/)
| Board | MI | HM | HMS/HMT | comment | HowTo start |
| ------ | -- | -- | ------- | ------- | ---------- |
| [ESP8266/ESP32, C++](Getting_Started.md) | ✔️ | ✔️ | coming soon✨ | 👈 the most effort is spent here | [create your own DTU](https://ahoydtu.de/getting_started/) |
| [Arduino Nano, C++](tools/nano/NRF24_SendRcv/) || ✔️ || |
| [Raspberry Pi, Python](tools/rpi/) || ✔️ || |
| [Others, C/C++](tools/nano/NRF24_SendRcv/) || ✔️ || |

## Quick Start with ESP8266
- [Go here ✨](Getting_Started.md#things-needed)
- [Our Website](https://ahoydtu.de)
## Getting Started
[Guide how to start with a ESP module](Getting_Started.md)
[ESP Webinstaller (Edge / Chrome Browser only)](https://ahoydtu.de/web_install)

## Our Website
[https://ahoydtu.de](https://ahoydtu.de)

## Success Stories
- [Getting the data into influxDB and visualize them in a Grafana Dashboard](https://grafana.com/grafana/dashboards/16850-pv-power-ahoy/) (thx @Carl)

## Support, Feedback, Information and Discussion
- [Discord Server (~ 1200 Users)](https://discord.gg/WzhxEY62mB)
- [Discord Server (~ 3.800 Users)](https://discord.gg/WzhxEY62mB)
- [The root of development](https://www.mikrocontroller.net/topic/525778)

### Development
Expand All @@ -48,4 +52,4 @@ Please try to describe your issues as precise as possible and think about if thi
- [OpenDTU](https://github.com/tbnobody/OpenDTU)
<- Our sister project ✨ for Hoymiles HM-300, HM-600, HM-1200 (for ESP32 only!)
- [DTU Simulator](https://github.com/Ziyatoe/DTUsimMI1x00-Hoymiles)
<- Go here ✨ for Hoymiles MI-300, MI-600, MI-1200 Software
<- Go here ✨ for Hoymiles MI-300, MI-600, MI-1200 Software (single inverter only)
Loading