Skip to content

Commit 57b8584

Browse files
committed
support script for intermediate meter
## V1.93 ### script * support script for intermediate meter (#197) ### config * add `[SELECT_INTERMEDIATE_METER]`: `USE_SCRIPT_INTERMEDIATE` * add section `[INTERMEDIATE_SCRIPT]`
1 parent 2c5cdf3 commit 57b8584

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## V1.93
4+
### script
5+
* support script for intermediate meter (https://github.com/reserve85/HoymilesZeroExport/issues/197)
6+
### config
7+
* add `[SELECT_INTERMEDIATE_METER]`: `USE_SCRIPT_INTERMEDIATE`
8+
* add section `[INTERMEDIATE_SCRIPT]`
9+
310
## V1.92
411
### script
512
* support "Mitterbaur AMIS Lesekopf" (https://github.com/reserve85/HoymilesZeroExport/issues/184)

HoymilesZeroExport.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1616

1717
__author__ = "Tobias Kraft"
18-
__version__ = "1.92"
18+
__version__ = "1.93"
1919

2020
import requests
2121
import time
@@ -1278,6 +1278,13 @@ def CreateIntermediatePowermeter(dtu: DTU) -> Powermeter:
12781278
config.get('INTERMEDIATE_VZLOGGER', 'VZL_PORT_INTERMEDIATE'),
12791279
config.get('INTERMEDIATE_VZLOGGER', 'VZL_UUID_INTERMEDIATE')
12801280
)
1281+
elif config.getboolean('SELECT_INTERMEDIATE_METER', 'USE_SCRIPT_INTERMEDIATE'):
1282+
return Script(
1283+
config.get('INTERMEDIATE_SCRIPT', 'SCRIPT_FILE_INTERMEDIATE'),
1284+
config.get('INTERMEDIATE_SCRIPT', 'SCRIPT_IP_INTERMEDIATE'),
1285+
config.get('INTERMEDIATE_SCRIPT', 'SCRIPT_USER_INTERMEDIATE'),
1286+
config.get('INTERMEDIATE_SCRIPT', 'SCRIPT_PASS_INTERMEDIATE')
1287+
)
12811288
elif config.getboolean('SELECT_INTERMEDIATE_METER', 'USE_AMIS_READER_INTERMEDIATE'):
12821289
return AmisReader(
12831290
config.get('INTERMEDIATE_AMIS_READER', 'AMIS_READER_IP_INTERMEDIATE')

HoymilesZeroExport_Config.ini

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# ---------------------------------------------------------------------
2020

2121
[VERSION]
22-
VERSION = 1.92
22+
VERSION = 1.93
2323

2424
[SELECT_DTU]
2525
# --- define your DTU (only one) ---
@@ -156,6 +156,7 @@ USE_EMLOG_INTERMEDIATE = false
156156
USE_IOBROKER_INTERMEDIATE = false
157157
USE_HOMEASSISTANT_INTERMEDIATE = false
158158
USE_VZLOGGER_INTERMEDIATE = false
159+
USE_SCRIPT_INTERMEDIATE = false
159160
USE_AMIS_READER_INTERMEDIATE = false
160161

161162
[INTERMEDIATE_TASMOTA]
@@ -220,6 +221,13 @@ VZL_PORT_INTERMEDIATE = 2081
220221
# you need to specify the uuid of the vzlogger channel for the reading OBIS(16.7.0) (aktuelle Gesamtwirkleistung)
221222
VZL_UUID_INTERMEDIATE = 06ec9562-a490-49fe-92ea-ffe0758d181c
222223

224+
[INTERMEDIATE_SCRIPT]
225+
# --- defines for Shell Script Smartmeter Modul ---
226+
SCRIPT_IP_INTERMEDIATE = xxx.xxx.xxx.xx
227+
SCRIPT_FILE_INTERMEDIATE = GetPowerFromVictronMultiplus.sh
228+
SCRIPT_USER_INTERMEDIATE =
229+
SCRIPT_PASS_INTERMEDIATE =
230+
223231
# --- defines for Mitterbaur AMIS Reader ---
224232
[INTERMEDIATE_AMIS_READER]
225233
AMIS_READER_IP_INTERMEDIATE = xxx.xxx.xxx.xxx

0 commit comments

Comments
 (0)