eufy-mega / model/capabilities / SirenActions
Type Alias: SirenActions
type SirenActions = object;Bound siren reads — the object returned by dev.siren(). Read-only on mega today: the siren write wire is UNVERIFIED (provenance "guessed" — no stable state param to key off, the siren is gated purely by DeviceType, and the mega switch frame isn't confirmed on-device). Per this codebase's type-level honesty rule, an unverified write is ABSENT from the fluent object rather than present-and-throwing — a method that exists on dev.siren() means its wire is verified. So there is no on()/off() here yet: they return only once the switch wire is captured on a real device (add an actions() factory + the gated methods then, mirroring lock.ts's verified setRainMode). A host wiring a siren control decides for itself how to surface "not settable yet", keying off the capability's presence rather than off a throwing method.
Properties
active?
readonly optional active?: boolean;Whether the siren is sounding (property siren). UNVERIFIED state param — may be absent.