From 5a6a1a6d663fcf15893b1cc6fd025758976c3011 Mon Sep 17 00:00:00 2001 From: okaegi <72255431+okaegi@users.noreply.github.com> Date: Mon, 11 Mar 2024 14:39:13 +0100 Subject: [PATCH] acthor 27k (#2824) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * acthor 27k Unterstützung zwei verbundene Acthors (9000 Watt + 18000 Watt), Gesamthaft 27k Watt. Kann für 1.9 und 2.0 übernommen werden. Der Acthor wird als ein Gerät angesteuert und macht Verteilung selber. Kann für 1.9 und 2.0 übernommen werden, Gui für 2.0 kommt separat. * acthor 45K Neuer acthor type zugelassen 45000 Watt --- packages/modules/smarthome/acthor/watt.py | 8 +++++++- runs/mqttsub.py | 10 +++++----- web/settings/smarthomeconfig.php | 4 +++- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/packages/modules/smarthome/acthor/watt.py b/packages/modules/smarthome/acthor/watt.py index 53930fc15..f3d4126e5 100644 --- a/packages/modules/smarthome/acthor/watt.py +++ b/packages/modules/smarthome/acthor/watt.py @@ -42,7 +42,13 @@ if instpower == 0: instpower = 1000 cap = 9000 -if atype == "9s18": +if atype == "9s45": + faktor = 45000/instpower + cap = 45000 +elif atype == "9s27": + faktor = 27000/instpower + cap = 27000 +elif atype == "9s18": faktor = 18000/instpower cap = 18000 elif atype == "9s": diff --git a/runs/mqttsub.py b/runs/mqttsub.py index 26a7e9a7e..536489eba 100755 --- a/runs/mqttsub.py +++ b/runs/mqttsub.py @@ -156,7 +156,7 @@ def map_run(message: str, device_number: int, option: str): "stiebel", "http", "avm", "mystrom", "viessmann", "mqtt", "NXDACXX", "ratiotherm" )), "device_measureType": create_topic_handler( - equals_one_of_validator("shelly", "tasmota", "http", "mystrom", "sdm630", "lovato", "we514", "fronius", "b23", + equals_one_of_validator("shelly", "tasmota", "http", "mystrom", "sdm630", "lovato", "we514", "fronius", "b23", "json", "avm", "mqtt", "sdm120", "smaem")), "device_temperatur_configured": create_topic_handler(int_range_validator(0, 3)), "device_einschaltschwelle": create_topic_handler(int_range_validator(-100000, 100000)), @@ -190,17 +190,17 @@ def map_run(message: str, device_number: int, option: str): "device_shusername": create_topic_handler(), "device_shpassword": create_topic_handler(), "device_manwatt": create_topic_handler(int_range_validator(0, 30000)), - "device_maxueb": create_topic_handler(int_range_validator(0, 30000)), + "device_maxueb": create_topic_handler(int_range_validator(0, 30000)), "device_measureshusername": create_topic_handler(), "device_measureshpassword": create_topic_handler(), "device_actor": create_topic_handler(), "device_measureavmusername": create_topic_handler(), "device_measureavmpassword": create_topic_handler(), "device_measureavmactor": create_topic_handler(), - "device_acthortype": create_topic_handler(equals_one_of_validator("M1", "M3", "9s", "9s18")), + "device_acthortype": create_topic_handler(equals_one_of_validator("M1", "M3", "9s", "9s18", "9s27", "9s45")), "device_lambdaueb": create_topic_handler(equals_one_of_validator("UP", "UN", "UZ")), - "device_idmueb": create_topic_handler(equals_one_of_validator("UP", "UZ")), - "device_acthorpower": create_topic_handler(int_range_validator(0, 18000)), + "device_idmueb": create_topic_handler(equals_one_of_validator("UP", "UZ")), + "device_acthorpower": create_topic_handler(int_range_validator(0, 50000)), "device_finishTime": create_topic_handler(regex_match_validator(r"^([01]{0,1}\d|2[0-3]):[0-5]\d$")), "device_onTime": create_topic_handler(regex_match_validator(r"^([01]{0,1}\d|2[0-3]):[0-5]\d$")), "device_offTime": create_topic_handler(regex_match_validator(r"^([01]{0,1}\d|2[0-3]):[0-5]\d$")), diff --git a/web/settings/smarthomeconfig.php b/web/settings/smarthomeconfig.php index 421397a7c..6ee73b64a 100644 --- a/web/settings/smarthomeconfig.php +++ b/web/settings/smarthomeconfig.php @@ -409,6 +409,8 @@ + + Hier ist das installierte Modell auszuwählen. @@ -418,7 +420,7 @@
- + Hier bitte die an den Acthor angeschlossene Leistung in Watt angeben.