PowerFailureAlarm
1.PowerFailureAlarm.getState
Get last reported state of Power Failure Alarm
Param | Value | Desc |
---|---|---|
method | PowerFailureAlarm.getState | Get device's state |
targetDevice | <String,Necessary> | DeviceId of the Sensor you use; |
token | <String,Necessary> | Net token of the Sensor you use; You can get it here |
Param | Value | Desc |
---|---|---|
data.state.state | <String,Optional> | State of device,["normal","alert","off"] |
data.state.alertType | <String,Optional> | Is in reminder |
data.state.sound | <Integer,Necessary> | Sound level of device |
data.state.battery | <Integer,Necessary> | Level of device's battery, 0 to 4 means empty to full |
data.state.powerSupply | <Boolean,Necessary> | Is power supply connected |
data.state.beep | <Boolean,Necessary> | Is beep enabled |
data.state.mute | <Boolean,Necessary> | Is in mute mode |
data.state.version | <String,Necessary> | Firmware Version of device |
data.reportAt | <Date,Necessary> | Time of reported |
data.deviceId | <String,Necessary> | Id of device |
2.Callbacks
You can receive it with Http Callback API or MQTT report topic
<Same as 1.PowerFailureAlarm.getState>