modification: notify server about door alarm and fire alarm