My flatmate used to watch TV in the living room quite loud when I was trying to sleep in my room.
I set a Raspberry Pi with an IR led running an Apache server close to the TV. From my phone I would visit the Raspberry IP and send signals to the IR led to lower the volume.