Skip to main content

PowerFailureAlarm

1.PowerFailureAlarm.getState

Get last reported state of Power Failure Alarm

BDDP

ParamValueDesc
methodPowerFailureAlarm.getStateGet 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

BUDP

ParamValueDesc
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

BUDP

<Same as 1.PowerFailureAlarm.getState>