Supply and/or safety device (2) for a washing machine. The device (2) comprises: a valve body (3) defining a passage duct (32), in its turn comprising: an inlet portion (321), for connecting the device (2) to a liquid supply source; an outlet portion (323) for connecting the device (2) to a flow pipe (P) for supplying said liquid to a washing machine; an intermediate portion (322) for the connection between said inlet portion (321) and said outlet portion (323); at least one shut-off device (4), comprising at least one electrovalve, associated with said passage duct (32) of the valve body (3); at least one clamping element (6) for clamping the flow pipe (P) to the passage duct (32), for the purpose of preventing it from sliding off. Said at least one clamping element (6) is integrated into the device (2) itself.