I think originally the FDNY only allowed outdoor installations of batteries with a permit and would not allow indoor or basement installs of the batteries.
battery | NYC Rules
Installing lithium ion battery systems in buildings will require permits under new city rules - amNewYork