@mega-yfue/eufy-sdk / discoverSolixSites
Function: discoverSolixSites()
ts
function discoverSolixSites(client, opts?): Promise<SolixSite[]>;Discover an account's Solix sites as SolixSite groupings of capability-driven SolixDevice members — the site analogue of discoverSolixDevices. Composes three wire reads (the sites, the account's device records, the product catalog) entirely model-side, so the transport client is passed structurally and the layers stay decorrelated.
A site member is resolved to its FULL device record from getDevices() when the account lists one (so the member carries firmware/connectivity + telemetry identity); a member the flat device list omits is built from the site entry alone (serial + product code + name), so the system is never missing a device it declares.
Parameters
client
opts?
SolixSiteOptions = {}
Returns
Promise<SolixSite[]>