Skip to content

feat: add a 5 minute airing option for a quick Stoßlüften - #12

Merged
subpathdev merged 1 commit into
mainfrom
feat/airing-5-minutes
Nov 1, 2026
Merged

subpathdev merged 1 commit into
mainfrom
feat/airing-5-minutes

Conversation

@subpathdev

Copy link
Copy Markdown
Owner

Why

A quick Stoßlüften takes about 5 minutes, and the shortest option was 15. Jan's idea.

What

  • Contract: minutes also accepts 5.
  • Page: buttons now read "Air 5", "Air 15", "Air 30" and "Air 60", so four fit in a row. Screen readers get the full "Air Office for 5 minutes".
  • README updated.

No controller change: the duration is only a parameter.

How to validate

go test -race and golangci-lint pass, and a new test covers 5 minutes. In a browser at 375 px the four buttons fit without overflow, and "Air 5" posts {"minutes":5} (stubbed). Not run on a real TRV; the logic is the same as for 15 minutes.

Risk

Low. A 5 minute airing that's left open means heating comes back with the window still open, which is more likely than with 15 minutes. "Air 5" can be tapped again to extend it.

Rollback

Revert the PR.

🤖 Generated with Claude Code

The buttons now read "Air 5/15/30/60", to fit four in a row at phone width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@subpathdev
subpathdev merged commit d2279fd into main Nov 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant