Yes, BoPi can control an electrolysis generator (or not if its already linked to the pool pump) and with an ORP sensor, BoPi can report the current levels in the water.
If controlled by BoPi and with an ORP sensor, BoPi can turn it on or off based on the sensor value when the pump is running.