Based on your drawing, you wire both the light and fan smart switches exactly the same. The only difference is from the white (neutral) wire nut in the switch box add two new white wires that connect into the bottom neutral connector in the switches (one for each)