Fixes #1434

Sorry about the short description, this fixes #1434  where alarm sensors do not convert to the right decimal type.