Alfamart API

Sensor

1.Voltage

Electric voltage in cable R,S and T got from sensor, and is expressed in volts.
Method:Publish
Topic

{Location ID}/{Device Name}/volt/{volt}

Parameter

Name Example
volt(R-S-T) 216.2-223.1-227.2
Example
123XYZ/AC/volt/216.2-223.1-227.2

2.Current

An electric current in cable R,S and T got from sensor, and is expressed in ampere.
Method:Publish
Topic

{Location ID}/{Device Name}/curr/{curr}

Parameter

Name Example
curr(R-S-T) 10.2-11.7-9.2
Example
123XYZ/AC/curr/10.2-11.7-9.2

3.Power Factor

The power factor in cable R,S and T got from sensor.
Method:Publish
Topic

{Location ID}/{Device Name}/pf/{pf}

Parameter

Name Example
pf(R-S-T) 0.6-0.8-0.7
Example
123XYZ/AC/pf/20.6-0.8-0.7

4.isOn

The situation whether the device is on or not. 1 indicates on and 0 is off.
Method:Subscribe
Topic

{Location ID}/{Device Name}/isOn/{isOn}

Parameter

Name Example
isOn 1
Example
123XYZ/AC/isOn/1