Administrator obtains water meter details
https://cnapi.ttlock.com/v3/waterMeter/detail
1 Request example
POST, ContentType:application/x-www-form-urlencoded
json
curl --location -g --request POST 'https://cnapi.ttlock.com/v3/waterMeter/detail'\
--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \
--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \
--data-urlencode 'waterMeterId=3001' \
--data-urlencode 'date=1625025703000'2 Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| clientId | String | Y | Assigned client_id from created application |
| accessToken | String | Y | Access token, obtain by calling get access token API |
| date | Long | Y | Current time (timestamp, in milliseconds) |
| waterMeterId | Int | Y | Water Meter ID |
3 Response and example
| Name | Type | Description |
|---|---|---|
| waterMeterId | Int | Water Meter ID |
| name | String | Water meter name |
| number | String | Water meter number |
| mac | String | Water meter MAC |
| featureValue | String | Feature value |
| modelNum | String | Product Model |
| hardwareRevision | String | Hardware version number |
| firmwareRevision | String | Firmware version number |
| payMode | Int | Operating modes: 0 - Energy metering mode; 1 - Prepaid mode |
| syncM3Date | String | Meter reading time |
| online | Int | Online status: 0 - No 1 - Yes |
| rssi | Int | Signal strength |
| onOff | Int | Water flow status |
| totalM3 | String | Total water consumption |
| remainderM3 | String | Remaining water volume |
| price | String | Unit price |
| maxPower | String | Maximum power |
| groupName | String | Group Name |
| groupId | Int | Group ID |
| electricQuantity | Int | Battery |
json
{
"syncM3Date": 1750748374000,
"modelNum": "SN774-V01",
"payMode": 0,
"groupId": 92,
"waterMeterId": 296,
"remainderM3": "10.00",
"mac": "78:58:44:00:01:41",
"totalM3": "9.89",
"featureValue": "00000000",
"number": "EM2_410100",
"groupName": "1",
"hardwareRevision": "1.3",
"name": "water meter",
"online": 0,
"maxPower": "255",
"firmwareRevision": "1.1.27.250326",
"onOff": 1
}3.1 Feature value description
Similar to lock feature value, meter feature value are also hexadecimal strings that indicate what functions the meter supports.
Description of the function of each byte bit (counting from 0) after high-low bit conversion:
| Bit | Explanation |
|---|---|
| 0 | Supports 4G networks, but does not support adding tasks. |
| 1 | Supports 4G networks, and supports adding tasks. |
