add definition to alarm fields

remove obsolete device api