Files
ambiligth/config.toml
2026-03-16 23:40:30 +01:00

32 lines
1.4 KiB
TOML

# Configuration for Ambilight Home Assistant Integration
# The base URL of your Home Assistant instance.
# Example: "http://192.168.1.100:8123" or "https://ha.yourdomain.com"
#ha_url = "https://homeassistant.pvv.ntnu.no:8123"
ha_url = "http://192.168.1.238:8123"
# A Long-Lived Access Token from Home Assistant.
# You can generate this in Home Assistant by going to your user profile.
ha_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiMWU1ZmU2MWNlMjM0YzNkYjg2OWY1NTMzZGY5NGFjOCIsImlhdCI6MTc3MzY4ODMzOSwiZXhwIjoyMDg5MDQ4MzM5fQ.5dRwDrWakUeQk_3tCwurnqnsv3GLuukUEE3IyWnbK1g"
# Screenshot capture rate (FPS). How often to capture and analyze the screen.
screenshot_fps = 10
# Maximum light update rate (FPS). Lights only update when color actually changes.
# This acts as a rate limiter to prevent spamming Home Assistant.
target_fps = 2
# Color smoothing factor (0.0 to 1.0)
# Higher values = slower, smoother transitions (0.0 = instant, 1.0 = no movement)
smoothing = 0.0
# Specific lights to control. If empty, all supported color lights are used.https://docs.rs/oklab/1.1.2/oklab/
# Example: ["light.living_room", "light.bedroom"]
#lights = ["light.fargelys"]
# Restore lights to their original state/color when the program exits.
restore_on_exit = true
# Minimum percentage of difference required between frames to trigger an update.
# Helps prevent flickering on static screens due to non-deterministic color algorithm.
min_diff_percent = 0.1