1. Real-time Data
OpenAPI
  • Account Authentication
    • Login
      POST
  • Wattsonic OpenAPI
    • Query real time info
      POST
    • Unbind MQTT topic
      POST
    • Bind MQTT topic
      POST
    • Remote Operate WattMate
      POST
    • Remote Config WattMate
      POST
    • Query WattMate history
      GET
  • Real-time Data
    • Quick Start
    • Subscription of real-time data
    • `fields` Parameter for /ws/openapi/wattmate/tsd
  • Schemas
    • Schemas
      • OpenApiBindEvent
      • OpenApiAuthenticateEvent
      • ResultString
    • LocalTime
    • ResultVoid
    • ResultWattMateVo
    • WattMateVo
    • WmHeater
    • WmNetwork
    • WmPlan
    • WattMateUnbindTopicEvent
    • WattMateBindTopicEvent
    • WattMateOperateEvent
    • WattMateConfigEventV2
    • WattMatePlan
    • LoginEvent
    • ResultWattsonicToken
    • WattsonicToken
    • ResultListWattMateVo
  1. Real-time Data

Subscription of real-time data

Subscription of real-time data#

The real-time data of the device can be subscribed by using the MQTT protocol.
1.
The details of real-time information can be queried through Appendix - Real-time Data of WattMate .
2.
The data will be pushed at a frequency of 1 minute/package.

Demonstration account#

Protocol: mqtt://
Host: mqtt-cn-ow74hz0yi01.mqtt.aliyuncs.com
Port: 1883
Client Id: GID-Wattsonic@@@TEST
Username: Signature|LTAI5tJM5mj8YEpTQqmVY7v8|mqtt-cn-ow74hz0yi01
Password: hjcUbuC2JdDo6NMuPYA72wtBOLA=
Topic: d1qitql5f1tt

Test through MQTTX#

Connect#

image-20251024081832485.png

Subscription#

image-20251024082005254.png

Data Format#

{
  "productSn": "WMT12300022",
  "timeZone": "Asia/Shanghai",
  "softwareVersion": "46.22.24.24",
  "ctrlHardwareVersion": "12",
  "driverHardwareVersion": "12",
  "modelType": 0,
  "loadType": 0,
  "targetPower": 0,
  "maxGridPower": 660,
  "currentPower": 0,
  "injection": 0,
  "purchase": 0,
  "supportModes": [],
  "currentMode": 0,
  "timeMode": 0,
  "solarTargetTemp": 70,
  "allDayGridTargetTemp": 50,
  "l1FullLoadPower": 3039,
  "l2FullLoadPower": 3457,
  "l3FullLoadPower": 3396,
  "ipAddr": "0.0.0.0",
  "meterType": 1,
  "runningStatus": 5,
  "initStatus": 1,
  "emsCommStatus": 0,
  "meterCommStatus": 0,
  "inverterCommStatus": 0,
  "gridAccessStatus": null,
  "inverterAccessStatus": 0,
  "gridAccessFlag": 1,
  "pt1000Input": 1,
  "checkStatus": 0,
  "loadEnable": 0,
  "loadDisable": 0,
  "lan": {
    "ip": "192.168.1.121",
    "subnetMask": "255.255.255.0",
    "gateway": "192.168.1.1",
    "mac": "00-00-31-50-74-00"
  },
  "wifi": {
    "ip": "192.168.1.116",
    "subnetMask": "255.255.255.0",
    "gateway": "192.168.1.1",
    "mac": "88-13-BF-5E-99-80"
  },
  "plans": [],
  "heaters": [
    {
      "type": 1,
      "voltage": 233.9,
      "current": 0,
      "currentPower": 0,
      "targetTemp": 70,
      "currentTemp": 22
    },
    {
      "type": 2,
      "voltage": null,
      "current": 0,
      "currentPower": 0,
      "targetTemp": 70,
      "currentTemp": 22
    },
    {
      "type": 3,
      "voltage": null,
      "current": 0,
      "currentPower": 0,
      "targetTemp": 70,
      "currentTemp": 22
    }
  ],
  "lastUpdateTime": "1761265520218",
  "inverterSn": "WMT12300022"
}
Modified at 2025-10-28 06:50:08
Previous
Quick Start
Next
`fields` Parameter for /ws/openapi/wattmate/tsd
Built with