Skip to content

Commit

Permalink
Merge pull request #51 from Luligu/dev
Browse files Browse the repository at this point in the history
Release 0.10.0
  • Loading branch information
Luligu authored Sep 26, 2024
2 parents bcf711e + 7150840 commit 0bd3215
Show file tree
Hide file tree
Showing 29 changed files with 2,638 additions and 905 deletions.
34 changes: 32 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,43 @@ If you like this project and find it useful, please consider giving it a star on

### Breaking Changes

- Unless you are using docker (in that case all is already updated when you pull the image), please update Matterbridge to 1.5.4 to work with matterbridge-shelly >= 0.9.5. This is a one time issue due to the update to matter.js 0.10.0.
- Unless you are using docker (in that case all is already updated when you pull the image), please update Matterbridge to 1.5.5 to work with matterbridge-shelly >= 0.9.5. This is a one time issue due to the update to matter.js 0.10.0.

## [0.10.0] - 2024-09-26

### Added

- [shelly]: Added component Gas.
- [shelly]: Added support for shellygas with firmware v1.14.0 and added Jest test.
- [shelly]: Added component Smoke.
- [shelly]: Added support for shellyplussmoke with firmware v1.4.2 and added Jest test.
- [test]: Added Jest test for ShellyWsServer
- [test]: Added Jest test for ShellyWsClient
- [test]: Added Jest test for real gen 1 devices
- [test]: Added Jest test for real gen 2 devices
- [test]: Added Jest test for real gen 3 devices
- [shelly]: Added a cache validation random interval for all not sleeping devices.

### Changed

- [shelly]: All devices are loaded from cache to speed up the loading phase in huge networks.
- [shelly]: Added electricalSensor device type to Switch, Light and Cover components when enabled (will be supported by Home Assistant v. 2024.10).
- [package]: Updated dependencies.

### Fixed

- [covery]: Fixed cover closed for gen 2 devices.
- [mdns]: Fixed gen discovery.

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

## [0.9.10] - 2024-09-19

### Changed

- [matterbridge]: Refactor wsClient to send different src client id.
- [ShellyWsClient]: Refactor wsClient to send different src client id.
- [package]: Updated dependencies.

<a href="https://www.buymeacoffee.com/luligugithub">
Expand Down
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,25 @@ See the complete guidelines on [Matterbridge](https://github.com/Luligu/matterbr

A shelly device gen. 1 or 2 or 3 or BLU.

For Gen. 1 devices:
## How to add a device

Verify that enableMdnsDiscover and enableStorageDiscover are selected in the plugin configuration. Restart matterbridge (the mdns discovery is active for the first 10 minutes) and the devices will be discovered.

Follow these guidelines for specific devices.

### Add Gen. 1 devices

- CoIoT: the CoIoT (coap) service must be enabled in the settings of the device and the CoIoT peer must be mcast. If mcast is not working on your network put in the peer field `<matterbridge-ipv4>:5683` (where `<matterbridge-ipv4>` is the ipv4 address of Matterbridge e.g. 192.168.1.100:5683). You can find the matterbridge ipv4Address address in the frontend or in the log. Multicast may not work for all networks due to router or access poit configuration or network topology (I cannot help you on this, just check your router or access point configuration). If CoIoT is not configured correctly you will not receive any update from the device.

For wifi battery-powered devices:
### Add Gen. 1 battery-powered devices

- only for the first time, when you want to register them: check that enableMdnsDiscover and enableStorageDiscover are flagged in the plugin configuration. Restart matterbridge (the mdns discovery is active for the first 10 minutes) and awake each device you want to register pressing the device button.

- Gen. 1: only for the first time, when you want to register them: check that enableMdnsDiscover and enableStorageDiscover are flagged in the plugin configuration. Restart matterbridge (the mdns discovery is active for the first 10 minutes) and awake each device you want to register pressing the device button.
### Add Gen. 2 or 3 battery-powered devices

- Gen. 2/3: in the device web page go to "Settings", then "Outbound websocket" and enable it, select "TLS no validation" and put in the server field `ws://<matterbridge-ipv4>:8485` (where `<matterbridge-ipv4>` is the ipv4 address of Matterbridge e.g. ws://192.168.1.100:8485). You can find the matterbridge ipv4Address address in the frontend or in the log. Then, only for the first time, when you want to register them: check that enableMdnsDiscover and enableStorageDiscover are flagged in the plugin configuration. Restart matterbridge (the mdns discovery is active for the first 10 minutes) and awake each device you want to register pressing the device button.
- in the device web page go to "Settings", then "Outbound websocket" and enable it, select "TLS no validation" and put in the server field `ws://<matterbridge-ipv4>:8485` (where `<matterbridge-ipv4>` is the ipv4 address of Matterbridge e.g. ws://192.168.1.100:8485). You can find the matterbridge ipv4Address address in the frontend or in the log. Then, only for the first time, when you want to register them: check that enableMdnsDiscover and enableStorageDiscover are flagged in the plugin configuration. Restart matterbridge (the mdns discovery is active for the first 10 minutes) and awake each device you want to register pressing the device button.

For BLU devices:
### Add BLU devices

- BLU devices are supported through a local Shelly device acting as a ble gateway. To enable this feature, choose one or more devices that have the ble component and support the ble gateway (e.g. PRO and gen. 3 devices). In the gateway device web page, enable both "Enable Bluetooth" and "Enable Bluetooth gateway". Then, go to the "Components" section and add your BLU devices in "Bluetooth (BTHome) devices". Give a meaningful name to your device if desired and restart Matterbridge.
See the full guide here: https://github.com/Luligu/matterbridge-shelly/blob/dev/BLU.md
Expand Down
Loading

0 comments on commit 0bd3215

Please sign in to comment.