@mega-yfue/eufy-sdk / SolixSite
Class: SolixSite
A discovered Solix site with its member devices resolved to SolixDevice models. Build one directly from a record + members, or discover an account's sites with discoverSolixSites.
Constructors
Constructor
new SolixSite(record, devices): SolixSite;Parameters
record
devices
Returns
SolixSite
Properties
devices
readonly devices: SolixDevice[];id
readonly id: string;name
readonly name: string;Friendly site name (e.g. "My Home"), or the site id when the record carries none.
powerSiteType?
readonly powerSiteType?: number;Anker's site-type discriminator (e.g. 20 for a Solarbank-anchored home system), when present.
record
readonly record: SolixSiteRecord;Methods
device()
device(serial): SolixDevice | undefined;The member device with this serial, if it belongs to the site.
Parameters
serial
string
Returns
SolixDevice | undefined
powerStations()
powerStations(): SolixDevice[];The portable power-station members of the system.
Returns
smartMeters()
smartMeters(): SolixDevice[];The smart-meter (grid-CT) members of the system.
Returns
solarbanks()
solarbanks(): SolixDevice[];The Solarbank / plug-in home-battery members of the system.
Returns
withCapability()
withCapability(capability): SolixDevice[];Member devices that carry a given capability (e.g. every battery in the system).
Parameters
capability
Returns
withFamily()
withFamily(family): SolixDevice[];Member devices of a given product SolixProductFamily — the grouping accessor.