Skip to content

Commit e175933

Browse files
authored
Merge pull request #132 from Luligu/dev
Release 2.0.1
2 parents a8cd7d5 + 370860d commit e175933

11 files changed

Lines changed: 681 additions & 117 deletions

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ You can also sponsor Tamer here https://buymeacoffee.com/6sjde6vkzl for his inva
88

99
### Breaking Changes
1010

11-
Since the plugin config got very complex and also confusing, from this release same options have been removed or simplified:
11+
Since the plugin config got very complex and also confusing, from release 2.0.0 same options have been removed or simplified:
1212

1313
Removed options:
1414

@@ -32,6 +32,20 @@ Expert mode:
3232

3333
The expertMode option has been added to show an advanced or simplified config.
3434

35+
## [2.0.1] - 2025-03-02
36+
37+
### Changed
38+
39+
- [blugateway]: The BLU gateways can now be disabled (with whiteList or blackList). The paired BLU devices are exposed even if the gateway is disabled.
40+
- [mDns]: The MdnsScanner doesn't stop anymore after 10 minutes. Once all the devices have been discovered, it is possible to disable it in the config to reduce the network traffic.
41+
- [platform]: Refactor select devices and entities for the select in the frontend.
42+
- [package]: Updated dependencies.
43+
- [plugin]: Requires Matterbridge 2.2.1.
44+
45+
<a href="https://www.buymeacoffee.com/luligugithub">
46+
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
47+
</a>
48+
3549
## [2.0.0] - 2025-02-27
3650

3751
### Added

COMPONENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ To expose only the temperature and humidity components while blacklisting all se
5454
"entityBlackList": ["PowerMeter"]
5555
```
5656

57-
## Example 6: How to disable for a single device
57+
## Example 6: How to disable the electrical measurements for a single device
5858

5959
```
6060
"deviceEntityBlackList": { "shellyplusrgbwpm-ECC9FF4CEAF0": ["PowerMeter"] }

README.md

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ Features:
2121
- Shelly wifi battery-powered devices are supported.
2222
- Shelly wifi battery-powered devices with sleep_mode are supported.
2323
- Shelly BLU devices are supported through local devices configured as ble gateway.
24-
- Discovered shellies are stored in local storage for quick loading on startup.
24+
- Discovered shellies are stored in local storage and cached for fast loading on startup.
2525
- The components exposed are Light (with brightness and RGB color), Switch, Relay, Roller, Cover, PowerMeter, Temperature, Humidity, Illuminance, Thermostat, Button and Input.
2626
- PowerMeters expose the electrical measurements with the electricalSensor device type (suppoerted by Home Assistant and partially by SmartThings), waiting for the controllers to upgrade to the Matter 1.3 specs.
2727
- Shellies are controlled locally, eliminating the need for cloud or MQTT (which can both be disabled).
2828
- Shelly Gen 1 devices are controlled using the CoIoT protocol (see the note below).
2929
- Shelly Gen 2 and Gen 3 devices are controlled using WebSocket.
30-
- The Matter device takes the name configured in the Shelly device's web page.
30+
- The Matter device takes the name configured in the Shelly device's web page (each Shelly device must have a different name).
3131
- Each device can be blacklisted or whitelisted using its name, id or mac address. Refer to the [COMPONENTS.md documentation.](https://github.com/Luligu/matterbridge-shelly/blob/main/COMPONENTS.md)
3232
- Device components can be blacklisted globally or on a per-device basis. Refer to the [COMPONENTS.md documentation.](https://github.com/Luligu/matterbridge-shelly/blob/main/COMPONENTS.md)
33-
- Devices ids can be selected from a list in the config editor.
33+
- Devices ids can be selected from a list in the config editor or in the Devices panel on the Home page.
3434
- If the device has a firmware update available, a message is displayed.
3535
- If the device's CoIoT protocol is not correctly configured, a message is displayed.
3636
- If the device cover/roller component is not calibrated, a message is displayed.
@@ -87,11 +87,11 @@ Follow these guidelines for specific devices.
8787

8888
### Add Gen. 1 battery-powered devices
8989

90-
- 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.
90+
- only for the first time, when you want to register them: check that enableMdnsDiscover and enableStorageDiscover are flagged in the plugin configuration. Restart matterbridge and awake each device you want to register pressing the device button.
9191

9292
### Add Gen. 2 or 3 battery-powered devices
9393

94-
- 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.
94+
- 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 and awake each device you want to register pressing the device button.
9595

9696
### Add BLU devices
9797

@@ -161,12 +161,6 @@ The devices in the list will be exposed as switches (don't use it for Alexa).
161161

162162
The devices in the list will be exposed as lights.
163163

164-
### exposeInput
165-
166-
Choose how to expose the shelly inputs: disabled, contact, momentary or latching switch (default momentary).
167-
168-
Is useful only if you create automations on the controller side or you need the controller history.
169-
170164
### inputContactList
171165

172166
The devices in the list will expose the Input component as a contact sensor.
@@ -199,8 +193,6 @@ For shelly wifi devices use the device name (i.e. the name defined in the device
199193

200194
For shelly BLU devices use the device name (i.e. the name defined in the device gateway web UI) or the device mac addr (i.e. 7c:c6:b6:65:2d:87).
201195

202-
If you add a BLU device in the white list, you need to put also its BLU gateway on the list.
203-
204196
### entityBlackList
205197

206198
The components in the list will not be exposed for all devices. Use the component name (i.e. Temperature).
@@ -223,13 +215,13 @@ The devices in the list will not be loaded from the cache. Use the device id (e.
223215
### deviceIp
224216

225217
You can put there one of more of your devices if they have problem with mdns.
226-
Don't use it unless is needed cause the IP address you add here is fixed.
218+
Don't use it unless is needed cause the IP address you add here is static.
227219
You also need to enable the enableConfigDiscover option.
228220
E.g. "shelly1minig3-543204547478": "192.168.1.221".
229221

230222
### enableMdnsDiscover
231223

232-
Should always be enabled to discover new devices. It turns off automatically after 10 minutes to reduce network traffic.
224+
Should always be enabled to discover new devices.
233225

234226
Once a device is discovered, it is added to the shelly storage.
235227

@@ -241,7 +233,7 @@ Should always be enabled to automatically add all the devices previously discove
241233

242234
### resetStorageDiscover
243235

244-
Reset the storage discovery on the next restart (it will clear the storage of already discovered devices and the cache files).
236+
Reset the storage on the next restart (it will clear the storage and the cache files).
245237

246238
### enableConfigDiscover
247239

@@ -291,17 +283,11 @@ These are the config values:
291283
"type": "DynamicPlatform",
292284
"username": "<USERNAME>",
293285
"password": "<PASSWORD>",
294-
"exposeSwitch": "switch" | "light" | "outlet"
295286
"switchList": []
296287
"lightList": []
297-
"outletList": []
298-
"exposeInput": "disabled" | "contact" | "momentary" | "latching"
299288
"inputContactList": []
300289
"inputMomentaryList": []
301290
"inputLatchingList": []
302-
"exposeInputEvent": "disabled" | "momentary"
303-
"inputEventList": []
304-
"exposePowerMeter": "disabled" | "matter13"
305291
"blackList": [],
306292
"whiteList": [],
307293
"entityBlackList": [],
@@ -322,7 +308,6 @@ These are the config values:
322308
"debugMdns": false,
323309
"debugCoap": false,
324310
"debugWs": false,
325-
"interfaceName": ""
326311
"unregisterOnShutdown": false,
327312
}
328313
```

matterbridge-shelly.schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"selectFrom": "serial"
7777
},
7878
"whiteList": {
79-
"description": "Only the devices in the list will be exposed. Use the device id (e.g. shellyplus2pm-5443B23D81F8) or BLU addr (i.e. 7c:c6:b6:65:2d:87). If you add a BLU device in the white list, you need to put also its BLU gateway on the list.",
79+
"description": "Only the devices in the list will be exposed. Use the device id (e.g. shellyplus2pm-5443B23D81F8) or BLU addr (i.e. 7c:c6:b6:65:2d:87).",
8080
"type": "array",
8181
"items": {
8282
"type": "string"
@@ -127,7 +127,7 @@
127127
}
128128
},
129129
"enableMdnsDiscover": {
130-
"description": "Enable the mdns discovery for shelly devices (it will stop after 10 minutes)",
130+
"description": "Enable the mdns discovery for shelly devices",
131131
"type": "boolean",
132132
"default": true
133133
},
@@ -137,7 +137,7 @@
137137
"default": true
138138
},
139139
"resetStorageDiscover": {
140-
"description": "Reset the storage discovery on the next restart (it will clear the storage of already discovered devices and the cache files)",
140+
"description": "Reset the storage on the next restart (it will clear the storage and the cache files)",
141141
"type": "boolean",
142142
"default": false
143143
},

0 commit comments

Comments
 (0)