Skip to content

@mega-yfue/eufy-sdk / solarbankSceneReadings

Function: solarbankSceneReadings() ​

ts
function solarbankSceneReadings(scene): object[];

Reduce a site "scene" snapshot to per-device telemetry readings — the BACKSTOP counterpart to the realtime ff09 decode. It emits the fields the scene reliably carries that the fast MQTT frame does NOT: batteryTemperature (the realtime frame's BMS blob is empty, so solixReadings withholds it), batterySoc (a cross-check/seed for the 0xa3 SOC), and expansionPacks — the count of ATTACHED add-on battery packs (0 on a standalone main unit). Each reading is shaped exactly like a SolixMqttreading event — { deviceSn, values } — so a caller can feed it straight into SolixDevice.applyReading and broadcast it on the same path as a live frame. Entries with no usable value are dropped.

Parameters ​

scene ​

SolixSiteScene

Returns ​

object[]

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.