mysolenso.services.stations.countdevice - Station Count Device
Service for retrieving device count summary data for a station.
This module provides MySolensoStationCountDevice, which wraps the
station_count_device Solenso endpoint. One call returns the number of
connected devices by type for the active station.
- class mysolenso.services.stations.countdevice.MySolensoStationCountDevice(parent)[source]
Bases:
objectRetrieve device count summary for the active station.
Exposes individual count properties for each device category. Call
station_count_device_refresh()to fetch or update the data.- 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 count queries.
- Parameters:
- Raises:
MySolensoException – If the requested station ID is not found.
- Return type:
- station_count_device_refresh()[source]
Force a fresh fetch of device count data from the API.
- Return type:
- property all_data: dict
Raw API response for the station count device endpoint.
- Returns:
Device count summary. Example:
{ "sn": null, "station_num": 1, "dtu_num": 1, "repeater_num": 0, "mi_num": 5, "inv_num": 0, "au_num": 0, "rsd_num": 0, "op_num": 0, "tran_num": 0, "meter_num": 0, "bms_num": 0, "em_num": 0 }
- Return type: