This was a "smart light switch" I made with an old Cisco Sip phone and a Raspberry Pi. The Pi runs a server called Asterisk which runs the phone. When I dial certain numbers, it controls my lights!
Here us a short instructable talking about this: https://www.instructables.com/Asteris...