mysa-js-sdk
    Preparing search index...

    Interface representing a version 2 device status report from a Mysa device.

    This enhanced status message provides comprehensive information about the device's current operational state, including environmental readings and system parameters. Version 2 status reports include additional data compared to version 1 reports.

    interface DeviceV2Status {
        body: { ambTemp: number; dtyCycle: number; hum: number; stpt: number };
        id: number;
        msg: DEVICE_V2_STATUS;
        src: { ref: string; type: number };
        time: number;
        ver: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    body: { ambTemp: number; dtyCycle: number; hum: number; stpt: number }

    Status data payload containing current device measurements and settings

    Type declaration

    • ambTemp: number

      Ambient temperature reading from the device sensor

    • dtyCycle: number

      Current duty cycle percentage of the heating element

    • hum: number

      Relative humidity percentage reading from the device sensor

    • stpt: number

      Current temperature setpoint setting

    id: number

    Unique identifier for the device or message source

    The strongly-typed message type identifier

    src: { ref: string; type: number }

    Source information identifying the device sending the status

    Type declaration

    • ref: string

      Reference identifier for the device

    • type: number

      Type identifier for the source device

    time: number

    Unix timestamp when the message was created

    ver: string

    Version string of the message format