@riddix/hamh 2.1.0-alpha.441 → 2.1.0-alpha.443
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
|
@@ -146694,7 +146694,7 @@ var init_bridge_config_schema = __esm({
|
|
|
146694
146694
|
title: "Auto Humidity Mapping",
|
|
146695
146695
|
description: "Automatically combine humidity sensors with temperature sensors from the same Home Assistant device. When enabled, humidity sensors will be merged into temperature sensors to create combined TemperatureHumiditySensor devices.",
|
|
146696
146696
|
type: "boolean",
|
|
146697
|
-
default:
|
|
146697
|
+
default: true
|
|
146698
146698
|
},
|
|
146699
146699
|
autoPressureMapping: {
|
|
146700
146700
|
title: "Auto Pressure Mapping",
|
|
@@ -168641,9 +168641,9 @@ var WindowCoveringServerBase = class _WindowCoveringServerBase extends FeaturedB
|
|
|
168641
168641
|
`handleMovement: type=${MovementType[type]}, direction=${MovementDirection[direction]}, target=${targetPercent100ths}, currentLift=${currentLift}, currentTilt=${currentTilt}, absolutePosition=${this.features.absolutePosition}`
|
|
168642
168642
|
);
|
|
168643
168643
|
if (type === MovementType.Lift) {
|
|
168644
|
-
if (
|
|
168644
|
+
if (targetPercent100ths === 0) {
|
|
168645
168645
|
this.handleLiftOpen();
|
|
168646
|
-
} else if (
|
|
168646
|
+
} else if (targetPercent100ths === 1e4) {
|
|
168647
168647
|
this.handleLiftClose();
|
|
168648
168648
|
} else if (targetPercent100ths != null && this.features.absolutePosition) {
|
|
168649
168649
|
this.handleGoToLiftPosition(targetPercent100ths);
|
|
@@ -168653,9 +168653,9 @@ var WindowCoveringServerBase = class _WindowCoveringServerBase extends FeaturedB
|
|
|
168653
168653
|
this.handleLiftClose();
|
|
168654
168654
|
}
|
|
168655
168655
|
} else if (type === MovementType.Tilt) {
|
|
168656
|
-
if (
|
|
168656
|
+
if (targetPercent100ths === 0) {
|
|
168657
168657
|
this.handleTiltOpen();
|
|
168658
|
-
} else if (
|
|
168658
|
+
} else if (targetPercent100ths === 1e4) {
|
|
168659
168659
|
this.handleTiltClose();
|
|
168660
168660
|
} else if (targetPercent100ths != null && this.features.absolutePosition) {
|
|
168661
168661
|
this.handleGoToTiltPosition(targetPercent100ths);
|
|
@@ -175462,15 +175462,15 @@ var BridgeRegistry = class _BridgeRegistry {
|
|
|
175462
175462
|
}
|
|
175463
175463
|
/**
|
|
175464
175464
|
* Check if auto humidity mapping is enabled for this bridge.
|
|
175465
|
-
* Default:
|
|
175465
|
+
* Default: true (enabled by default).
|
|
175466
175466
|
* When enabled, humidity sensors on the same device as a temperature sensor
|
|
175467
175467
|
* are combined into a single TemperatureHumiditySensor endpoint.
|
|
175468
175468
|
* Note: Apple Home does not display humidity on TemperatureSensorDevice
|
|
175469
|
-
* endpoints, so users on Apple Home should
|
|
175469
|
+
* endpoints, so users on Apple Home should explicitly disable this.
|
|
175470
175470
|
* See: https://github.com/RiDDiX/home-assistant-matter-hub/issues/133
|
|
175471
175471
|
*/
|
|
175472
175472
|
isAutoHumidityMappingEnabled() {
|
|
175473
|
-
return this.dataProvider.featureFlags?.autoHumidityMapping
|
|
175473
|
+
return this.dataProvider.featureFlags?.autoHumidityMapping !== false || this.dataProvider.featureFlags?.autoComposedDevices === true;
|
|
175474
175474
|
}
|
|
175475
175475
|
/**
|
|
175476
175476
|
* Find a humidity sensor entity that belongs to the same HA device.
|