No, this is certainly not the first such system. I helped build one at a previous job where we could even value each battery individually in response to near real-time distribution grid conditions. For example, if a transformer is nearing capacity than a battery discharge downstream has extra value because it prevents the expensive transformer from being overloaded reducing it's life.
https://www.greentechmedia.com/articles/read/opus-one-tests-...