Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.1.0 #214

Merged
merged 77 commits into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
3e0c648
Add MatterbridgeModeSelectServer
Luligu Jan 23, 2025
1fdd6ab
MatterbridgeSmokeCOAlarmServer
Luligu Jan 23, 2025
3ce2cb5
Add MatterbridgeSmokeCoAlarmServer
Luligu Jan 23, 2025
e5f914f
Save qrPairingCode and manualPairingCode to reopen commissioning wind…
Luligu Jan 23, 2025
0cd130b
Stop MdnsService in stopServerNode
Luligu Jan 23, 2025
cfddfb4
Update Jest tests
Luligu Jan 23, 2025
3bc2b21
Fix undefined attributes in state loop
Luligu Jan 24, 2025
1803823
Fix QRCode - fabrics
Luligu Jan 24, 2025
956e3ae
Update MatterbridgeInformation interface to allow undefined for fabri…
Luligu Jan 24, 2025
5c477ed
Refactor API settings retrieval into a separate method for improved r…
Luligu Jan 24, 2025
349970d
Update Matterbridge class to allow undefined for fabric, session, and…
Luligu Jan 24, 2025
7700cd7
Dev 2.0.1-dev.1
Luligu Jan 24, 2025
41cf806
Dev 2.0.1-dev.1
Luligu Jan 26, 2025
48838e1
Dev 2.0.1-dev.2
Luligu Jan 26, 2025
11c06a8
Dev 2.0.1-dev.3
Luligu Jan 27, 2025
b1a94aa
Dev 2.0.1-dev.3
Luligu Jan 27, 2025
253285c
Dev 2.0.1-dev.3
Luligu Jan 27, 2025
3c7cce1
Dev 2.0.1-dev.3
Luligu Jan 27, 2025
4a31fef
Dev 2.0.1-dev.3
Luligu Jan 28, 2025
3fc3cec
Dev 2.0.1-dev.3
Luligu Jan 28, 2025
7ffd886
Dev 2.0.1-dev.4
Luligu Jan 28, 2025
c9e3b8a
Dev 2.0.1-dev.4
Luligu Jan 29, 2025
9129374
Dev 2.0.1-dev.5
Luligu Jan 29, 2025
77d8491
Dev 2.0.1-dev.6
Luligu Jan 30, 2025
1886628
Dev 2.0.1-dev.6
Luligu Jan 30, 2025
80bf1a4
Dev 2.0.1-dev.6
Luligu Jan 30, 2025
0af7b9b
Dev 2.0.1-dev.7
Luligu Jan 30, 2025
37c2612
Dev 2.0.1-dev.7
Luligu Jan 30, 2025
389851b
Dev 2.0.1-dev.7
Luligu Jan 30, 2025
74f98f1
Dev 2.0.1-dev.7
Luligu Jan 30, 2025
711b17b
Dev 2.0.1-dev.7
Luligu Jan 30, 2025
dfe30a0
Docker dev
Luligu Jan 30, 2025
583997a
Docker dev
Luligu Jan 30, 2025
8290937
Jest
Luligu Jan 30, 2025
17fbbe0
Docker dev
Luligu Jan 30, 2025
68773b7
Jest
Luligu Jan 30, 2025
eb07102
Jest
Luligu Jan 30, 2025
3089105
Jest
Luligu Jan 30, 2025
3b517ed
Comment out serialize devices
Luligu Jan 30, 2025
8b4f32f
Jest
Luligu Jan 30, 2025
2c5f2f5
Jest
Luligu Jan 30, 2025
4c63552
Jest
Luligu Jan 30, 2025
fd10f1e
Jest
Luligu Jan 30, 2025
a3f7ce7
Jest
Luligu Jan 30, 2025
1b235bd
Jest
Luligu Jan 30, 2025
99d43df
Jest
Luligu Jan 30, 2025
27f9c0a
Jest
Luligu Jan 30, 2025
1d19a91
Jest
Luligu Jan 30, 2025
c1769f0
Jest
Luligu Jan 30, 2025
2f1628e
Jest
Luligu Jan 30, 2025
b8db23c
Jest
Luligu Jan 30, 2025
d31a2ba
Jest
Luligu Jan 30, 2025
20a4c95
Jest
Luligu Jan 30, 2025
d03f9aa
Jest
Luligu Jan 30, 2025
66f8378
Jest
Luligu Jan 30, 2025
2340be1
Jest
Luligu Jan 30, 2025
09e1cab
Dev 2.0.1-dev.8
Luligu Jan 31, 2025
9b49e35
Jest
Luligu Jan 31, 2025
85cf13f
Jest
Luligu Jan 31, 2025
ea0f7e4
Jest
Luligu Jan 31, 2025
03b0462
Dev 2.1.0-dev.9
Luligu Jan 31, 2025
83933ee
Dev 2.1.0-dev.9
Luligu Jan 31, 2025
cdd4466
Update platform test
Luligu Jan 31, 2025
7f29369
Add MatterbridgeSwitchServer
Luligu Jan 31, 2025
e250d10
Dev 2.1.0-dev.10
Luligu Jan 31, 2025
3598e84
Dev 2.1.0-dev.11
Luligu Feb 1, 2025
2da462b
Jest
Luligu Feb 1, 2025
7120875
Jest
Luligu Feb 1, 2025
3079595
Jest
Luligu Feb 1, 2025
83ff39b
Jest
Luligu Feb 1, 2025
3c4bed5
Jest
Luligu Feb 1, 2025
8e4bfae
Jest
Luligu Feb 1, 2025
beed964
Jest
Luligu Feb 1, 2025
b0fc515
Jest
Luligu Feb 1, 2025
2490bd1
Jest
Luligu Feb 1, 2025
6a70c51
Dev 2.1.0-dev.12
Luligu Feb 1, 2025
5fa1ee7
Release 2.1.0
Luligu Feb 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ matterstorage
matterstorage.backup
coverage
TODO.md
test
test
eveHistory.test.ts
eveHistoryBehavior.ts
eveHistoryCluster.ts
6 changes: 5 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,8 @@ matterstorage
matterstorage.backup

TODO.md
CODEOWNERS
CODEOWNERS

eveHistory.test.ts
eveHistoryBehavior.ts
eveHistoryCluster.ts
40 changes: 36 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,43 @@ Tamer (https://github.com/tammeryousef1006) has created the Matterbridge Discord

### Breaking Changes

Starting from v. 2.0.0 Matterbridge is running only in mode edge (no parameter needed).
The legacy old api have been removed.
Starting from v. 2.0.0 Matterbridge is running only in mode edge (no parameter needed and no badge in the frontend).

The frontend has a new dark and light mode. The dark mode is now the default mode.
It is possible to change the mode (Classic, Dark or Light) in Settings, Matterbridge settings.
With this release v. 2.1.0, the legacy old api of matter.js have been completely removed from Matterbridge and from all plugins.

For this reason there is no compatibility for old versions of the plugins.

You need to update all plugins you use and Matterbridge in the same moment.

I suggest to first update all plugins without restarting and then to update Matterbridge so when it restarts, all versions will be the latest.

Compatibility list:
matterbridge-shelly v. 1.1.5
matterbridge-zigbee2mqtt v. 2.4.4
matterbridge-somfy-tahoma v. 1.2.3
matterbridge-hass v. 0.0.8

## [2.1.0] - 2025-02-02

### Added

- [matterbridge]: Add MatterbridgeModeSelectServer.
- [matterbridge]: Add MatterbridgeSwitchServer.
- [frontend]: Add api/advertise to turn on matter advertising in bridge mode.
- [frontend]: Frontend v.2.4.0.
- [matterbridge]: Added deep memory scan details.

### Changed

- [package]: Removed legacy imports.
- [package]: Update dependencies.
- [package]: Update matter.js to 0.12.0.
- [package]: Update matter.js to 0.12.1.
- [package]: Update matter.js to 0.12.2.

<a href="https://www.buymeacoffee.com/luligugithub">
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
</a>

## [2.0.0] - 2025-01-20

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ So far is the only controller supporting some Matter 1.2 and 1.3 device type:

Electrical measurements:

- electrical measurements from EveHistoryCluster (used in Matterbridge plugins)
- electrical measurements from EveHistoryCluster (used in old Matterbridge plugins)
- electricalSensor code 0x0510 with clusters: ElectricalPowerMeasurement and ElectricalEnergyMeasurement

Other supported cluster:
Expand Down
46 changes: 26 additions & 20 deletions docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -4,63 +4,68 @@ WORKDIR /app
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git && \
apt-get clean && \
npm install -g npm@latest && \
node -v && \
npm -v



FROM base AS builder
WORKDIR /app
COPY ./package.json ./package-lock.json ./tsconfig.json ./.npmignore ./
COPY ./package.json ./package-lock.json ./tsconfig.json ./tsconfig.production.json ./.npmignore ./
COPY ./src ./src
COPY ./frontend/build ./frontend/build
RUN npm ci && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm link && npm shrinkwrap && npm pack
RUN npm ci && npm run build && npm link

WORKDIR /matterbridge-test
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-test.git .
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /matterbridge-example-accessory-platform
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-example-accessory-platform.git .
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /matterbridge-example-dynamic-platform
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-example-dynamic-platform.git .
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /matterbridge-zigbee2mqtt
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-zigbee2mqtt.git .
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /matterbridge-somfy-tahoma
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-somfy-tahoma.git .
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /matterbridge-shelly
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-shelly.git .
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /matterbridge-hass
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-hass.git .
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /matterbridge-example-accessory-platform
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-example-accessory-platform.git .
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /matterbridge-example-dynamic-platform
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-example-dynamic-platform.git .
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /matterbridge-eve-door
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-door.git .
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /matterbridge-eve-motion
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-motion.git .
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /matterbridge-eve-energy
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-energy.git .
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /matterbridge-eve-room
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-room.git .
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /matterbridge-eve-weather
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-weather.git .
RUN npm ci && npm link matterbridge && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm shrinkwrap && npm pack
RUN npm ci && npm link matterbridge && npm run buildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack

WORKDIR /app
RUN npm run cleanBuildProduction && npm pkg delete devDependencies scripts types && npm install --omit=dev && npm shrinkwrap && npm pack


FROM node:22-bookworm-slim AS release
Expand All @@ -73,6 +78,7 @@ COPY --from=builder /matterbridge-zigbee2mqtt/*.tgz .
COPY --from=builder /matterbridge-somfy-tahoma/*.tgz .
COPY --from=builder /matterbridge-shelly/*.tgz .
COPY --from=builder /matterbridge-hass/*.tgz .
COPY --from=builder /matterbridge-test/*.tgz .
COPY --from=builder /matterbridge-example-accessory-platform/*.tgz .
COPY --from=builder /matterbridge-example-dynamic-platform/*.tgz .
COPY --from=builder /matterbridge-eve-door/*.tgz .
Expand Down
6 changes: 3 additions & 3 deletions frontend/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "./static/css/main.cf25d33e.css",
"main.js": "./static/js/main.6df4ebe4.js",
"main.js": "./static/js/main.26dbf9b9.js",
"static/js/453.abd36b29.chunk.js": "./static/js/453.abd36b29.chunk.js",
"static/media/roboto-latin-700-normal.woff2": "./static/media/roboto-latin-700-normal.4535474e1cf8598695ad.woff2",
"static/media/roboto-latin-500-normal.woff2": "./static/media/roboto-latin-500-normal.7077203b1982951ecf76.woff2",
Expand Down Expand Up @@ -61,11 +61,11 @@
"static/media/roboto-greek-ext-400-normal.woff": "./static/media/roboto-greek-ext-400-normal.16eb83b4a3b1ea994243.woff",
"index.html": "./index.html",
"main.cf25d33e.css.map": "./static/css/main.cf25d33e.css.map",
"main.6df4ebe4.js.map": "./static/js/main.6df4ebe4.js.map",
"main.26dbf9b9.js.map": "./static/js/main.26dbf9b9.js.map",
"453.abd36b29.chunk.js.map": "./static/js/453.abd36b29.chunk.js.map"
},
"entrypoints": [
"static/css/main.cf25d33e.css",
"static/js/main.6df4ebe4.js"
"static/js/main.26dbf9b9.js"
]
}
2 changes: 1 addition & 1 deletion frontend/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><base href="./"><link rel="icon" href="./matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="./manifest.json"/><script defer="defer" src="./static/js/main.6df4ebe4.js"></script><link href="./static/css/main.cf25d33e.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><base href="./"><link rel="icon" href="./matterbridge 32x32.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Matterbridge</title><link rel="manifest" href="./manifest.json"/><script defer="defer" src="./static/js/main.26dbf9b9.js"></script><link href="./static/css/main.cf25d33e.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "2.3.12",
"version": "2.4.0",
"private": true,
"homepage": "./",
"scripts": {
Expand Down
Loading