Compare commits
4 Commits
0.11.5
...
0.11.8-con
| Author | SHA1 | Date | |
|---|---|---|---|
|
3c1253da08
|
|||
|
0efb6fab02
|
|||
|
a48d189f85
|
|||
|
40c3faa128
|
@@ -2,6 +2,7 @@ FROM python:3.12-slim
|
||||
|
||||
# Environment defaults (can be overridden at runtime)
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
LOG_LEVEL="INFO" \
|
||||
HOMEKIT_NAME="Home Automation Bridge" \
|
||||
HOMEKIT_PIN="031-45-154" \
|
||||
HOMEKIT_PORT="51826" \
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
services:
|
||||
homekit-bridge:
|
||||
image: gitea.hottis.de/wn/home-automation/homekit:0.5.0
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: apps/homekit/Dockerfile
|
||||
container_name: homekit-bridge
|
||||
|
||||
# Required for mDNS/Bonjour to work properly
|
||||
network_mode: host
|
||||
|
||||
environment:
|
||||
- LOG_LEVEL=INFO
|
||||
- HOMEKIT_NAME=Hottis Home Automation Bridge
|
||||
- HOMEKIT_PIN=031-45-154
|
||||
- HOMEKIT_PORT=51826
|
||||
|
||||
@@ -31,8 +31,9 @@ from .api_client import ApiClient
|
||||
from .device_registry import DeviceRegistry
|
||||
|
||||
# Configure logging
|
||||
LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO").upper()
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
level=getattr(logging, LOG_LEVEL, logging.INFO),
|
||||
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
||||
)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -16,21 +16,25 @@ groups:
|
||||
capabilities:
|
||||
power: true
|
||||
|
||||
- id: "schlafzimmer_lichter"
|
||||
name: "Schlafzimmer – alle Lampen"
|
||||
selector:
|
||||
type: "light"
|
||||
room: "Schlafzimmer"
|
||||
capabilities:
|
||||
power: true
|
||||
brightness: true
|
||||
|
||||
- id: "schlafzimmer_schlummer_licht"
|
||||
name: "Schlafzimmer – Schlummerlicht"
|
||||
device_ids:
|
||||
- bettlicht_patty
|
||||
- bettlicht_wolfgang
|
||||
- medusalampe_schlafzimmer
|
||||
- licht_kommode_schlafzimmer
|
||||
capabilities:
|
||||
power: true
|
||||
brightness: true
|
||||
|
||||
- id: "arbeitslicht_patty"
|
||||
name: "Patty – Arbeitslicht"
|
||||
device_ids:
|
||||
- schranklicht_hinten_patty
|
||||
- schranklicht_vorne_patty
|
||||
- leselampe_patty
|
||||
- kugellampe_patty
|
||||
- licht_schreibtisch_patty
|
||||
capabilities:
|
||||
power: true
|
||||
brightness: true
|
||||
|
||||
Reference in New Issue
Block a user