You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,12 +60,20 @@ Any methods that may be useful.
60
60
61
61
`api.get_plant_settings(plant_id)` Get the current settings for the specified plant
62
62
63
+
`api.is_plant_noah_system(plant_id)` Get the Information if noah devices are configured for the specified plant
64
+
65
+
`api.noah_system_status(serial_number)` Get the current status for the specified noah device e.g. workMode, soc, chargePower, disChargePower, current import/export etc.
66
+
67
+
`api.noah_info(serial_number)` Get all information for the specified noah device e.g. configured Operation Modes, configured Battery Management charging upper & lower limit, configured System Default Output Power, Firmware Version
68
+
63
69
`api.update_plant_settings(plant_id, changed_settings, current_settings)` Update the settings for a plant to the values specified in the dictionary, if the `current_settings` are not provided it will look them up automatically using the `get_plant_settings` function - See 'Plant settings' below for more information
64
70
65
71
`api.update_mix_inverter_setting(serial_number, setting_type, parameters)` Applies the provided parameters (dictionary or array) for the specified setting on the specified mix inverter; see 'Inverter settings' below for more information
66
72
67
73
`api.update_ac_inverter_setting(serial_number, setting_type, parameters)` Applies the provided parameters (dictionary or array) for the specified setting on the specified AC-coupled inverter; see 'Inverter settings' below for more information
68
74
75
+
`api.update_noah_settings(serial_number, setting_type, parameters)` Applies the provided parameters (dictionary or array) for the specified setting on the specified noah device; see 'Noah settings' below for more information
76
+
69
77
### Variables
70
78
71
79
Some variables you may want to set.
@@ -186,6 +194,41 @@ Known working settings & parameters are as follows (all parameter values are str
186
194
187
195
The three functions `update_mix_inverter_setting`, `update_ac_inverter_setting`, and `update_inverter_setting` take either a dictionary or an array. If an array is passed it will automatically generate the `paramN` key based on array index since all params for settings seem to used the same numbering scheme.
188
196
197
+
## Noah Settings
198
+
The noah settings function allow you to change individual values on your noah system e.g. system default output power, battery management, operation mode and currency
199
+
From what has been reverse engineered from the api, each setting has a `setting_type` and a set of `parameters` that are relevant to it.
200
+
201
+
Known working settings & parameters are as follows (all parameter values are strings):
202
+
***Change "System Default Output Power"**
203
+
* function: `api.update_noah_settings`
204
+
* setting type: `default_power`
205
+
* params:
206
+
*`param1`: System default output power in watt
207
+
***Change "Battery Management"**
208
+
* function: `api.update_noah_settings`
209
+
* setting type: `charging_soc`
210
+
* params:
211
+
*`param1`: Charge upper limit in %
212
+
*`param2`: Charge lower limit in %
213
+
***Change "Operation Mode" Time Segment**
214
+
* function: `api.update_noah_settings`
215
+
* setting type: `time_segment` key from `api.noah_info(serial_number)`, for new `time_segment` count the ending number up
*`param3`: Unit value from `api.noah_info(serial_number)` - `unitList`
231
+
189
232
## Settings Discovery
190
233
191
234
The settings for the Plant and Inverter have been reverse engineered by using the ShinePhone Android App and the NetCapture SSL application together to inspect the API calls that are made by the application and the parameters that are provided with it.
Returns a dictionary containing the informations for the specified Noah Device
611
+
612
+
Keyword arguments:
613
+
serial_number -- The Serial number of the noah device you want the informations of (str)
614
+
615
+
Returns
616
+
'msg'
617
+
'result' -- True or False
618
+
'obj' -- An Object containing the noah device informations
619
+
'neoList' -- A List containing Objects
620
+
'unitList' -- A Object containing currency units e.g. "Euro": "euro", "DOLLAR": "dollar"
621
+
'noah' -- A Object containing the folowing
622
+
'time_segment' -- A List containing Objects with configured "Operation Mode"
623
+
NOTE: The keys are generated numerical, the values are generated with folowing syntax "[workingmode (0 = Load First, 1 = Battery First)]_[starttime]_[endtime]_[output power]"
0 commit comments