all you need is this

1-Co2 tank 30lb
1-low pressure tank regulator
1-1/4" parker solenoid valve 12v
1-photo switch from lowes
2-rechargable 9v batteries - wired in series-
1-cheap solar battery charger

when the lights are on it charges the 9v when the lights go out it turns the solenoid on and releases Co2