The earth wires have been omitted for clarity and would wish to be connected whatsoever switches and ceiling roses. The wires would even be covered because of the protecting outer sheath (cable). To generally be to the safe side, test the switch to make sure it not turns the light https://smartswitchesaustralia35418.uzblog.net/smart-light-switches-fundamentals-explained-48464012