A few minor changes:
OSC 000:00/000:30/029:30 Then ON
If Time 07:00 to 22:30 Then OFF
If pH > 08.25 Then OFF
The times in the second line needed to be reversed. If you want to dose only at night from 10:30pm to 7:00am the next morning, then it needs to be OFF during the day from 7:00am until 10:30pm.
Todd