Clearstackification - #1
Open
techninja wants to merge 19 commits into
Open
Conversation
- firmware: scrollText lockup fix (remove handleClient from scroll loop) - firmware: slow scroll speed 40ms -> 80ms per pixel - firmware: add index page at port 80 with config form (SSID, pass, config URL) - firmware: charset=utf-8 on all HTML responses (emoji SSID support) - server: unify env files - merge .env.local into .env, delete .env.local - server: standardize on PORT (drop SERVER_PORT fallback) - server: update dev script to single --env-file=.env - .env.example: complete template with all vars documented - deps: upgrade clearstack 0.3.27 -> 0.4.21
firmware: - Add ESPmDNS, advertise _thinclock._tcp on port 80 - TXT records: version, ip - Device reachable at thinclock.local homeassistant/custom_components/thinclock/: - __init__.py: setup entry, forward to sensor/select/number/button platforms - coordinator.py: DataUpdateCoordinator polling /api/device/info, /sensors, /active, /screens - config_flow.py: manual URL entry + zeroconf async_step for auto-discovery - sensor.py: temperature, humidity, light entities - select.py: current screen select - number.py: brightness slider - button.py: left/middle/right physical button entities - manifest.json: zeroconf _thinclock._tcp.local. declaration - strings.json: UI strings for config flow steps
homeassistant/addon/: - config.yaml: add-on manifest, options schema, ingress on 3232, aarch64/amd64/armv7 - Dockerfile: Node 22 on hassio-addons base, /data symlinked for persistence - run.sh: translates HA options.json -> env vars, wires SUPERVISOR_TOKEN as HA_TOKEN - build.yaml: multi-arch build targets src/api/adapters/homeassistant.js: - Full WebSocket implementation (was a stub) - Auth handshake, fetch all states on connect, subscribe to state_changed - Auto-reconnect on disconnect - GET /data/ha/:entity_id and GET /data/ha list endpoints repository.yaml: repo root manifest for HA add-on store homeassistant/README.md: full install guide + architecture + options table
- Move addon from homeassistant/addon/ -> thinclock-addon/ (repo root, required by HA store) - Fix Dockerfile COPY path after move - Add icon.png (resized from thinclock_logo.png) to addon folder - repository.yaml at repo root for HA custom repo discovery - README: full rewrite covering firmware flash, standalone server, HA add-on, integration install, monorepo structure, screen authoring, device API
Spec fixes: - clearstack.spec.js: firmware C++ check via runExtCmd (clearstack 0.4.26) - firmware/.cppcheck-suppress: suppress ArduinoJson/display false positives - firmware: default member initializers, constructors, const refs, C++ casts - JS: file splits under 150 lines, empty JSDoc removal, unused var fixes - .configs/eslint.config.js: remove jsdoc/require-jsdoc, ignore firmware/.pio docs/TESTING.md: full pre-merge test checklist covering server, firmware, device web UI, server-device integration, browser UI, HA integration, HA add-on sideload, and known deferred items
…n, const Screen& extern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move to Clearstack base, and updates for HA integration base