The idea is to put a power inlet and that where there is electridicad run the raspberry and feed channels of the module relay for turn on turn off equipment but When there is electricity no power outage the raspberry without relay module keep running with the powerbank until battery but as the probe and hold a 6 hours

Please fix the punctuation.
The idea is to put a power inlet and that where there is electridicad run the raspberry and feed channels of the module relay for turn on / turn off equipment, but, When there is electricity no (power outage) the raspberry (without relay module) keep running with the powerbank (until battery but as the probe and hold a 6 hours).