@riddix/hamh 2.1.0-alpha.510 → 2.1.0-alpha.511
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/backend/cli.js
CHANGED
|
@@ -147775,7 +147775,8 @@ WARNING: ${includeIdentity ? "This backup contains sensitive Matter identity dat
|
|
|
147775
147775
|
energyEntity: config10.energyEntity,
|
|
147776
147776
|
suctionLevelEntity: config10.suctionLevelEntity,
|
|
147777
147777
|
mopIntensityEntity: config10.mopIntensityEntity,
|
|
147778
|
-
valetudoIdentifier: config10.valetudoIdentifier
|
|
147778
|
+
valetudoIdentifier: config10.valetudoIdentifier,
|
|
147779
|
+
coverSwapOpenClose: config10.coverSwapOpenClose
|
|
147779
147780
|
});
|
|
147780
147781
|
mappingsRestored++;
|
|
147781
147782
|
}
|
|
@@ -148671,7 +148672,8 @@ function entityMappingApi(mappingStorage) {
|
|
|
148671
148672
|
mopIntensityEntity: body.mopIntensityEntity,
|
|
148672
148673
|
customServiceAreas: body.customServiceAreas,
|
|
148673
148674
|
customFanSpeedTags: body.customFanSpeedTags,
|
|
148674
|
-
valetudoIdentifier: body.valetudoIdentifier
|
|
148675
|
+
valetudoIdentifier: body.valetudoIdentifier,
|
|
148676
|
+
coverSwapOpenClose: body.coverSwapOpenClose
|
|
148675
148677
|
};
|
|
148676
148678
|
const config10 = await mappingStorage.setMapping(request);
|
|
148677
148679
|
res.status(200).json(config10);
|
|
@@ -149132,7 +149134,8 @@ function configToProfileEntry(config10) {
|
|
|
149132
149134
|
mopIntensityEntity: config10.mopIntensityEntity,
|
|
149133
149135
|
customServiceAreas: config10.customServiceAreas,
|
|
149134
149136
|
customFanSpeedTags: config10.customFanSpeedTags,
|
|
149135
|
-
valetudoIdentifier: config10.valetudoIdentifier
|
|
149137
|
+
valetudoIdentifier: config10.valetudoIdentifier,
|
|
149138
|
+
coverSwapOpenClose: config10.coverSwapOpenClose
|
|
149136
149139
|
};
|
|
149137
149140
|
}
|
|
149138
149141
|
function mappingProfileApi(mappingStorage) {
|
|
@@ -149251,7 +149254,8 @@ function mappingProfileApi(mappingStorage) {
|
|
|
149251
149254
|
mopIntensityEntity: entry.mopIntensityEntity,
|
|
149252
149255
|
customServiceAreas: entry.customServiceAreas,
|
|
149253
149256
|
customFanSpeedTags: entry.customFanSpeedTags,
|
|
149254
|
-
valetudoIdentifier: entry.valetudoIdentifier
|
|
149257
|
+
valetudoIdentifier: entry.valetudoIdentifier,
|
|
149258
|
+
coverSwapOpenClose: entry.coverSwapOpenClose
|
|
149255
149259
|
});
|
|
149256
149260
|
applied++;
|
|
149257
149261
|
} catch (e) {
|
|
@@ -152686,9 +152690,10 @@ var EntityMappingStorage = class extends Service {
|
|
|
152686
152690
|
(a) => a.name?.trim() && a.service?.trim()
|
|
152687
152691
|
) ?? void 0,
|
|
152688
152692
|
customFanSpeedTags: request.customFanSpeedTags && Object.keys(request.customFanSpeedTags).length > 0 ? request.customFanSpeedTags : void 0,
|
|
152689
|
-
valetudoIdentifier: request.valetudoIdentifier?.trim() || void 0
|
|
152693
|
+
valetudoIdentifier: request.valetudoIdentifier?.trim() || void 0,
|
|
152694
|
+
coverSwapOpenClose: request.coverSwapOpenClose || void 0
|
|
152690
152695
|
};
|
|
152691
|
-
if (!config10.matterDeviceType && !config10.customName && config10.disabled !== true && !config10.filterLifeEntity && !config10.cleaningModeEntity && !config10.humidityEntity && !config10.batteryEntity && !config10.roomEntities && !config10.disableLockPin && !config10.powerEntity && !config10.energyEntity && !config10.pressureEntity && !config10.suctionLevelEntity && !config10.mopIntensityEntity && (!config10.customServiceAreas || config10.customServiceAreas.length === 0) && (!config10.customFanSpeedTags || Object.keys(config10.customFanSpeedTags).length === 0) && !config10.valetudoIdentifier) {
|
|
152696
|
+
if (!config10.matterDeviceType && !config10.customName && config10.disabled !== true && !config10.filterLifeEntity && !config10.cleaningModeEntity && !config10.humidityEntity && !config10.batteryEntity && !config10.roomEntities && !config10.disableLockPin && !config10.powerEntity && !config10.energyEntity && !config10.pressureEntity && !config10.suctionLevelEntity && !config10.mopIntensityEntity && (!config10.customServiceAreas || config10.customServiceAreas.length === 0) && (!config10.customFanSpeedTags || Object.keys(config10.customFanSpeedTags).length === 0) && !config10.valetudoIdentifier && !config10.coverSwapOpenClose) {
|
|
152692
152697
|
bridgeMap.delete(request.entityId);
|
|
152693
152698
|
} else {
|
|
152694
152699
|
bridgeMap.set(request.entityId, config10);
|
|
@@ -171114,6 +171119,9 @@ var adjustPositionForWriting2 = (position, agent) => {
|
|
|
171114
171119
|
return adjustPositionForWriting(position, featureFlags, matterSem);
|
|
171115
171120
|
};
|
|
171116
171121
|
var shouldSwapOpenClose = (agent) => {
|
|
171122
|
+
const homeAssistant = agent.get(HomeAssistantEntityBehavior);
|
|
171123
|
+
const entitySwap = homeAssistant.state.mapping?.coverSwapOpenClose;
|
|
171124
|
+
if (entitySwap !== void 0) return entitySwap;
|
|
171117
171125
|
const { featureFlags } = agent.env.get(BridgeDataProvider);
|
|
171118
171126
|
return featureFlags?.coverSwapOpenClose === true;
|
|
171119
171127
|
};
|