Sometimes after a long day, you just don’t have the energy to find the remote control for your adjustable bed. I mean, that thing could be anywhere. Our Serta adjustable bed has a bluetooth connection to control it, albeit with a kind of lousy phone app. Thanks to the work of Dan Isla, the bed can be controlled using a Raspberry Pi or other device that has Bluetooth and can run Python. I use a Raspberry Pi Zero W stuck underneath the bed and even powered from one of the bed USB ports. I added an MQTT interface so that commands could be sent to it from Home Assistant (or Node-RED, etc.)
Or maybe you want to set up a sexy-time script for your SO: Turn down the lights, turn on the accent lights, start a bed massage and play Careless Whisper?