[#220] - Added before hook to shelly