This depends on the manufacturer. Some devices are hardwired, while others use battery power. Some doorbells have two power options simultaneously. In this case, you can decide on your preferred mode of connection.