diff --git a/tests/fixtures.py b/tests/fixtures.py index 569139f..ae24ea0 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -6,6 +6,7 @@ import solax.inverters as inverter from tests.samples.expected_values import ( QVOLTHYBG33P_VALUES, + QVOLTHYBG33P_VALUES_V3_15, X1_BOOST_VALUES, X1_BOOST_VALUES_OVERFLOWN, X1_HYBRID_G4_VALUES, @@ -26,6 +27,7 @@ ) from tests.samples.responses import ( QVOLTHYBG33P_RESPONSE_V34, + QVOLTHYBG33P_RESPONSE_V3_15, X1_BOOST_AIR_MINI_RESPONSE, X1_BOOST_RESPONSE, X1_BOOST_RESPONSE_OVERFLOWN, @@ -265,6 +267,16 @@ def simple_http_fixture(httpserver): headers=None, data=None, ), + InverterUnderTest( + uri="/", + method="POST", + query_string="", + response=QVOLTHYBG33P_RESPONSE_V3_15, + inverter=inverter.QVOLTHYBG33P, + values=QVOLTHYBG33P_VALUES_V3_15, + headers=None, + data=None, + ), InverterUnderTest( uri="/", method="POST", diff --git a/tests/samples/expected_values.py b/tests/samples/expected_values.py index bccbaf4..57dee93 100644 --- a/tests/samples/expected_values.py +++ b/tests/samples/expected_values.py @@ -498,6 +498,49 @@ "Battery Operation mode": "Self Use Mode", } +QVOLTHYBG33P_VALUES_V3_15 = { + "Network Voltage Phase 1": 221.4, + "Network Voltage Phase 2": 223.8, + "Network Voltage Phase 3": 225.1, + "Output Current Phase 1": 1.1, + "Output Current Phase 2": 1.0, + "Output Current Phase 3": 1.2, + "Power Now Phase 1": 162.0, + "Power Now Phase 2": 136.0, + "Power Now Phase 3": 146.0, + "AC Power": 444.0, + "PV1 Voltage": 566.2, + "PV2 Voltage": 568.2, + "PV1 Current": 1.8, + "PV2 Current": 1.7, + "PV1 Power": 1050.0, + "PV2 Power": 977.0, + "Grid Frequency Phase 1": 50.02, + "Grid Frequency Phase 2": 50.01, + "Grid Frequency Phase 3": 50.02, + "Inverter Operation mode": "Normal", + "Exported Power": -7.0, + "Battery Voltage": 323.4, + "Battery Current": 5.0, + "Battery Power": 1616.0, + "Power Now": 451.0, + "Total Energy": 219.0, + "Total Battery Discharge Energy": 73.8, + "Total Battery Charge Energy": 90.4, + "Today's Battery Discharge Energy": 0.0, + "Today's Battery Charge Energy": 8.1, + "Total PV Energy": 231.6, + "Today's Energy": 11.8, + "Total Feed-in Energy": 107.94, + "Total Consumption": 145.44, + "Today's Feed-in Energy": 1.66, + "Today's Consumption": 4.66, + "Battery Remaining Capacity": 95.0, + "Battery Temperature": 35.0, + "Battery Remaining Energy": 8.8, + "Battery Operation mode": "Self Use Mode", +} + X1_HYBRID_G4_VALUES = { "AC voltage R": 247.0, "AC current": 1.1, diff --git a/tests/samples/responses.py b/tests/samples/responses.py index 4f04971..e7871e3 100644 --- a/tests/samples/responses.py +++ b/tests/samples/responses.py @@ -3547,3 +3547,323 @@ ], "Information": [12.0, 14, "H34XXXXXXXX", 1, 1.15, 0.0, 1.14, 1.07, 0.0, 1], } + +QVOLTHYBG33P_RESPONSE_V3_15 = { + "sn":"SQXXXXXXXX", + "ver":"3.015.02", + "type":14, + "Data":[ + 2214, + 2238, + 2251, + 11, + 10, + 12, + 162, + 136, + 146, + 444, + 5662, + 5682, + 18, + 17, + 1050, + 977, + 5002, + 5001, + 5002, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 65529, + 65535, + 0, + 0, + 0, + 32340, + 500, + 1616, + 3236, + 50, + 1618, + 1, + 50, + 451, + 256, + 3841, + 4875, + 5634, + 100, + 0, + 45, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2190, + 0, + 36, + 1, + 0, + 1, + 738, + 0, + 904, + 0, + 0, + 81, + 2316, + 0, + 118, + 0, + 0, + 0, + 10794, + 0, + 14544, + 0, + 166, + 0, + 466, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 95, + 1, + 35, + 88, + 256, + 3504, + 2400, + 115, + 300, + 352, + 325, + 34, + 34, + 8, + 1620, + 773, + 12850, + 12850, + 12850, + 0, + 0, + 0, + 3389, + 3384, + 33876, + 2, + 20564, + 12339, + 18497, + 12599, + 18743, + 12356, + 14386, + 20564, + 12339, + 18498, + 12600, + 18740, + 12356, + 12855, + 20564, + 12339, + 18498, + 12600, + 18740, + 12612, + 14642, + 20564, + 12339, + 18498, + 12600, + 18740, + 12356, + 13877, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 3843, + 2306, + 1282, + 257, + 0, + 32340, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "Information":[ + 12.000, + 1, + "HXXXXXXXXXXXXX", + 1, + 1.01, + 0.00, + 1.01, + 1.01, + 0.00, + 1 + ] +} \ No newline at end of file