Sleep Timer Seconds - Comparison fail

Issue description:

When Sleep Timer is disabled, the value of %sleep.timer.seconds% is “-1”. When waiting to end song, value is “0”.

So for running sleep timer, I was conditioning on t.secs > “0”
Problem is, somehow the condition is failing when t.secs == “-1”

Logs:

Upload description: Celorien_SleepSec

Additional information:

Thinking about it, is the only numerical field to use negatives? If it is, doesn’t **need** a fix for this usage.

For user reference, workaround for this issue is to instead condition in the following way:

{%|sleep.timer.seconds!=“-1” && sleep.timer.seconds!=“0”%}

Reproduction steps:

Relevant string:

secs > 0 ? {yes%|sleep.timer.seconds>“0”%}

Run a 1-min Sleep Timer with “Finish last track” enabled. (For ease, pause and seek to 5s before end of song.)

While running, prints “yes”. Good.
While waiting to pause, prints nothing. Good.
(5s wait if you seeked, as written above)
After timer pauses playback, again prints “yes”. Bad.

Media provider:

Local device

Screenshots:

Demo NPS attached for easy testing:

nps-sleep var test-20260210_011700-symfonium.json (32.7 KB)