Is it OK to have a light that can only be controlled via automation?
The NEC requirement is that it be possible to turn on a light in a room, via a switch that is in a reasonably expected location.  

If you need your phone to turn the light on, that's a no go. 

NEC is not particular about whether the lamp is a permanently installed light, or a plug-in floor lamp.  The floor lamp is allowed to have a switch on itself, which if turned off, defeats the room switch.

NEC is also not particular about the technology used, as long as it's listed.  It just needs to work. 

However, they may be other building codes which come to bear.  There is also your local jurisdiction's interpretation, their local rules, and the ultimate nuke: the ability of the jurisdiction to revoke a home's occupancy permit if the arragement proves to be problematic.