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 1.6.0 #152

Merged
merged 45 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
0e9eed1
Release 1.6.0
Luligu Oct 13, 2024
c6bc421
Release 1.6.0
Luligu Oct 13, 2024
a546def
Dev 1.6.0-dev.1
Luligu Oct 13, 2024
73272de
Dev 1.6.0-dev.1
Luligu Oct 13, 2024
ca567e4
Dev 1.6.0-dev.1
Luligu Oct 13, 2024
504cf28
Dev 1.6.0-dev.1
Luligu Oct 13, 2024
e35813c
Dev 1.6.0-dev.1
Luligu Oct 13, 2024
fae1852
Dev 1.6.0-dev.1
Luligu Oct 13, 2024
f5172cd
Dev 1.6.0-dev.1
Luligu Oct 13, 2024
b22481a
Dev 1.6.0-dev.1
Luligu Oct 13, 2024
89d467a
Dev 1.6.0-dev.1
Luligu Oct 13, 2024
522a2b4
Dev 1.6.0-dev.2
Luligu Oct 13, 2024
98170cb
Dev 1.6.0-dev.3
Luligu Oct 13, 2024
a9562f6
Dev 1.6.0-dev.3
Luligu Oct 13, 2024
7d4e362
Dev 1.6.0-dev.3
Luligu Oct 13, 2024
0ebfc01
Dev 1.6.0-dev.4
Luligu Oct 13, 2024
b8e56b6
Dev 1.6.0-dev.4
Luligu Oct 13, 2024
5fab062
Dev 1.6.0-dev.5
Luligu Oct 14, 2024
5a9d75f
Dev 1.6.0-dev.5
Luligu Oct 14, 2024
e58e7b5
Dev 1.6.0-dev.6
Luligu Oct 14, 2024
86a57cc
Dev 1.6.0-dev.6
Luligu Oct 14, 2024
0d617b5
Dev 1.6.0-dev.6
Luligu Oct 14, 2024
99ed854
Dev 1.6.0-dev.6
Luligu Oct 14, 2024
bb7ee2e
Dev 1.6.0-dev.7
Luligu Oct 14, 2024
1079565
Dev 1.6.0-dev.7
Luligu Oct 14, 2024
dc3a017
Dev 1.6.0-dev.7
Luligu Oct 14, 2024
3275bcd
Dev 1.6.0-dev.8
Luligu Oct 14, 2024
d15e596
Dev 1.6.0-dev.9
Luligu Oct 15, 2024
04916f9
Dev 1.6.0-dev.9
Luligu Oct 15, 2024
489fd47
Dev 1.6.0-dev.9
Luligu Oct 15, 2024
1dc7eb3
Dev 1.6.0-dev.10
Luligu Oct 15, 2024
f17a337
Removed deprecated methods on ColorControl cluster.
Luligu Oct 16, 2024
b3eb697
Dev 1.6.0-dev.11
Luligu Oct 16, 2024
a4c0ae3
Dev 1.6.0-dev.11
Luligu Oct 16, 2024
850408f
Dev 1.6.0-dev.13
Luligu Oct 20, 2024
28a76e7
Dev 1.6.0-dev.14
Luligu Oct 21, 2024
3e83119
Dev 1.6.0-dev.14
Luligu Oct 21, 2024
c620083
Websocket api
Luligu Oct 22, 2024
3ddc53d
Dev 1.6.0-dev.15
Luligu Oct 22, 2024
ef23e79
Dev 1.6.0-dev.16
Luligu Oct 23, 2024
f040119
Dev 1.6.0-dev.16
Luligu Oct 23, 2024
cc7e42d
Dev 1.6.0-dev.16
Luligu Oct 23, 2024
b01f916
Dev 1.6.0-dev.17
Luligu Oct 24, 2024
cb8762c
Dev 1.6.0-dev.17
Luligu Oct 24, 2024
925dd36
Release 1.6.0
Luligu Oct 28, 2024
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
20 changes: 0 additions & 20 deletions .github/workflows/docker-buildx-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,6 @@ jobs:
run: |
echo "Extracted version is: $VERSION ${{ env.VERSION }}"

- name: Run Docker Buildx on shelly
run: |
docker buildx build \
--platform linux/arm64 \
-f docker/Dockerfile.shelly \
-t luligu/matterbridge:shelly \
--push .
docker manifest inspect luligu/matterbridge:shelly
timeout-minutes: 60

- name: Run Docker Buildx on dev_shelly
run: |
docker buildx build \
--platform linux/arm64 \
-f docker/Dockerfile.dev_shelly.bookworm \
-t luligu/matterbridge:dev_shelly \
--push .
docker manifest inspect luligu/matterbridge:dev_shelly
timeout-minutes: 60

- name: Run Docker Buildx on dev
run: |
docker buildx build \
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ replay_pid*
# local
migrationV8.txt
migrationV8-answered.txt
matterbridgeEdge.ts
matterbridgeEdge.test.ts
matterbridgeEndpoint.ts
matterbridgeEndpoint.test.ts
matterstorage

coverage
TODO.md
Expand Down
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,11 @@ test

migrationV8.txt
migrationV8-answered.txt
matterbridgeEdge.ts
matterbridgeEdge.test.ts
matterbridgeEndpoint.ts
matterbridgeEndpoint.test.ts
matterstorage

TODO.md
CODEOWNERS
26 changes: 23 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,37 @@ If you like this project and find it useful, please consider giving it a star on

The Home Assistant Community Add-ons and plugins are not verified to work with Matterbridge. I strongly advise against using them. If you do use them and encounter an issue (which is likely because some do not meet the Matterbridge guidelines), please do not open an issue in the Matterbridge repository.

If you want to run Matterbridge in Home Assistant please use the official add-on https://github.com/Luligu/matterbridge-home-assistant-addon.
If you want to run Matterbridge in Home Assistant please use the official add-on https://github.com/Luligu/matterbridge-home-assistant-addon that also has Ingress and side panel.

### New Apple firmware v. 18.0

Please read this: https://github.com/Luligu/matterbridge/discussions/135

### Discord

Tamer (https://github.com/tammeryousef1006) has created the Matterbridge Discord group: https://discord.gg/raWywpD4.
Tamer (https://github.com/tammeryousef1006) has created the Matterbridge Discord group: https://discord.gg/QX58CDe6hd.

Feel free to join!
Feel free to join (the link is now permanent)!

## [1.6.0] - 2024-10-28

### Added

- [matterbridge]: Added WebSocket for the Matetrbridge cockpit dashboard (Shelly gateway).

### Changed

- [discord]: Discord group link: https://discord.gg/QX58CDe6hd.
- [matterbridge]: Completed phase 1 of transition to edge (matter.js new API).
- [matterbridgeDevice]: Refactor Thermostat cluster method to accept minHeatSetpointLimit, maxHeatSetpointLimit, minCoolSetpointLimit and maxCoolSetpointLimit.
- [config]: The plugins config is rewritten only after onStart and no more after onConfigure (after the plugin starts is possible to change the plugins config and it will not be rewritten after the plugin configuration).
- [matterbridgeDevice]: Removed deprecated methods of ColorControl cluster.
- [package]: Removed EveHistory (it will be used only by single plugins).
- [package]: Update dependencies.

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

## [1.5.10] - 2024-10-01

Expand Down
2 changes: 1 addition & 1 deletion README-SERVICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ sudo systemctl disable matterbridge.service
### View the log of Matterbridge in real time (this will show the log with colors)

```
sudo journalctl -u matterbridge.service -f --output cat
sudo journalctl -u matterbridge.service -n 1000 -f --output cat
```

### Delete the logs older then 3 days (all of them not only the ones of Matterbridge!)
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ To run Matterbridge, you need either a [Node.js](https://nodejs.org/en/download/
Follow these steps to install Matterbridge:

```
npm install -g matterbridge
npm install -g matterbridge --omit=dev
```

on Linux you may need the necessary permissions:

```
sudo npm install -g matterbridge
sudo npm install -g matterbridge --omit=dev
```

Test the installation with:
Expand All @@ -68,7 +68,7 @@ matterbridge

Now it is possible to open the frontend at the link provided in the log (e.g. http://MATTERBIDGE-IPV4-ADDRESS:8283).

You can then change the bridge mode from the frontend.
You can then change the bridge mode and other parameters from the frontend.

## Usage

Expand Down Expand Up @@ -128,19 +128,19 @@ Config editor:

### Run matterbridge as a daemon with systemctl (Linux only)

[Advanced configurations](https://github.com/Luligu/matterbridge/blob/main/README-SERVICE.md)
[Service configurations](https://github.com/Luligu/matterbridge/blob/main/README-SERVICE.md)

### Run matterbridge with docker and docker compose

[Advanced configurations](https://github.com/Luligu/matterbridge/blob/main/README-DOCKER.md)
[Docker configurations](https://github.com/Luligu/matterbridge/blob/main/README-DOCKER.md)

### Run matterbridge with podman

[Advanced configurations](https://github.com/Luligu/matterbridge/blob/main/README-PODMAN.md)
[Podman configurations](https://github.com/Luligu/matterbridge/blob/main/README-PODMAN.md)

### Run matterbridge as an home assistant add-on with the official add-on

[Advanced configurations](https://github.com/Luligu/matterbridge-home-assistant-addon)
[Home assistant add-on configurations](https://github.com/Luligu/matterbridge-home-assistant-addon)

### Other Home Assistant Community Add-ons

Expand Down
5 changes: 2 additions & 3 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

- OTA for matterbridge
- Add test for triggerSwitchEvent configureColorControlCluster configureColorControlMode
- bug on sessions
- fix sessions with new Apple firmware
- when change mode update QR immediately

The following actions use a deprecated Node.js version and will be forced to run on node20: docker/login-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
- add restart message from plugins to matterbridge frontend
34 changes: 12 additions & 22 deletions docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -15,57 +15,47 @@ WORKDIR /app
COPY ./package.json ./package-lock.json ./tsconfig.json ./.npmignore ./
COPY ./src ./src
COPY ./frontend/build ./frontend/build
RUN npm ci && npm run build && npm link && npm shrinkwrap && npm pack
RUN npm ci && npm run build && npm pkg delete devDependencies && npm pkg delete scripts && npm install --omit=dev && npm link && npm shrinkwrap && npm pack

WORKDIR /matterbridge-zigbee2mqtt
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-zigbee2mqtt.git .
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js
RUN npm ci && npm run build && npm shrinkwrap && npm pack
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-somfy-tahoma
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-somfy-tahoma.git .
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js
RUN npm ci && npm run build && npm shrinkwrap && npm pack
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-shelly
RUN GIT_SSL_NO_VERIFY=true git clone -b dev https://github.com/Luligu/matterbridge-shelly.git .
# COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js
RUN npm ci && npm link matterbridge && npm run build && npm shrinkwrap && npm pack
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 .
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js
RUN npm ci && npm run build && npm shrinkwrap && npm pack
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 .
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js
RUN npm ci && npm run build && npm shrinkwrap && npm pack
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-eve-door
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-door.git .
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js
RUN npm ci && npm run build && npm shrinkwrap && npm pack
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-eve-motion
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-motion.git .
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js
RUN npm ci && npm run build && npm shrinkwrap && npm pack
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-eve-energy
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-energy.git .
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js
RUN npm ci && npm run build && npm shrinkwrap && npm pack
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-eve-room
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-room.git .
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js
RUN npm ci && npm run build && npm shrinkwrap && npm pack
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-eve-weather
RUN GIT_SSL_NO_VERIFY=true git clone https://github.com/Luligu/matterbridge-eve-weather.git .
COPY docker/link-matterbridge-docker-script.js ./link-matterbridge-script.js
RUN npm ci && npm run build && npm shrinkwrap && npm pack
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



Expand All @@ -85,6 +75,6 @@ COPY --from=builder /matterbridge-eve-motion/*.tgz .
COPY --from=builder /matterbridge-eve-energy/*.tgz .
COPY --from=builder /matterbridge-eve-room/*.tgz .
COPY --from=builder /matterbridge-eve-weather/*.tgz .
RUN npm install -g --omit=dev *.tgz && rm *.tgz && node -v && npm -v && npm list -g
RUN npm install -g --omit=dev *.tgz && rm *.tgz && node -v && npm -v && npm list -g && npm cache clean --force && rm -rf /tmp/* /var/tmp/* /root/.npm /root/.cache && apt-get clean && rm -rf /var/lib/apt/lists/*

CMD ["matterbridge", "-docker"]
6 changes: 3 additions & 3 deletions frontend/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"files": {
"main.css": "./static/css/main.1cf003ae.css",
"main.js": "./static/js/main.96d6324b.js",
"main.js": "./static/js/main.045d08f7.js",
"static/js/453.abd36b29.chunk.js": "./static/js/453.abd36b29.chunk.js",
"index.html": "./index.html",
"main.1cf003ae.css.map": "./static/css/main.1cf003ae.css.map",
"main.96d6324b.js.map": "./static/js/main.96d6324b.js.map",
"main.045d08f7.js.map": "./static/js/main.045d08f7.js.map",
"453.abd36b29.chunk.js.map": "./static/js/453.abd36b29.chunk.js.map"
},
"entrypoints": [
"static/css/main.1cf003ae.css",
"static/js/main.96d6324b.js"
"static/js/main.045d08f7.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.96d6324b.js"></script><link href="./static/css/main.1cf003ae.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.045d08f7.js"></script><link href="./static/css/main.1cf003ae.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.

1 change: 1 addition & 0 deletions frontend/build/static/js/main.045d08f7.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion frontend/build/static/js/main.96d6324b.js.map

This file was deleted.

Loading