A company involved in "green" lighting, that being lights that use less power or turn off when you aren'y around, not literal green lights, is starting to put wireless network adapters into every single light bulb, and giving each bulb it's own unique IPv6 IP address. The lovely thing about IPv6 is that it has enough addresses for rather of a lot of light bulbs, or socks, or even computers. Billions, if I recall correctly. Many billions.
Why exactly isn't clear, really. I can think of all sorts of entertaining things you could do with them. Setting lights to come on and go off at a given time is only the beginning. They could be set to automatically turn on very dim if you turn them on in the middle of the night so you don't blind yourself, or to shut down if you haven't been in the room for a while, or much much more.
"For instance, consumers can dim or turn lights on and off using Home, Away, and Night Smart Controls from any combination of devices such as a PC, smartphone, and even a TV. The GreenWave Reality solution further simplifies consumers’ lives by extending the lighting Smart Controls to work with sensors without requiring any re-wiring of the home. As an example, a Smart Control can adjust indoor lighting according to outdoor lighting conditions. Other Smart Controls can automatically turn lights off when no one is in a room. Similarly, these advancements are extended to commercial and hospitality customers who can reduce ongoing lighting and related maintenance costs with this advanced lighting control system."