Files
ambiligth/config.toml
T
2026-03-16 17:31:21 +01:00

32 lines
1.2 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"
# A Long-Lived Access Token from Home Assistant.
# You can generate this in Home Assistant by going to your user profile.
ha_token = ""
# Screenshot capture rate (FPS). How often to capture and analyze the screen.
screenshot_fps = 15
# 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 = 3
# Color smoothing factor (0.0 to 1.0)
# Higher values = slower, smoother transitions (0.0 = instant, 1.0 = no movement)
smoothing = 0.6
# Specific lights to control. If empty, all supported color lights are used.
# 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 = 10.0