this post was submitted on 31 Dec 2025
25 points (100.0% liked)

Asklemmy

51942 readers
833 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 6 years ago
MODERATORS
 

Hello,

I hope my question suits this community.

I've been working the past 72 hours reverse engineering an undocumented BLE mesh lamp. The process involved decompiling an apk, capturing bluetooth packets, checking how other people reverse engineered, checking and reading lots of related repositories, but finally (I'm so happy) it's working!

In simple terms: I can now fully control my ceiling lamp (color, brightness, on/off, white color temperature) with a Python script.

I was thinking about wrapping FastAPI around it to expose API endpoints and run it on my Raspberry Pi Zero and then use my laptop to turn on / off or change the color when something happens.

But which event or what should happen to turn the light on/off?

EDIT: If you own this lamp and you're actively searching for code repositories on Github regarding this lamp, you will find it. I just don't want to post a public link here.

top 9 comments
sorted by: hot top controversial new old
[โ€“] GreenCrunch@piefed.blahaj.zone 8 points 6 days ago (1 children)

Command it to flicker mysteriously when someone arrives / walks past (perhaps determined by a new Bluetooth device like a phone being seen with a signal strength above some threshold?). Or, set up an anemometer. On nights with dramatic weather, as the wind gusts you can trigger spooky flickering. Or via lightning strike data off the internet.

I'm not sure why my mind went to making your house haunted, but there you go...

[โ€“] q1p_@lemmy.zip 1 points 6 days ago

That's really neat. I'm currently thinking about it.

[โ€“] golden_zealot@lemmy.ml 1 points 6 days ago* (last edited 6 days ago)

Have it dim and brighten N times over the course of a few seconds to chime the hour on the hour, or have it blink a color.

[โ€“] folekaule@lemmy.world 22 points 1 week ago (1 children)

Tie it to your internet bandwidth usage, so that the bulb starts dimming when utilization goes up and maybe flicker a bit, as if you're drawing too much power off the grid when you're downloading stuff.

[โ€“] q1p_@lemmy.zip 3 points 1 week ago

๐Ÿ˜‚ I like it!

[โ€“] Iheartcheese@lemmy.world 7 points 1 week ago (3 children)

Any and all noise to turn it on or off

Noise recognition on farts

[โ€“] TheRealKuni@piefed.social 1 points 1 week ago

The Cheat, we gave you that switch so you could turn the lights on and off. Not so you could throw light switch raves!

[โ€“] q1p_@lemmy.zip 4 points 1 week ago* (last edited 1 week ago)

That's an amazing idea! You know why? I don't snore :D
I could monitor audio and when a treshold is reached, turn on the lamp with a grace period.