Magnet Sensor
status change
Every 60 minutes, the door/windows magnet sensors will report their status.
attribute | description |
---|---|
status | open/close |
battery | 0-100 |
{"cmd":"report","model":"magnet","sid":"89234324","short_id":4343,"token":"3","data":"{\"status\":\"open\"}" }
heartbeat
{"cmd":"report","model":"motion","sid":"89234324","short_id":4345,"token":"4","data":"{\"battery\":\"62\"}" }
Notes: "89234324" is device ID, "status" is the state of door or window (open or close), "token" can be ignore.