matterbridge-zigbee2mqtt 2.5.0-dev.6 → 2.5.0-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entity.js +4 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/entity.js
CHANGED
|
@@ -1198,6 +1198,8 @@ export class ZigbeeDevice extends ZigbeeEntity {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
if (zigbeeDevice.bridgedDevice.hasClusterServer(WindowCoveringCluster.id)) {
|
|
1200
1200
|
const reversed = zigbeeDevice.lastPayload.motor_direction === 'reversed';
|
|
1201
|
+
if (reversed)
|
|
1202
|
+
zigbeeDevice.log.debug(`Device ${zigbeeDevice.ien}${device.friendly_name}${rs}${db} has reversed motor direction. Commands will be reversed.`);
|
|
1201
1203
|
zigbeeDevice.bridgedDevice.addCommandHandler('upOrOpen', async () => {
|
|
1202
1204
|
zigbeeDevice.log.debug(`Command upOrOpen called for ${zigbeeDevice.ien}${device.friendly_name}${rs}${db}`);
|
|
1203
1205
|
if (zigbeeDevice.propertyMap.has('position'))
|
|
@@ -1220,6 +1222,8 @@ export class ZigbeeDevice extends ZigbeeEntity {
|
|
|
1220
1222
|
zigbeeDevice.publishCommand('stopMotion', device.friendly_name, { state: 'STOP' });
|
|
1221
1223
|
});
|
|
1222
1224
|
zigbeeDevice.bridgedDevice.addCommandHandler('goToLiftPercentage', async ({ request: { liftPercent100thsValue } }) => {
|
|
1225
|
+
if (reversed)
|
|
1226
|
+
liftPercent100thsValue = 10000 - liftPercent100thsValue;
|
|
1223
1227
|
zigbeeDevice.log.debug(`Command goToLiftPercentage called for ${zigbeeDevice.ien}${device.friendly_name}${rs}${db} request liftPercent100thsValue: ${liftPercent100thsValue}`);
|
|
1224
1228
|
if (zigbeeDevice.propertyMap.has('position'))
|
|
1225
1229
|
await zigbeeDevice.bridgedDevice?.setAttribute(WindowCoveringCluster.id, 'targetPositionLiftPercent100ths', liftPercent100thsValue, zigbeeDevice.log);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-zigbee2mqtt",
|
|
3
|
-
"version": "2.5.0-dev.
|
|
3
|
+
"version": "2.5.0-dev.7",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-zigbee2mqtt",
|
|
9
|
-
"version": "2.5.0-dev.
|
|
9
|
+
"version": "2.5.0-dev.7",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"moment": "2.30.1",
|