Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
71ca8dd
NSPanel protobuf data now includes entity type and id for entity slot…
tpanajott Aug 20, 2026
5053893
Add media player entity to NSPanel protobufs (#384)
jamesmulcahy Sep 20, 2026
ca00441
Home Assistant media players and album art for NSPanels (#385)
jamesmulcahy Sep 25, 2026
9de53d9
Updated to latest firmware build and also fixed a bug where nspanel s…
tpanajott Sep 25, 2026
44abbd9
Feat first page react (#391)
tpanajott Sep 25, 2026
b95aa9a
Add port, container name and seed path options to the dev build scrip…
jamesmulcahy Sep 26, 2026
fd5931b
Remove the leftover htmx setup wizard that 500s every page on a fresh…
jamesmulcahy Sep 26, 2026
e46f4d0
Merge branch 'devel' of github.com:NSPManager/NSPanelManager into devel
tpanajott Sep 26, 2026
28b89eb
Add MQTTManager unit test harness and CI (#392)
jamesmulcahy Oct 13, 2026
5411f7a
Let the dev build script share one Conan cache across checkouts (#398)
jamesmulcahy Oct 13, 2026
fe3fb7b
MQTTManager: wait for the web interface's database lock instead of fa…
jamesmulcahy Oct 16, 2026
4a0ca11
Send per-event buzzer sounds to panels in NSPanelConfig (#394)
jamesmulcahy Oct 16, 2026
ab4c20b
Add a Django test harness and initial REST API tests (#388)
jamesmulcahy Oct 17, 2026
fae6085
MQTTManager: don't let new messages overtake ones buffered while disc…
jamesmulcahy Oct 19, 2026
345e090
MQTTManager: stop a room's status thread when the room is destroyed (…
jamesmulcahy Oct 19, 2026
253cb27
Send NSPanels the POSIX TZ rule for the manager's timezone (#405)
jamesmulcahy Oct 19, 2026
0381dcd
Add a buzzer mute switch to Home Assistant discovery (#400)
jamesmulcahy Oct 19, 2026
02b5dfe
MQTTManager: send NSPanels the current time (#404)
jamesmulcahy Oct 20, 2026
b43ab57
Fixed an issue with messages sent over MQTT was not mirrored to STOMP…
tpanajott Oct 20, 2026
4626d00
Add media player source selection and playback position to the protob…
jamesmulcahy Oct 21, 2026
c95fcd8
Updated with latest firmware build from devel
tpanajott Oct 21, 2026
041252d
Media player source selection (#396)
jamesmulcahy Oct 25, 2026
ebe72d5
Add media players to the React add/edit entity wizard (#412)
jamesmulcahy Oct 25, 2026
a4a2dac
Send media playback position from Home Assistant to NSPanels (#409)
jamesmulcahy Oct 25, 2026
6d2bba5
Add pull request checks for Django, Docker, protobuf and React (#395)
jamesmulcahy Oct 28, 2026
61db339
Add a regression test for #337 (reordering rooms with a panel) (#414)
jamesmulcahy Oct 28, 2026
33451ff
Fix the rain chance on the screensaver always showing 0% (#203) (#415)
jamesmulcahy Oct 28, 2026
e703ce5
Fix saving a detached button with no entity (#80) and room_put ignori…
jamesmulcahy Oct 28, 2026
e5cbeb7
Stop turning Home Assistant lights on at the warmest white (#343) (#416)
jamesmulcahy Oct 28, 2026
d7e78d4
Fix OpenHAB thermostat current temperature, presets/swing, and scene …
jamesmulcahy Oct 28, 2026
0df6ce6
Make the room page's Delete button delete the room (#411)
jamesmulcahy Oct 28, 2026
9d61d10
Fixed React and updated to latest firmware
tpanajott Oct 28, 2026
0d7d944
Add regression tests for issue #336 (#413)
jamesmulcahy Nov 7, 2026
75542a7
Removed docs as it is no longer in use from this repo
tpanajott Nov 7, 2026
0a4e499
Merge branch 'devel' of github.com:NSPManager/NSPanelManager into devel
tpanajott Nov 7, 2026
c5586ef
Add cover entity support and dedicated panel page (#419)
Aulos Nov 7, 2026
a0f8ad1
Docker: build the dev image as its own target, and shrink the build c…
jamesmulcahy Nov 8, 2026
1d728f3
Updated to latest firmware and added message to inform of MQTT server…
tpanajott Nov 8, 2026
deedbb6
Make name unique for settings
tpanajott Nov 8, 2026
55103bc
Removed warning banners for beta features for media player and cover …
tpanajott Nov 8, 2026
c38ff3b
Tests: follow the removed beta banners and the 0071 message (#429)
jamesmulcahy Nov 8, 2026
ce1d40f
Settings page in React, on a typed /rest/v2/settings (Django REST Fra…
jamesmulcahy Nov 8, 2026
3eb0f17
Add a button mode that opens the room's first media player (#425)
jamesmulcahy Nov 8, 2026
3e59790
Add buzzer sounds to the settings page (#430)
jamesmulcahy Nov 8, 2026
40a860e
MQTTManager: wake the message processing thread on push instead of po…
jamesmulcahy Nov 8, 2026
8ff35ef
preparing for blinds page in tft file
cablesandcoffee Nov 9, 2026
6290a2a
fixed blinds page in gimp file
cablesandcoffee Nov 9, 2026
51be028
produced new test images to use to build the blinds page in nextion e…
cablesandcoffee Nov 9, 2026
369fb5b
added tilt icons for blinds page in font file
cablesandcoffee Nov 9, 2026
ca25a1e
Added rest_v2_rooms API
tpanajott Nov 9, 2026
a4455c0
Updated CONTRIBUTING
tpanajott Nov 9, 2026
4568f27
Merge branch 'devel' of github.com:NSPManager/NSPanelManager into devel
tpanajott Nov 9, 2026
635ba9f
implemented blinds page only actions missing
cablesandcoffee Nov 9, 2026
4dcb4e9
Merge branch 'devel' of https://github.com/NSPManager/NSPanelManager …
cablesandcoffee Nov 9, 2026
3cdf2ea
Initial React rooms page
tpanajott Nov 9, 2026
f904588
It's now possible to reorder rooms using the new React page
tpanajott Nov 10, 2026
7045fd9
Merge branch 'devel' of github.com:NSPManager/NSPanelManager into devel
tpanajott Nov 10, 2026
7365727
finished blinds page created one tft to test in output_tft4 folder
cablesandcoffee Nov 10, 2026
9346f8c
Complete transition of rooms page into React form
tpanajott Nov 10, 2026
0771e32
Merge branch 'devel' of github.com:NSPManager/NSPanelManager into devel
tpanajott Nov 10, 2026
817aec2
Fixed a bug where animation on room box did not follow cursor
tpanajott Nov 10, 2026
e5cbc83
Fixed an issue where openhab lights added through web interface didn'…
tpanajott Nov 10, 2026
2a9132f
Updated LightTests payload
tpanajott Nov 10, 2026
fbf7969
fixed wrong component name on blinds page
cablesandcoffee Nov 10, 2026
d14baf4
Merge branch 'devel' of https://github.com/NSPManager/NSPanelManager …
cablesandcoffee Nov 10, 2026
c247999
added blinds icon to font
cablesandcoffee Nov 10, 2026
782dd63
added media player icon to font and added mediaplayer and blinds icon…
cablesandcoffee Nov 10, 2026
f7d5dd7
added media player and blinds icon
cablesandcoffee Nov 11, 2026
97bc328
Cover page rework (#436)
tpanajott Nov 12, 2026
40644d7
Updated with latest firmware
tpanajott Nov 12, 2026
a5e850f
Build all four theme TFTs from one Editor compile, and check them in …
jamesmulcahy Nov 13, 2026
ddf5510
Initial setup with REST v2 (#438)
tpanajott Nov 14, 2026
f72dd5b
Misc improvments (#439)
tpanajott Nov 15, 2026
1d7715b
finished work with new images for blinds page for both EU and US
cablesandcoffee Nov 16, 2026
c426b39
implemented blinds page in US HMI file and fixed the todos on the dif…
cablesandcoffee Nov 17, 2026
0101891
test replacing tft 1
cablesandcoffee Nov 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
66 changes: 66 additions & 0 deletions .github/workflows/django-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: "Django checks"

on:
pull_request:
paths:
- "docker/web/**"
- "docker/ruff.toml"
- ".github/workflows/django-checks.yml"
push:
branches:
- "main"
- "devel"
- "beta"
paths:
- "docker/web/**"
- "docker/ruff.toml"
- ".github/workflows/django-checks.yml"

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12"

# Pinned: ruff's default rules and its findings change between releases.
- name: Install ruff
run: pip install ruff==0.16.10

# Only undefined names and syntax errors fail the build for now. The rest of
# docker/ruff.toml's rules still report findings (unused imports and the like)
# that need a cleanup pass before they can be enforced.
- name: Check for undefined names and syntax errors
working-directory: docker
run: ruff check web/ --select F821,E9 --output-format github

migrations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12" # Matches the python:3.12 base image in docker/Dockerfile
cache: pip
cache-dependency-path: docker/web/requirements.txt

- name: Install dependencies
run: pip install -r docker/web/requirements.txt

# settings.py keeps the secret key and database in /data, as in the container.
- name: Create the data directory
run: sudo install -d -o "$USER" /data

- name: Run Django system checks
working-directory: docker/web/nspanelmanager
run: python manage.py check

# Fails if a model change has no migration, which would leave existing installs
# with a database that doesn't match the code after upgrading.
- name: Check for missing migrations
working-directory: docker/web/nspanelmanager
run: python manage.py makemigrations --check --dry-run
113 changes: 113 additions & 0 deletions .github/workflows/django-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: "Django tests"

on:
pull_request:
paths:
- "docker/web/**"
# web/tests/test_rest_v2_settings.py checks /rest/v2/settings against MQTTManager's setting keys.
- "docker/MQTTManager/include/mqtt_manager_config/mqtt_manager_config.hpp"
- ".github/workflows/django-tests.yml"
push:
branches:
- "main"
- "devel"
- "beta"
paths:
- "docker/web/**"
# web/tests/test_rest_v2_settings.py checks /rest/v2/settings against MQTTManager's setting keys.
- "docker/MQTTManager/include/mqtt_manager_config/mqtt_manager_config.hpp"
- ".github/workflows/django-tests.yml"

# Fork pull requests already get a read-only token and no repository secrets; this keeps
# same-repo runs read-only too. Don't switch to pull_request_target or add a workflow_run
# follow-up without reviewing what code it checks out: those run with secrets.
permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12" # Matches the python:3.12 base image in docker/Dockerfile
cache: pip
cache-dependency-path: docker/web/requirements*.txt

# requirements-dev.txt adds drf-spectacular, so test_openapi.py runs here.
- name: Install dependencies
run: pip install -r docker/web/requirements-dev.txt unittest-xml-reporting

- name: Run tests
run: docker/web/run_tests.sh -v 2
env:
NSPM_TEST_JUNIT_DIR: ${{ github.workspace }}/test-results

# annotate_only writes the job summary and failure annotations without creating a
# check run, which needs checks: write and so fails on pull requests from forks.
- name: Report test results
if: ${{ !cancelled() }}
uses: mikepenz/action-junit-report@v6
with:
report_paths: test-results/*.xml
annotate_only: true
detailed_summary: true
include_passed: true
require_tests: true

# The release image installs only requirements.txt (docker/Dockerfile). drf-spectacular is dev-only
# because its rpds-py dependency has no wheel for every release architecture (armhf), so check the
# app and its tests work without it.
prod-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12" # Matches the python:3.12 base image in docker/Dockerfile
cache: pip
cache-dependency-path: docker/web/requirements.txt

- name: Install the release image's dependencies only
run: pip install -r docker/web/requirements.txt

- name: Check development-only packages are absent
run: |
for module in drf_spectacular jsonschema rpds; do
if python -c "import $module" 2>/dev/null; then
echo "::error::$module is importable with only docker/web/requirements.txt installed; it must stay in requirements-dev.txt"
exit 1
fi
done

- name: Run tests
run: docker/web/run_tests.sh

# test_openapi.py checks openapi.yaml against the DRF views; this checks the UI's generated
# TypeScript types against openapi.yaml. Together they catch a contract change committed
# without running docker/web/generate_api.sh.
api-types:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docker/web/nspanelmanager/web/react-components
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "22"

- name: Regenerate TypeScript types from openapi.yaml
run: npm run generate:api-types

- name: Check the committed types are up to date
run: |
if [ -n "$(git status --porcelain -- src/api/schema.d.ts)" ]; then
git diff -- src/api/schema.d.ts
echo "::error file=docker/web/nspanelmanager/web/react-components/src/api/schema.d.ts::src/api/schema.d.ts is out of date with docker/web/openapi.yaml. Run docker/web/generate_api.sh and commit the result."
exit 1
fi
91 changes: 91 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: "Docker build"

# Builds the release image without pushing it, so a broken Dockerfile, dependency or cross-compile
# shows up on the pull request instead of when a release is published. Pull requests and pushes build
# amd64 and aarch64; the weekly run and manual runs also build the 32-bit platforms.

on:
pull_request:
paths:
- "docker/**"
- ".github/workflows/docker-build.yml"
push:
branches:
- "main"
- "devel"
- "beta"
paths:
- "docker/**"
- ".github/workflows/docker-build.yml"
schedule:
- cron: "0 4 * * 1"
workflow_dispatch:

# A new push to a pull request supersedes its running build, which can take an hour.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
name: Build ${{ matrix.arch }}
runs-on: ubuntu-latest
# Building the Conan dependencies from source takes about an hour when the cache is cold.
timeout-minutes: 150
strategy:
fail-fast: false
matrix:
# Same architectures as release.yml and docker/config.yaml.
arch: ${{ fromJSON((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && '["amd64", "aarch64", "armv7", "armhf", "i386"]' || '["amd64", "aarch64"]') }}
steps:
- uses: actions/checkout@v4

- name: Map architecture to Docker platform
id: platform
run: |
case "${{ matrix.arch }}" in
amd64) echo "platform=linux/amd64" >> "$GITHUB_OUTPUT" ;;
aarch64) echo "platform=linux/arm64" >> "$GITHUB_OUTPUT" ;;
armv7) echo "platform=linux/arm/v7" >> "$GITHUB_OUTPUT" ;;
armhf) echo "platform=linux/arm/v6" >> "$GITHUB_OUTPUT" ;;
i386) echo "platform=linux/386" >> "$GITHUB_OUTPUT" ;;
*) echo "Unknown architecture ${{ matrix.arch }}"; exit 1 ;;
esac

# MQTTManager is cross-compiled on the runner's platform, but the final stage runs the
# target platform's apt-get and pip, which needs emulation.
- uses: docker/setup-qemu-action@v3

- uses: docker/setup-buildx-action@v3
id: buildx

- name: Cache Conan packages
id: conan-cache
uses: actions/cache@v4
with:
path: conan-cache
key: docker-conan-${{ matrix.arch }}-${{ hashFiles('docker/MQTTManager/conanfile.py', 'docker/build_scripts/install_build_tools.sh') }}
restore-keys: docker-conan-${{ matrix.arch }}-

# Moves the cached directory into the Dockerfile's Conan cache mount before the build,
# and back out afterwards so actions/cache can save it.
- name: Restore Conan cache mount
uses: reproducible-containers/buildkit-cache-dance@v3
with:
builder: ${{ steps.buildx.outputs.name }}
cache-map: |
{
"conan-cache": {
"target": "/MQTTManager/conan_cache",
"id": "nspm-conan",
"sharing": "locked"
}
}
skip-extraction: ${{ steps.conan-cache.outputs.cache-hit }}

- name: Build image
uses: docker/build-push-action@v6
with:
context: docker
platforms: ${{ steps.platform.outputs.platform }}
push: false
60 changes: 60 additions & 0 deletions .github/workflows/mqttmanager-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: "MQTTManager tests"

on:
pull_request:
paths:
- "docker/MQTTManager/**"
- ".github/workflows/mqttmanager-tests.yml"
push:
branches:
- "main"
- "devel"
paths:
- "docker/MQTTManager/**"
- ".github/workflows/mqttmanager-tests.yml"

jobs:
test:
runs-on: ubuntu-latest
# Building the Conan dependencies from source takes about an hour when the cache is cold.
timeout-minutes: 120
env:
# Host directory mounted as the container's Conan package cache (see run_tests.sh).
NSPM_TEST_CONAN_CACHE: ${{ github.workspace }}/.conan-cache
steps:
- uses: actions/checkout@v4

- name: Restore Conan packages
id: conan-cache
uses: actions/cache/restore@v4
with:
path: ${{ env.NSPM_TEST_CONAN_CACHE }}
key: mqttmanager-conan-${{ hashFiles('docker/MQTTManager/conanfile.py', 'docker/MQTTManager/tests/docker/Dockerfile') }}
restore-keys: mqttmanager-conan-

- name: Build and run tests
run: |
mkdir -p "$NSPM_TEST_CONAN_CACHE"
docker/MQTTManager/run_tests.sh
env:
NSPM_TEST_RESULTS_DIR: ${{ github.workspace }}/test-results

# annotate_only writes the job summary and failure annotations without creating a
# check run, which needs checks: write and so fails on pull requests from forks.
- name: Report test results
if: ${{ !cancelled() }}
uses: mikepenz/action-junit-report@v6
with:
report_paths: test-results/*.xml
annotate_only: true
detailed_summary: true
include_passed: true
require_tests: true

# Saved even when the tests fail, so a failing test does not cost another dependency build.
- name: Save Conan packages
if: always() && steps.conan-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: ${{ env.NSPM_TEST_CONAN_CACHE }}
key: ${{ steps.conan-cache.outputs.cache-primary-key }}
60 changes: 60 additions & 0 deletions .github/workflows/protobuf.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: "Protobuf"

# The code generated from docker/protobuf/*.proto is committed. Check that it matches the .proto
# files, and that protoc and both protobuf runtimes are on the same release: the generated C++
# refuses to compile, and the generated Python refuses to import, against a different version.

on:
pull_request:
paths:
- "docker/protobuf/**"
- "docker/MQTTManager/include/protobuf/**"
- "docker/MQTTManager/conanfile.py"
- "docker/web/nspanelmanager/web/protobuf/**"
- "docker/web/requirements.txt"
- "protobuf_firmware/**"
- ".github/workflows/protobuf.yml"
push:
branches:
- "main"
- "devel"
- "beta"
paths:
- "docker/protobuf/**"
- "docker/MQTTManager/include/protobuf/**"
- "docker/MQTTManager/conanfile.py"
- "docker/web/nspanelmanager/web/protobuf/**"
- "docker/web/requirements.txt"
- "protobuf_firmware/**"
- ".github/workflows/protobuf.yml"

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Check protobuf versions match
run: |
protoc_version=$(sed -nE 's/^REMOTE_FILE="protoc-([0-9.]+)-.*/\1/p' docker/protobuf/install_protobuf.sh)
conan_version=$(sed -nE 's/.*"protobuf\/([0-9.]+)".*/\1/p' docker/MQTTManager/conanfile.py)
python_version=$(sed -nE 's/^protobuf==([0-9.]+).*/\1/p' docker/web/requirements.txt)
echo "protoc $protoc_version, Conan protobuf $conan_version, Python protobuf $python_version"
# protoc 27.0 is the protoc of the 5.27.0 C++ and Python runtimes.
if [ -z "$protoc_version" ] || [ "5.$protoc_version" != "$conan_version" ] || [ "$conan_version" != "$python_version" ]; then
echo "::error::protoc ($protoc_version in install_protobuf.sh), Conan protobuf ($conan_version in conanfile.py) and Python protobuf ($python_version in requirements.txt) must be the same release"
exit 1
fi

# The same script contributors run, so a failure here is fixed by running it locally.
- name: Regenerate
run: bash docker/protobuf/regenerate.sh

- name: Check generated code is up to date
run: |
git add --intent-to-add --all
if ! git diff --exit-code --stat; then
git diff
echo "::error::Generated protobuf code is out of date. Run docker/protobuf/regenerate.sh (needs only Docker) and commit the result."
exit 1
fi
Loading
Loading