From 2a41278bfce998ac426c2a68f44883ed48e71c1d Mon Sep 17 00:00:00 2001 From: Jevgeni Kiski Date: Sat, 4 Jan 2025 17:54:27 +0200 Subject: [PATCH] Merging S1156 with S1256 (has now less registers because of that) --- nibe/data/{s1156.csv => s1156_s1256.csv} | 2 +- nibe/data/{s1156.json => s1156_s1256.json} | 0 nibe/heatpump.py | 3 ++- tests/test_heatpump.py | 5 +++++ 4 files changed, 8 insertions(+), 2 deletions(-) rename nibe/data/{s1156.csv => s1156_s1256.csv} (99%) rename nibe/data/{s1156.json => s1156_s1256.json} (100%) diff --git a/nibe/data/s1156.csv b/nibe/data/s1156_s1256.csv similarity index 99% rename from nibe/data/s1156.csv rename to nibe/data/s1156_s1256.csv index aa02585..f603361 100755 --- a/nibe/data/s1156.csv +++ b/nibe/data/s1156_s1256.csv @@ -1,4 +1,4 @@ -Title Register type Register Division factor Unit Size of variable Min value Max value Default value +Title Register type Register Division factor Unit Size of variable Min value Max value Default value Current outdoor temperature (BT1) MODBUS_INPUT_REGISTER 1 10 °C 2 0 0 0 Supply line (EP23-BT2) MODBUS_INPUT_REGISTER 2 10 °C 2 0 0 0 Supply line (EP22-BT2) MODBUS_INPUT_REGISTER 3 10 °C 2 0 0 0 diff --git a/nibe/data/s1156.json b/nibe/data/s1156_s1256.json similarity index 100% rename from nibe/data/s1156.json rename to nibe/data/s1156_s1256.json diff --git a/nibe/heatpump.py b/nibe/heatpump.py index 3631fe6..87b4d41 100644 --- a/nibe/heatpump.py +++ b/nibe/heatpump.py @@ -31,7 +31,8 @@ class Model(Enum): S1155 = "s1155_s1255", Series.S S1255 = "s1155_s1255", Series.S - S1256 = "s1155_s1255", Series.S + S1156 = "s1156_s1256", Series.S + S1256 = "s1156_s1256", Series.S F1145 = "f1145_f1245", Series.F F1245 = "f1145_f1245", Series.F diff --git a/tests/test_heatpump.py b/tests/test_heatpump.py index 77cf743..4a6576e 100644 --- a/tests/test_heatpump.py +++ b/tests/test_heatpump.py @@ -89,11 +89,14 @@ async def test_initalization_failed(self): "model,series", [ (Model.F370, Series.F), + (Model.F470, Series.F), (Model.F730, Series.F), + (Model.F750, Series.F), (Model.F1145, Series.F), (Model.F1245, Series.F), (Model.F1155, Series.F), (Model.F1255, Series.F), + (Model.F1345, Series.F), (Model.F1355, Series.F), (Model.SMO20, Series.F), (Model.SMO40, Series.F), @@ -108,7 +111,9 @@ async def test_initalization_failed(self): (Model.S735, Series.S), (Model.S1155, Series.S), (Model.S1255, Series.S), + (Model.S1156, Series.S), (Model.S1256, Series.S), + (Model.S2125, Series.S), ], ) def test_series(model: Model, series: Series):