I would try to find an online forum/support group for people suffering from the same illness. Maybe they have a tested solution ....
Maybe something as simple as a digital kitchen timer. Set it to 2h > start > Alarm goes of > hit stop > hit start ...... (disadvantage possible too many buttons to do that repeatedly while being half asleep). Just throwing out ideas.