Skip to content

Instantly share code, notes, and snippets.

View jer-davis's full-sized avatar

jer-davis

  • Joined Sep 4, 2025
View GitHub Profile
@jer-davis
jer-davis / mqtt_bed_controller.py
Created September 4, 2025 13:10
MQTT Bed Bluetooth Controller
#!/home/jd/Dev/BedControl/.venv/bin/python
import asyncio
from bleak import BleakClient
from aiomqtt import Client, MqttError
################################################################################
# CONFIGURATION & BLE SETUP
################################################################################
@jer-davis
jer-davis / ha-bed-card.yaml
Last active September 4, 2025 13:53
Home Assistant - Adjustable Bed Controls Card
type: vertical-stack
cards:
- type: horizontal-stack
cards:
- type: vertical-stack
cards:
- type: custom:button-card
entity: button.bed_head_down
name: Head Down
show_name: true