Add alarm type to totem (fix #566)