diff --git a/SunGather/registers-sungrow.yaml b/SunGather/registers-sungrow.yaml index 3a66610..f882615 100644 --- a/SunGather/registers-sungrow.yaml +++ b/SunGather/registers-sungrow.yaml @@ -1276,7 +1276,7 @@ registers: - response: 1 value: 1 - response: 0 - value: "-1" + value: -1 models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH10RT-V112","SH10RT-20","SH8.0RT","SH6.0RT","SH5.0RT","SH5.0RT-V112"] - name: "state_battery_charging" level: 2 @@ -1287,7 +1287,7 @@ registers: - response: 1 value: 1 - response: 0 - value: "-1" + value: -1 models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH10RT-V112","SH10RT-20","SH8.0RT","SH6.0RT","SH5.0RT","SH5.0RT-V112"] - name: "state_battery_charging_raw" level: 2 @@ -1304,7 +1304,7 @@ registers: - response: 1 value: 1 - response: 0 - value: "-1" + value: -1 models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH10RT-V112","SH10RT-20","SH8.0RT","SH6.0RT","SH5.0RT","SH5.0RT-V112"] - name: "state_battery_discharging_raw" level: 2 @@ -1321,7 +1321,7 @@ registers: - response: 1 value: 1 - response: 0 - value: "-1" + value: -1 models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH10RT-V112","SH10RT-20","SH8.0RT","SH6.0RT","SH5.0RT","SH5.0RT-V112"] - name: "state_feed_into_grid" level: 2 @@ -1332,7 +1332,7 @@ registers: - response: 1 value: 1 - response: 0 - value: "-1" + value: -1 models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH10RT-V112","SH10RT-20","SH8.0RT","SH6.0RT","SH5.0RT","SH5.0RT-V112"] - name: "state_import_from_grid" level: 2 @@ -1343,7 +1343,7 @@ registers: - response: 1 value: 1 - response: 0 - value: "-1" + value: -1 models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH10RT-V112","SH10RT-20","SH8.0RT","SH6.0RT","SH5.0RT","SH5.0RT-V112"] - name: "state_power_generated_from_load" level: 2 @@ -1354,7 +1354,7 @@ registers: - response: 1 value: 1 - response: 0 - value: "-1" + value: -1 models: ["SH5K-20","SH3K6","SH4K6","SH5K-V13","SH5K-30","SH3K6-30","SH4K6-30","SH5.0RS","SH3.6RS","SH4.6RS","SH6.0RS","SH10RT","SH10RT-V112","SH10RT-20","SH8.0RT","SH6.0RT","SH5.0RT","SH5.0RT-V112"] - name: "daily_pv_generation" level: 2 diff --git a/requirements.txt b/requirements.txt index c2a761b..d8f32d1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ PyYAML~=6.0 paho-mqtt~=2.0 requests~=2.0 -SungrowClient>=0.1.0 +SungrowClient @ git+https://github.com/bohdan-s/SungrowClient@6f184cd influxdb-client~=1.0