Add goodnight smart handler