https://api.sciener.com/v3/electricMeter/list
This interface retrieves electricity meters added by the user in the TechHero app, or electricity meters initialized via the initialization lock interface through the app SDK.
For electricity meters added in the TechHero app, please use the app account and password used to add the meter to obtain an access token before calling this interface.
For electricity meters initialized via the cloud-based initialization lock interface, please use the access token of the same user used when initializing the meter.
POST, ContentType:application/x-www-form-urlencoded
xxxxxxxxxx41curl --location -g --request POST 'https://api.sciener.com/v3/electricMeter/list'\2--data-urlencode 'clientId=4773aa036f7f49c68d876bb4be85c80c' \3--data-urlencode 'accessToken=dfd5489d0cee31f0bdfaf59d0d42d71f' \4--data-urlencode 'date=1625025703000'| 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) |
| groupId | Int | N | Group ID |
| searchStr | String | N | Search criteria include searching by meter name and a list of meter IDs. |
| pageNo | Int | Y | Page numbers start from 1 |
| pageSize | Int | Y | Number of pages per page, maximum 1000 |
| Name | Type | Description |
|---|---|---|
| list | JSONObject | List |
| total | Int | Total number of items |
Objects in the list
| Name | Type | Description |
|---|---|---|
| electricMeterId | Int | Electricity meter ID |
| online | Int | Online status: 0 - No 1 - Yes |
| rssi | Int | Signal strength |
| onOff | Int | Power-on status: 0 - No 1 - Yes 2 - Unknown |
| name | String | Electricity meter name |
| number | String | Electricity meter number |
| payMode | Int | Operating modes: 0 - Energy metering mode; 1 - Prepaid mode |
| totalKwh | String | Total electricity consumption |
| remainderKwh | String | Remaining battery power |
| price | String | unit price |
xxxxxxxxxx151{2 "list": [3 {4 "number": "EM2_005012",5 "payMode": 1,6 "price": "10.00",7 "name": "EM2_005012",8 "online": 0,9 "electricMeterId": 270,10 "remainderKwh": "0.00",11 "onOff": 1,12 "totalKwh": "0.00"13 }14 ]15}