Skip to content

Commit

Permalink
Release 1.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Luligu committed Jun 30, 2024
1 parent 8a180cb commit 583dfa3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-buildx-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
--platform linux/amd64,linux/arm64,linux/arm/v7 \
-f docker/Dockerfile.main \
-t luligu/matterbridge:latest \
-t luligu/matterbridge:1.3.6 \
-t luligu/matterbridge:1.3.7 \
--push .
docker manifest inspect luligu/matterbridge:latest
timeout-minutes: 60
6 changes: 3 additions & 3 deletions src/matterbridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3396,10 +3396,10 @@ export class Matterbridge extends EventEmitter {
res.json({ message: 'Command received' });
});

// Fallback for routing (must be the last route but it should not be used because the frontend is static)
// Fallback for routing (must be the last route)
this.expressApp.get('*', (req, res) => {
this.log.warn('The frontend sent:', req.url);
this.log.warn('Response send file:', path.join(this.rootDirectory, 'frontend/build/index.html'));
this.log.debug('The frontend sent:', req.url);
this.log.debug('Response send file:', path.join(this.rootDirectory, 'frontend/build/index.html'));
res.sendFile(path.join(this.rootDirectory, 'frontend/build/index.html'));
});

Expand Down
15 changes: 5 additions & 10 deletions src/matterbridgeDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1718,8 +1718,7 @@ export class MatterbridgeDevice extends extendPublicHandlerMethods<typeof Device
tilt: 0,
});
}

// console.log(`Set WindowCovering initial currentPositionLiftPercent100ths and targetPositionLiftPercent100ths to ${position} and operationalStatus to Stopped.`);
this.log.debug(`Set WindowCovering currentPositionLiftPercent100ths and targetPositionLiftPercent100ths to ${position} and operationalStatus to Stopped.`);
}
}

Expand All @@ -1741,8 +1740,7 @@ export class MatterbridgeDevice extends extendPublicHandlerMethods<typeof Device
tilt: 0,
});
}

// console.log(`Set WindowCovering currentPositionLiftPercent100ths: ${current}, targetPositionLiftPercent100ths: ${target} and operationalStatus: ${status}.`);
this.log.debug(`Set WindowCovering currentPositionLiftPercent100ths: ${current}, targetPositionLiftPercent100ths: ${target} and operationalStatus: ${status}.`);
}

/**
Expand All @@ -1754,8 +1752,7 @@ export class MatterbridgeDevice extends extendPublicHandlerMethods<typeof Device
const windowCovering = endpoint.getClusterServer(WindowCoveringCluster.with(WindowCovering.Feature.Lift, WindowCovering.Feature.PositionAwareLift, WindowCovering.Feature.AbsolutePosition));
if (!windowCovering) return;
windowCovering.setOperationalStatusAttribute({ global: status, lift: status, tilt: 0 });

// console.log(`Set WindowCovering operationalStatus: ${status}`);
this.log.debug(`Set WindowCovering operationalStatus: ${status}`);
}

/**
Expand All @@ -1767,8 +1764,7 @@ export class MatterbridgeDevice extends extendPublicHandlerMethods<typeof Device
const windowCovering = endpoint.getClusterServer(WindowCoveringCluster.with(WindowCovering.Feature.Lift, WindowCovering.Feature.PositionAwareLift, WindowCovering.Feature.AbsolutePosition));
if (!windowCovering) return undefined;
const status = windowCovering.getOperationalStatusAttribute();

// console.log(`Get WindowCovering operationalStatus: ${status.global}`);
this.log.debug(`Get WindowCovering operationalStatus: ${status.global}`);
return status.global;
}

Expand All @@ -1783,8 +1779,7 @@ export class MatterbridgeDevice extends extendPublicHandlerMethods<typeof Device
if (!windowCovering) return;
windowCovering.setCurrentPositionLiftPercent100thsAttribute(position);
windowCovering.setTargetPositionLiftPercent100thsAttribute(position);

// console.log(`Set WindowCovering currentPositionLiftPercent100ths: ${position} and targetPositionLiftPercent100ths: ${position}.`);
this.log.debug(`Set WindowCovering currentPositionLiftPercent100ths: ${position} and targetPositionLiftPercent100ths: ${position}.`);
}

/**
Expand Down

0 comments on commit 583dfa3

Please sign in to comment.