Composition of the ideal smart switch