Lights Off Timer: Jellyfin sleep timer that turns off Home Assistant lights

Jellyfin 12.2 plugin that adds a sleep-timer button next to the volume
control in the web player (end of this episode/movie, or N minutes). When
playback stops with the timer on, it calls a Home Assistant webhook that
turns the lights off after a cooldown; starting playback cancels it.

The repository doubles as a Jellyfin plugin repository: manifest.json at
the root points at the release zips in dist/. build.sh builds in the
.NET 10 SDK container and adds new versions to the manifest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nikrozmanandClaude Opus 5.5 committed 2026-10-30 00:22:48 +01:00
commit 8d456442e6
15 files changed
+934

No files matched your search

@@ -0,0 +1,18 @@
using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.LightsOffTimer.Configuration;
public class PluginConfiguration : BasePluginConfiguration
{
/// <summary>Home Assistant webhook, e.g. https://ha.example/api/webhook/secret-id.</summary>
public string WebhookUrl { get; set; } = string.Empty;
/// <summary>Minutes Home Assistant waits after playback stops before turning the lights off.</summary>
public int CooldownMinutes { get; set; } = 15;
/// <summary>Also start the lights-off countdown on every playback stop, not only when the sleep timer is on.</summary>
public bool CountdownOnEveryStop { get; set; }
/// <summary>Comma-separated minute presets shown in the player menu.</summary>
public string MinutePresets { get; set; } = "15,30,45,60,90";
}