Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/devices/schneider_electric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2197,6 +2197,7 @@ export const definitions: DefinitionWithExtend[] = [
tz.schneider_pilot_mode,
tz.schneider_thermostat_keypad_lockout,
tz.thermostat_temperature_display_mode,
tz.thermostat_running_state,
],
exposes: [
e.binary("keypad_lockout", ea.STATE_SET, "lock1", "unlock").withDescription("Enables/disables physical input on the device"),
Expand All @@ -2210,7 +2211,9 @@ export const definitions: DefinitionWithExtend[] = [
.withSetpoint("occupied_cooling_setpoint", 4, 30, 0.5)
.withLocalTemperature()
.withSystemMode(["off", "heat", "cool"])
.withPiHeatingDemand(),
.withRunningState(["idle", "heat", "cool"])
.withPiHeatingDemand()
.withPiCoolingDemand(),
e.temperature(),
e.occupancy(),
],
Expand All @@ -2220,6 +2223,7 @@ export const definitions: DefinitionWithExtend[] = [
const endpoint4 = device.getEndpoint(4);
await reporting.bind(endpoint1, coordinatorEndpoint, ["hvacThermostat"]);
await reporting.thermostatPIHeatingDemand(endpoint1);
await reporting.thermostatPICoolingDemand(endpoint1);
await reporting.thermostatOccupiedHeatingSetpoint(endpoint1);
await reporting.thermostatOccupiedCoolingSetpoint(endpoint1);
await reporting.temperature(endpoint2);
Expand Down
12 changes: 12 additions & 0 deletions src/lib/exposes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,18 @@ export class Climate extends Base {
return this;
}

withPiCoolingDemand(access = a.STATE) {
this.addFeature(
new Numeric("pi_cooling_demand", access)
.withLabel("PI cooling demand")
.withValueMin(0)
.withValueMax(100)
.withUnit("%")
.withDescription("Position of the valve (= demanded cooling) where 0% is fully closed and 100% is fully open"),
);
return this;
}

withControlSequenceOfOperation(modes: string[], access = a.STATE) {
const allowed = [
"cooling_only",
Expand Down