mysolenso.services.stations.stationinfodev - Station Info Device
Service for retrieving the device tree of a PV station.
This module provides MySolensoStationInfoDevice, which wraps the
station_select_device_of_tree Solenso endpoint. One call returns the
primary DTU and all attached microinverters in a hierarchical structure,
along with serial numbers, firmware versions, and connectivity status.
- class mysolenso.services.stations.stationinfodev.MySolensoStationInfoDevice(parent)[source]
Bases:
objectRetrieve the full device tree for the active station.
The device tree contains the primary DTU record and all child microinverters, each with serial number, firmware versions, model number, and warning/connection status.
Call
station_info_device_refresh()to populate the data, then access the properties below.- Parameters:
parent (MySolenso) – The parent client object that holds the authentication context and the active station reference.
- Raises:
MySolensoException – If no active station is set on the parent at construction time.
- set_station(id, refresh=True)[source]
Switch the active station for device tree queries.
- Parameters:
- Raises:
MySolensoException – If the requested station ID is not found.
- Return type:
- station_info_device_refresh()[source]
Force a fresh fetch of the device tree from the API.
- Return type:
- property all_data: dict
_summary_
- Returns:
- {
“sn”: “D0900999H”, “warn_data”: {
”_rw”: “”, “connect”: true, “warn”: false
}, “id”: 1238090, “vc”: “289”, “dtu_sn”: “D0900999H”, “type”: 1, “version”: 3, “replace_num”: 0, “model_no”: “HD-Insight”, “soft_ver”: “V00.00.06”, “hard_ver”: “H12.02.02”, “extend_data”: {}, “children”: [
- {
“sn”: “A900016B5”, “warn_data”: {
”warn”: false, “connect”: true
}, “id”: 9988950, “vc”: “2L2”, “dtu_sn”: “D0900999H”, “type”: 3, “version”: 3, “replace_num”: 0, “model_no”: “Sol-H1000H”, “soft_ver”: “V01.00.04”, “hard_ver”: “H00.04.00”, “extend_data”: {
”dmt”: 0, “grid_name”: “”, “route”: 0, “port_array”: [
1, 2
], “grid_id”: 0, “grid_version”: “”
}, “children”: []
}, {
”sn”: “A900016B4”, “warn_data”: {
”warn”: false, “connect”: true
}, “id”: 9988940, “vc”: “22L”, “dtu_sn”: “D0900999H”, “type”: 3, “version”: 3, “replace_num”: 0, “model_no”: “Sol-H1000H”, “soft_ver”: “V01.00.04”, “hard_ver”: “H00.04.00”, “extend_data”: {
”dmt”: 0, “grid_name”: “”, “route”: 0, “port_array”: [
1, 2
], “grid_id”: 0, “grid_version”: “”
}, “children”: []
}, {
”sn”: “A900016B3”, “warn_data”: {
”warn”: false, “connect”: true
}, “id”: 9988910, “vc”: “212”, “dtu_sn”: “D0900999H”, “type”: 3, “version”: 3, “replace_num”: 0, “model_no”: “Sol-H1000H”, “soft_ver”: “V01.00.04”, “hard_ver”: “H00.04.00”, “extend_data”: {
”dmt”: 0, “grid_name”: “”, “route”: 0, “port_array”: [
1, 2
], “grid_id”: 0, “grid_version”: “”
}, “children”: []
}, {
”sn”: “A900016B2”, “warn_data”: {
”warn”: false, “connect”: true
}, “id”: 9988930, “vc”: “23D”, “dtu_sn”: “D0900999H”, “type”: 3, “version”: 3, “replace_num”: 0, “model_no”: “Sol-H1000H”, “soft_ver”: “V01.00.08”, “hard_ver”: “H00.04.00”, “extend_data”: {
”dmt”: 0, “grid_name”: “”, “route”: 0, “port_array”: [
1, 2
], “grid_id”: 0, “grid_version”: “”
}, “children”: []
}, {
”sn”: “A900016B1”, “warn_data”: {
”warn”: false, “connect”: true
}, “id”: 9988920, “vc”: “2BD”, “dtu_sn”: “D0900999H”, “type”: 3, “version”: 3, “replace_num”: 0, “model_no”: “Sol-H1000H”, “soft_ver”: “V01.00.04”, “hard_ver”: “H00.04.00”, “extend_data”: {
”dmt”: 0, “grid_name”: “”, “route”: 0, “port_array”: [
1, 2
], “grid_id”: 0, “grid_version”: “”
}, “children”: []
}
]
}