this post was submitted on 18 Feb 2024
79 points (97.6% liked)
homeassistant
14868 readers
3 users here now
Home Assistant is open source home automation that puts local control and privacy first.
Powered by a worldwide community of tinkerers and DIY enthusiasts.
Home Assistant can be self-installed on ProxMox, Raspberry Pi, or even purchased pre-installed: Home Assistant: Installation
Discussion of Home-Assistant adjacent topics is absolutely fine, within reason.
If you're not sure, DM @GreatAlbatross@feddit.uk
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I must be too old school because my first thought when i read this was “with an old solenoid lying around and a few lines of code, an AtTiny could strike a key on the bluetooth keyboard, waking the laptop!
You could ditch the solenoid and use a ATMega32u4 that can act as a HID device to send a keypress signal.
I'm mildly surprised OP's laptop keeps the bluetooth radio powered up while asleep, but I would be a lot more surprised to find one that doesn't work with USB HID.
I was a little surprised as well, but I think it's because the keyboard / mouse I use (and the ESP32) all use Bluetooth LE specifically.
I looked at USB solutions first actually, but then decided to try ESP Home solution since I was already familiar with the system.
I definitely thought about trying something physical like that too, but mostly as a fallback plan!
My thoughts were a switchbot, for a non diy version. You put the bot on the laptop power button or keyboard.
I was thinking of using an electro magnet to trigger the lid switch. Maybe we are just fans rube goldberg setups :D