I worked in a building that had that kind of "smart" controls. It was anything but.
In practice, it started opening and closing shutters for no reason, when clouds obscured the sun, and then went away. Or even when some sort of reflection hit some sensor, somewhere in the building.
I'm sure it's doable, but unlike factories, where automation is related to income and thus profits, most commercial buildings are built by the cheapest of cheaters, and so they will skimp on sensor, on intelligence, on integration, or whatever, just to follow the minimally-compliant features. So you get all kinds of erratic behavior, lack of redundancy, stupid intelligence that ends up overridden by humans.
In practice, it started opening and closing shutters for no reason, when clouds obscured the sun, and then went away. Or even when some sort of reflection hit some sensor, somewhere in the building.
I'm sure it's doable, but unlike factories, where automation is related to income and thus profits, most commercial buildings are built by the cheapest of cheaters, and so they will skimp on sensor, on intelligence, on integration, or whatever, just to follow the minimally-compliant features. So you get all kinds of erratic behavior, lack of redundancy, stupid intelligence that ends up overridden by humans.