eufy-mega / model/capabilities / decodeState
Function: decodeState()
ts
function decodeState(signal, capabilities?): DecodedState[];Recover device state from an inbound signal — the state-side dual of CapabilityModule.decodeEvent. Gated by the reporting device's capabilities exactly as events are, so one product line's decoder never runs against another line's traffic. One entry per module that recognised the signal; a module that decoded no fields is dropped.
Parameters
signal
capabilities?
ReadonlySet<Capability>