Why would a light switch be wired with the neutral wire?
If all you have is one wire entering the switch, then the power for the switch might come from the light, and you just have a switched hot.



The white wire should be marked with tape to indicate it's not being used as a neutral.

Unfortunately, if this is the case, then you don't have a neutral available at this switch which is necessary for most of these automation switches. If there are other switches in this box it might be possible to re-route the power for this light, but I'd need to know more about where the power is coming from, what else is there, and how the light is connected in the ceiling box to help. Otherwise, the only way to this would be to run a new wire to the switch location -- either a new 14/3 from the light (so you have hot, neutral and switched hot), or a new power feed with 14/2 from the panel.