Just to add a little context to maxpower212's answer: Yes, you can. These require a neutral wire in your switch box. The neutral wire supplies currently constantly, so the switch is always available to turn on and off, provided it is connected to your wi-fi network.
So far in a few months of usage no issues. Use it with Alexa routines too
12-03-2022 at 05:16 PM
I've been using several for the last few years with 3 Ubiquiti Wireless Access Points (WAPs) in the ceiling for a 2600 sq ft two-story home. I use Kasa for the on-off ones and FEIT brand (Costco) for the dimmers. The Kasa switches work excellent. The reason I prefer FEIT for dimmers is that they are 3-way and Kasa didn't have that option. The two in unison covered my needs and look nice.
There are switches that work with out a neutral but these do not. The neutral wire does carry a load to keep the switch active, Most electrical systems installed in the last 40 years have a neutral wire, Probably cheaper to find a switch that does not need it rather than rewireing. Might be easy or difficult to pull new wires.
12-08-2022 at 11:07 AM
Ill just add that if you are looking for a switch without the neutral (which would very likely be the way you will need to go) then get the lutron, 100% worth the investment. We had about 12 switches in our house for almost 10 yrs and not once did it go down or disconnect.