There's been generation after generation of lighting control. There was a 1950s/1960s thing of putting everything on relays with 24V control signals and panels full of rocker switches. There was x10 in the 1980s. There were "smart" light bulbs in the 2010s. It's just not all that useful.
I mentioned this a few years ago, after I came back from an "Internet of Things" meeting in Dogpatch, in San Francisco. The Samsung guy pitched a refrigerator with a tablet mounted in the door. It didn't really have any more functionality than a refrigerator plus a tablet, but cost more. I asked him why, and he told me because there's a fraction of the population that likes to show off their kitchens, and it would be marketed to them. There were a few other IoT things pitched, all forgettable.
What struck me at the time was that we were in a room that really needed intelligent control. It was an office/meeting space, about 5000 square feet, in an old industrial building. Openable windows looked out on the bay, and there was a manual system with a shaft with a chain fall and a rack and pinion system to open the windows. A similar mechanical setup controlled windows in an openable skylight. The room also had a modern HVAC system, ceiling fans, and lighting.
None of this was coordinated. What should have been happening was that, as people came in and the CO2 level went up, the bay side windows and skylight windows should have opened, to get the CO2 level down and cool the room a bit. As the sun set and the outside temperature dropped, the bay side windows should have mostly closed, the ceiling fans should have started in the upward direction, and the skylight windows should have stayed open, to prevent the room from cooling too much while keeping the CO2 level down. Lighting should have increased as darkness fell. As it got later, and people started to leave, the bay side windows could close completely and the fan RPMs could drop. When everybody left, as noticed by motion detectors, the system should have dimmed the lights and done a quick fresh air purge - skylights open, bay windows open, fans to max in the downward direction. Temperature would drop, but unless it went below 60F, no need to turn on heat on an empty room. Then everything seals up tight for the night. Very little energy consumption. Tomorrow is another day, and the room should continue to react to the people load.
But no. You rarely see that kind of control. Except in hotel function rooms. Hotels put in systems like that because they have big rooms with widely varying people load, and customers who complain if a conference room is stuffy or hot or cold. Hotels have significant HVAC costs, and it's worth it to have the HVAC systems adapt to room usage. Honeywell and Johnson Controls sell systems for this for commercial buildings. They have both inside and outside sensors, and can operate fans, dampers, and HVAC separately.