fix: support Symcon numeric dimmers and independent blind slat controls
This commit is contained in:
1 parent
b934f78b9a
commit
24188f96f7
36 files changed
+1105
-683
No files matched your search
@@ -184,3 +184,16 @@ test("a wide window's second blind and a venetian blind's slats", () => {
|
||||
assert.equal(state.slats, 0.3);
|
||||
assert.equal(openingState(hass, { cover: "cover.right", contact: null, tilt: null }).cover2, undefined, "no second blind");
|
||||
});
|
||||
|
||||
test("a separate integer slat variable changes the 3D slats independently of the blind height", () => {
|
||||
const hass = hassOf([
|
||||
entity("cover.height", "open", { current_position: 40 }),
|
||||
entity("cover.slats", "open", { current_position: 75 }),
|
||||
]);
|
||||
const state = openingState(hass, { cover: "cover.height", coverTilt: "cover.slats", contact: null, tilt: null });
|
||||
assert.equal(state.cover, 0.6);
|
||||
assert.equal(state.slats, 0.75);
|
||||
const double = openingState(hass, { cover: "cover.height", coverTilt: "cover.slats", cover2: "cover.slats", cover2Tilt: "cover.height", contact: null, tilt: null });
|
||||
assert.equal(double.slats, 0.75);
|
||||
assert.equal(double.slats2, 0.4);
|
||||
});
|
||||
Reference in new issue
Block a user