Virtual Meter

Requirements

The Core Services of the Edge Compute Platform need to have been installed.

The following services need to be installed on the edge in order to use the Virtual Meter for testing:
  • ase-virtual-meter

These services can be deployed by adding the "App - ECP Virtual Meter" application from the Marketplace to your own space (see Marketplace).

Figure 1.


Thing Description

See Things documentation on how to manage Things in Studio.

A Thing for this device driver uses a schema as described on this page.

Once it exists in Studio it can be synced to the Cluster (Asset) as shown on the Sync Things page.

{
    "@type": [
        "swx:Meter",
        "swx:Virtual"
    ],
    "id": "<leave blank when creating a thing>",
    "title": "Meter",
    "description": "Virtual Meter",
    "category": "<set to the cloud category to be used>",
    "properties": {
        "UD_DTYPE_KWH_ODM": {
            "title": "kWh ODM",
            "type": "number",
            "readOnly": true
        },
        "UD_DTYPE_KW_AVG": {
            "title": "kW",
            "type": "number",
            "readOnly": true,
            "minimum": -5,
            "maximum": 25
        },
        "dataUsagePollSecs": {
            "title": "Data Usage Poll Secs",
            "type": "integer",
            "readOnly": false
        }
    },
    "actions": {
        "correctKwhOdm": {
            "input": {
                "title": "Correct the kWh ODM value",
                "type": "object",
                "properties": {
                    "newValue": {
                        "title": "The new value",
                        "type": "number"
                    }
                }
            }
        }
    },
    "events": {
        "negativeKw": {
            "title": "Negative kW",
            "description": "kW Usage is Negative",
            "data": {
                "type": "number"
            }
        }
    }
}
Note: Without the "category" property the Thing can not synchronize from the Edge to the cloud.