@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
Returns
object[]