Skip to content

Commit

Permalink
Update 19.12. (#235)
Browse files Browse the repository at this point in the history
* Matter.js update

* Adjust display max size

* Round battery value correctly

* Fix discovery start

* Readme
  • Loading branch information
Apollon77 authored Dec 19, 2024
1 parent 06a13a1 commit b21e58d
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 66 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,12 @@ TBD
-->

## Changelog

### __WORK IN PROGRESS__
* (@bluefox) Makes the Adapter UI also available as standalone tab
* (@bluefox) Added error details when adding the same state twice to a bridge or device
* (@Apollon77) Fixes discovery start in UI

### 0.2.9 (2024-12-18)
* (@Apollon77) When Get and set states are separated then also update set state with new values
* (@Apollon77) Node details dialog in controller now exposes some more Battery information
Expand Down
118 changes: 59 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
"url": "https://github.com/ioBroker/ioBroker.matter"
},
"optionalDependencies": {
"@matter/nodejs-ble": "0.12.0-alpha.0-20241218-de74d9dc7"
"@matter/nodejs-ble": "0.12.0-alpha.0-20241219-af74a6a14"
},
"dependencies": {
"@iobroker/adapter-core": "^3.2.3",
"@iobroker/i18n": "^0.3.1",
"@iobroker/dm-utils": "^0.6.11",
"@iobroker/type-detector": "^4.1.1",
"@matter/main": "0.12.0-alpha.0-20241218-de74d9dc7",
"@matter/nodejs": "0.12.0-alpha.0-20241218-de74d9dc7",
"@project-chip/matter.js": "0.12.0-alpha.0-20241218-de74d9dc7",
"@matter/main": "0.12.0-alpha.0-20241219-af74a6a14",
"@matter/nodejs": "0.12.0-alpha.0-20241219-af74a6a14",
"@project-chip/matter.js": "0.12.0-alpha.0-20241219-af74a6a14",
"axios": "^1.7.9",
"jsonwebtoken": "^9.0.2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/DeviceManagement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,14 +404,14 @@ class MatterAdapterDeviceManagement extends DeviceManagement<MatterAdapter> {
},
{
data: { debugInfos },
maxWidth: 'md',
title: this.#adapter.getText('Debug Infos'),
buttons: [
{
type: 'cancel',
label: this.#adapter.getText('Close'),
},
],
maxWidth: 'lg',
},
);

Expand Down
2 changes: 1 addition & 1 deletion src/matter/ControllerNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Controller implements GeneralNode {
// Discover for Matter devices in the IP and potentially BLE network
// Response is handled by method and runs asynchronous
await this.#discovery(obj);
break;
return;
case 'controllerDiscoveryStop':
// Stop Discovery
if (this.#discovering) {
Expand Down
2 changes: 1 addition & 1 deletion src/matter/to-iobroker/GenericDeviceToIoBroker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ export abstract class GenericDeviceToIoBroker {
if (typeof voltage === 'number') {
states.batteryVoltage = `${(voltage / 1_000).toFixed(2)} V${typeof percentRemaining === 'number' ? ` (${percentRemaining}%)` : ''}`;
} else if (typeof percentRemaining === 'number') {
states.batteryVoltage = `${percentRemaining}%`;
states.batteryVoltage = `${Math.round(percentRemaining / 2)}%`;
}
}
}
Expand Down

0 comments on commit b21e58d

Please sign in to comment.