Adding push button/PIR functionality for ports