GO:0052597: diamine oxidase activity
Catalysis of the reaction: a diamine + H2O + O2 = a monoamine + NH3 + hydrogen peroxide.