Power Meter
Introduction
In this project you will be directed to create a power meter usecase. You need a power meter device that has been integrated with Antares. You are asked to group devices based on the application name and device name into the power meter usecase group. This process is called Integrate Device in the Antares Insight Hub service.
Prerequisites
Before starting the project, make sure you have followed the mandatory prerequisites. Here is the prerequisite page that needs to be prepared.
Power Meter Usecase PrerequisitesUsecase Power Meter Creation Steps
1. Integrate Device
1.1. Open Usecase Power Meter Menu
On the left navigation bar, select ‘Usecase’. Then on the Usecase menu select ‘Power Meter’.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252FPGEWmYqidZD8TQxAG3Qh%252Fimage.png%3Falt%3Dmedia%26token%3Db21f6dce-c6fc-411d-b4cd-32ddfb92ca06&width=768&dpr=4&quality=100&sign=46fd1783&sv=1)
1.2.Do Device Integration
On the Power Meter Usecase Page, Click ‘Integrate’ then a pop up form will appear.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252FGdpSw7VmHYbiy4HWOXD6%252Fimage.png%3Falt%3Dmedia%26token%3D4debecb8-54be-48b3-ad29-28678e99c7a2&width=768&dpr=4&quality=100&sign=6678d62&sv=1)
Next, fill in the Integrate Device form by filling in the ‘Application Name’, select ‘Device Name’ then fill in other data such as Decoder Type, Device Label, Serial Number, Address and Map Location.
Make sure the Decoder Type matches the type of Device you are using.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252F8IUMDAozVlbBwjNqREut%252Fimage.png%3Falt%3Dmedia%26token%3D99e9ea9e-956e-4507-911f-1ff70bb6b120&width=768&dpr=4&quality=100&sign=526708ab&sv=1)
The following is an explanation of the Integrate Device form parameters
No. | Data Type | Description |
---|---|---|
1. | Usecase | Select the usecase according to your needs. There are 3 (three) usecase options, namely Power Meter, Water Meter, and Water Level. |
2. | Application | After creating an application, you can use the application in a usecase |
3. | Device | After adding the device to the application, select the device for the usecase you will be using. |
4. | Device Label | Create labels for the devices you will use |
5. | Decoder Type | A decoder option is provided by Antares. The decoder serves to ensure that the payload used by the user matches the format used by Antares. |
6. | Serial Number | Enter the serial number for the device you will be using |
7. | Address | Provide the address that will be used for your usecase |
8. | Map Location | Select the coordinates on the map according to the address you have listed |
Make sure the data filled in the form is correct. After filling in the data on the Integrate Device form, then click ‘Integrate’.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252FcXIRxlFNLgBsGG82qc4z%252Fimage.png%3Falt%3Dmedia%26token%3Df36d031a-f652-4109-b86f-81e2306515f2&width=768&dpr=4&quality=100&sign=56317b8e&sv=1)
Once you have successfully integrated the device, the display will change as shown below.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252F9gm7LfLE8A4Zj1neJBed%252Fimage.png%3Falt%3Dmedia%26token%3D8179fa39-dabe-4122-9ead-6f8d420ea5ac&width=768&dpr=4&quality=100&sign=e536a153&sv=1)
1.3. View Detail Device
On the usecase page, you can view data from particular devices that have been successfully integrated. To view data from a particular device, click the device that you have integrated to see more data information.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252Fl1irJ0NGoak6dZaokUWP%252Fimage.png%3Falt%3Dmedia%26token%3Df1ce3a96-ce38-4085-8dc8-dc1af9a3b8bf&width=768&dpr=4&quality=100&sign=2c917ceb&sv=1)
The following is a detailed view of the device that has been opened.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252FgYN5iQTxGkgwaBBtGto9%252Fimage.png%3Falt%3Dmedia%26token%3D9f1f0852-9aa8-4fca-93c1-d19f7c7a3e0e&width=768&dpr=4&quality=100&sign=13e83e0f&sv=1)
2. Testing Payload
To ensure the Antares Insight service is working properly, make sure the payload sent by the user's device matches the format that has been determined in Antares Insight. You can then follow the steps below to use the Payload Decoder feature.
2.1. Choose Payload Decoder
On the left navigation bar, click the ‘Usecase’ menu then select ‘Power Meter’. After opening the Power Meter Usecase page, click ‘Payload Decoder’.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252FCGY1p67ymjz77nk3K24p%252Fimage.png%3Falt%3Dmedia%26token%3D9ef6d21e-a054-498a-9427-4f2ab80ff08e&width=768&dpr=4&quality=100&sign=a795d6a7&sv=1)
A popup will appear as shown below, select the decoder you want to use.
There are several decoders provided by Antares. You can customise the decoder selection according to your device type.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252FzAB2kpnZkcYy4Egw7kY8%252Fimage.png%3Falt%3Dmedia%26token%3Ddcd8e1b8-e177-47a6-8896-0b01cf5c0c2f&width=768&dpr=4&quality=100&sign=a0a126dc&sv=1)
2.2. Input Data Payload
You can see an example payload based on the device recommendation on the following page.
Payload Example Power MeterEnter the payload for your device in the ‘Input Decoder’ field. After entering the payload, click the ‘Submit’ button.
Payloads that have been customised to the format used in Antares will automatically appear in the ‘Decoder Results’ column.
3. Setup Device Threshold
In this section you can set the threshold for alert notification. You can enter a maximum of 3 data parameters that you want to be used as alert notifications. You can also limit it to a maximum of 3 threshold points. For more details you can see it on the following page.
Setup Device Threshold Power Meter4. Setting Estimation Cost
In this section you can set the price of electricity usage. On the Power Meter Usecase page, click ‘Set Estimation Cost’ then a popup form will appear that you need to fill in.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252FpoECwaZgl0y554yF2iba%252Fimage.png%3Falt%3Dmedia%26token%3D653cd6db-f074-4071-9e65-3b38a525222b&width=768&dpr=4&quality=100&sign=be15c24f&sv=1)
Next you need to fill in the ‘Currency’ and ‘Price per kWh’ data on the Estimation Cost form.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252FB5ddHP55UNH6gfCd7fGv%252Fimage.png%3Falt%3Dmedia%26token%3Dbec061a7-da51-4d0d-8faa-f8ca29700d49&width=768&dpr=4&quality=100&sign=f9c47c40&sv=1)
Next, click ‘Apply to Power Meter Device’ to apply the cost estimation settings to the power meter usecase. If the process is successful, the results will be as shown below.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252Fe3QWRafvx2Kubwa4SRCw%252Fimage.png%3Falt%3Dmedia%26token%3Deb599bf4-063b-456b-9503-456b5287771b&width=768&dpr=4&quality=100&sign=4768773e&sv=1)
Manage Usecase
1. Edit Device Usecase
In this section you can edit usecase data details such as ‘Application Name’, ‘Device Name’, Decoder Type, Device Label, Serial Number, Address and Map Location that you previously filled in when filling out the integrate device form. On the Power Meter Usecase page, select the device you want to edit as shown below.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252FRocfcwm5AK8VL9PJh4fF%252Fimage.png%3Falt%3Dmedia%26token%3Ddfcfc93f-bb96-4e4d-9cd9-b802394505b4&width=768&dpr=4&quality=100&sign=adfc1c5d&sv=1)
On the selected device page click ‘Edit Details’, then the Edit Integrate device popup form will appear.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252Ff2Jm9kDS3MVpDLffkhik%252Fimage.png%3Falt%3Dmedia%26token%3Da5e1a2a9-0aef-47a5-b99c-fc839b0aa990&width=768&dpr=4&quality=100&sign=9b38e3bc&sv=1)
You can rearrange the device usecase data as needed.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252FpFVo6P9gkey1fuBzrxCu%252Fimage.png%3Falt%3Dmedia%26token%3Db88a7624-4e93-41b0-841c-e08a83fe14f6&width=768&dpr=4&quality=100&sign=d0e65840&sv=1)
2. Edit Device Power Meter
In this section, you can edit the device in the application antares. You can change the subscription package, set LoRa, and view other data. On the Power Meter Usecase page, select the device you want to edit as shown below.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252FRiuEX5tg56pu7uL4mPOr%252Fimage.png%3Falt%3Dmedia%26token%3Dcb885083-bf92-4a39-9789-a4a4763d0ab3&width=768&dpr=4&quality=100&sign=1af96090&sv=1)
On the selected device page click ‘Config’, then you will be directed to the device page that you want to configure.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252FcnHdKcSQ6j74W153jLch%252Fimage.png%3Falt%3Dmedia%26token%3D203f0ece-d532-425f-a089-ad228f0acb12&width=768&dpr=4&quality=100&sign=cb341a25&sv=1)
You can configure devices such as ‘Set LoRa’, ‘Webhhok’, ‘Subscription’, and view other data details.
![](https://docs.antares.id/~gitbook/image?url=https%3A%2F%2F3873791589-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7cujmJ5QHdJaAjH815aZ%252Fuploads%252F1ApFhqtFtD6igt4tjaW8%252Fimage.png%3Falt%3Dmedia%26token%3D801d2412-1a50-4fbe-9f27-bd5cfb0feede&width=768&dpr=4&quality=100&sign=73ca02e5&sv=1)
Last updated