feat: add floating room climate cards and fix Symcon humidity selection

This commit is contained in:
jhartworks committed 2026-11-09 17:04:46 +01:00
1 parent 24188f96f7
commit ff54f4461a
21 files changed
+764 -398

No files matched your search

+14
View File
@@ -21,6 +21,20 @@ test("a KNX numeric temperature remains selectable and readable even with an inf
assert.equal(roomClimateValue(hass, null, { ...room, climate: { temperature: "sensor.fahrenheit" } }, "temperature"), 20);
});
test("manual Symcon climate assignment accepts unclassified numeric values without relaxing automatic detection", () => {
const h = hassOf([
entity("cover.knx", "open", { symcon_id: 12, symcon_variable_type: 2, symcon_numeric_value: 48.5 }),
entity("sensor.percent", "50", { unit_of_measurement: "%" }),
entity("sensor.soil", "50", { device_class: "moisture", unit_of_measurement: "%" }),
entity("sensor.text", "50", { symcon_id: 13, symcon_variable_type: 3, unit_of_measurement: "%" }),
]);
assert.equal(isClimateValueSensor(h, "cover.knx", "humidity", true), true);
assert.equal(isClimateValueSensor(h, "cover.knx", "humidity"), false);
assert.equal(isClimateValueSensor(h, "sensor.percent", "humidity"), true);
assert.equal(isClimateValueSensor(h, "sensor.soil", "humidity"), false);
assert.equal(isClimateValueSensor(h, "sensor.text", "humidity", true), false);
});
const lounge = hassOf(
[
entity("light.ceiling", "on"),