The Smart-me driver connects to the smart-me cloud platform for energy monitoring and management. Smart-me provides smart energy meters and a cloud API for reading meter data, monitoring consumption, and managing devices remotely.
The driver connects to the smart-me REST API and imports the registered meters and their properties as gateway addresses. Its main use is to feed smart-me meters from the gateway: values read by another driver are routed to the smart-me addresses and pushed to the cloud (see section 3.4). Readings from the cloud are loaded at start and after each push only.
https://smart-me.com/api by default.https://smart-me.com/api).Use the context menu Smart-me > Import devices to discover and import all meters registered on your smart-me account. Each meter and its properties are created as addresses (see section 3.3).
| Label | JSON Key | Description |
|---|---|---|
| Name | name | A descriptive name. |
| Cluster ID | cluster | Cluster identifier. |
| Description | description | Optional description. |
| Username | username | smart-me account username. |
| Password | password | smart-me account password. |
| Simultaneous requests | simultaneousRequests | Number of parallel API requests used to push values. Default: 5. |
| Request timeout | requestTimeout | Timeout in milliseconds of the requests that push values. Default: 15000. |
| Server URL | url | smart-me API endpoint. Default: https://smart-me.com/api. |
{
"username": "energy@example.com",
"password": "<password>",
"simultaneousRequests": 5,
"requestTimeout": 15000,
"url": "https://smart-me.com/api"
}
Addresses use the prefix %smart-me: followed by the device ID and property path:
%smart-me:<deviceId> — the device. Its value is the complete smart-me device object (JSON); Polling is set here.%smart-me:<deviceId>/<Property> — one property of the device, for example Name, Serial, Voltage, Current, Temperature, SwitchOn, ValueDate.The following properties are not updated from the cloud:
CounterReading,CounterReadingT1...T3,CounterReadingImportandCounterReadingExport(and theirT1...T3),ActivePower,ActivePowerL1...L3,VoltageL1...L3,CurrentL1...L3,PowerFactorL1...L3. Their addresses only hold the value you write to them. ExceptActivePower, which is never sent, they are the inputs used to push readings to smart-me. To use the value measured by smart-me, take it from the device address, for examplevalue.CounterReadingorvalue.ActivePowerin a route value function or a logic reading%smart-me:<deviceId>.
| Label | JSON Key | Description |
|---|---|---|
| Name | name | The smart-me address. |
| Polling | polling | Period in milliseconds (minimum 1000) at which the pending writes of the device are sent to smart-me. Set on the device address %smart-me:<deviceId> only; imported devices get 10000. With 0, nothing is ever sent. Polling does not refresh the readings from the cloud, see section 3.4. |
| Description | description | Optional description. |
| Log | log | Logging mode. |
Via the context menu Smart-me, you can:
/^Building A/ or /heat/i. Leave it empty to import everything. Imported device addresses get Polling = 10000.10000), otherwise the values you write are never sent.Addresses are automatically created during import. Manual address insertion is not available.
%smart-me:<deviceId> on demand (from a logic or the API) or restart the gateway.%smart-me:<deviceId>/CounterReading through a route from a meter read by another driver, does not call smart-me immediately. The address takes the status pending and the new values are sent on the next polling tick of the device address. After the push the device is read back and its status returns to online. If the push fails, the status shows ! <error> and the push is retried on the next tick.Name, Serial, DeviceEnergyType, CounterReading, CounterReadingT1...T3, CounterReadingImport and CounterReadingExport (and their T1...T3), ActivePowerL1...L3, VoltageL1...L3, CurrentL1...L3, PowerFactorL1...L3, SwitchOn and SwitchPhaseL1On...L3On. A value written to any other property (for example Voltage or ActivePower) stays local and is never sent.| Property | Value |
|---|---|
| Readable | Yes: reading the device address %smart-me:<deviceId> loads the device from smart-me. Property addresses return their last value. |
| Writable | The properties listed in 3.4. Writing the device address is refused. |
| Created automatically | Yes, by Import devices and Create device. No manual insertion. |
| Routable | Yes |
| Loggable | Yes |
Log and Store value work the same way for every driver: see Log and Store value policies.
%smart-me:<deviceId> has a Polling, for example 10000.%smart-me:<deviceId>/CounterReading, with a routing function if the unit must be converted.CounterReading turns pending; at the next polling tick the reading is sent and the device returns to online.
| Symptom | Cause | What to do |
|---|---|---|
The gateway stays red; the log shows failed to load devices from <url>: ... — driver cannot start |
Wrong Username or Password (for example Bad response status code (401)), wrong Server URL, or no Internet access. |
Check the credentials and the network settings of the device. The gateway retries every 5 minutes. |
Import devices answers Nothing to import |
No device of the account matches the filter. | Check the regular expression, or leave the filter empty. |
| A property stays pending | The device address has no Polling, or the polling is 0. |
Set Polling on %smart-me:<deviceId> (section 3.2). |
The device address shows ! <error> |
The push to smart-me failed (timeout, refused value). | Read the log; the push is retried at the next tick. Raise Request timeout if the connection is slow. |
Write error invalid target address |
A value was written to the device address. | Write to a property address (section 3.4). |
| A written value never reaches smart-me | The property is not one of those that are sent (for example Voltage or ActivePower). |
Use a property of the list in 3.4. |
The log shows missing license |
No licence for the smart-me driver. | Contact support@weble.ch. |
To read the driver log, open the menu ☰ of the gateway and choose Logs (see Logs of a gateway).