Well think you are thinking about beoliving where there is a special beoliving box connected to the TV that handle timing in turning lights on, off, dim, screens, doors (like in struer) and so on...
Beo 5 also can do a simple version of it
OR
look at lintronic's homepage thy have made a complete system with X10