4 Commits

Author SHA1 Message Date
naps62-yolo 1c6d0fae8d fix: don't wake screen on trackpad swipe
Swipe repeats DPAD every REPEAT_MS, so routing it through _wakeScreen
fired turnOnScreen ~5x/sec for the whole gesture. _sendCommand takes a
wake flag; the repeat path opts out. Pad taps, buttons, apps and volume
still wake. Tradeoff: a swipe on an already-blanked panel no longer
wakes it — tap first.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
v1.5.2
2026-07-17 07:56:09 +00:00
naps62-yolo 9360548ae0 fix: swallow -102 error when screen already on
turnOnScreen is not idempotent: webOS rejects with -102 "The current
state must be Screen Off" when the panel is already lit, so every press
on an awake TV raised an error toast. _wakeScreen still fires
unconditionally (_screenOn is stale after a server-side blank), but the
rejection is now the expected no-op path: notifyOnError=false suppresses
the toast and .catch() absorbs the promise. Downside: genuine failures
(TV unreachable) go quiet too; the command that follows surfaces those.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
v1.5.1
2026-07-17 06:36:19 +00:00
naps62-yolo 2037061e9c feat: wake screen on any button press
Idle automation blanks panel via webostv turnOffScreen (backlight off,
media_player stays "on"). Any remote/app/volume press now fires
turnOnScreen first so command isn't sent to a black screen. Power button
excluded (manages own state). Unconditional — card _screenOn is stale
after server-side blank.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
v1.5.0
2026-07-15 18:06:49 +00:00
naps62-yolo e53015e28d feat: initial extraction from naps62/home-assistant-claude-log
TV remote Lovelace card (v1.4.0) extracted to its own HACS-compatible repo.

- src/tv-remote-card.js — readable source
- dist/tv-remote-card.js — minified bundle for HACS / Lovelace resource
- hacs.json — HACS plugin metadata (filename: tv-remote-card.js)
- README — install + full config schema
- package.json — esbuild build script

Card features: swipe pad with canvas glow + press-hold direction repeat,
app + TV-source launchers (split apps[] / sources[] schemas), webOS-aware
Power highlight via getPowerState polling, 5-step volume slider, Shield
text-entry overlay, ha-form visual config editor.
v1.4.0
2026-05-24 18:47:48 +00:00