Skip to content

Instantly share code, notes, and snippets.

View LemonHaze420's full-sized avatar

LemonHaze420

View GitHub Profile
@LemonHaze420
LemonHaze420 / bledomctl.sh
Last active September 8, 2022 08:49
Simple BLEDOM LED controller bash script with sample HomeAssistant config. Supports RGB and brightness manipulation.
#!/bin/bash
# Configuration
device="XX:XX:XX:XX:XX:XX"
device_san="XX_XX_XX_XX_XX_XX"
characteristic="/org/bluez/hci0/dev_$device_san/service0006/char0007"
mode=on
brightness=100
red=255