Is it possible to switch wearhouse power input/output...
Only by hand.
I was thinking to place outside of warehouse a accumulator and read its value ... it is high i turn power to input ... to recharge and in night when value drops to give the charge to my base.
So you want to place accumulators inside buildings? Unfortunately they wouldn't even work inside buildings, not even if you manually switch. You'll have to place your accumulators outside, next to your solar panels.