Fully integrated (solar) battery