This commit is contained in:
omenem 2020-04-27 19:04:52 +02:00
parent 3af4b24a12
commit 5fc63edf4f
2 changed files with 11 additions and 0 deletions

View file

@ -28,6 +28,7 @@ public class ThermostatController {
newT.setId(t.getId());
newT.setName(t.getName());
newT.setRoomId(t.getRoomId());
newT.setMeasuredTemperature(t.getMeasuredTemperature());
newT.setUseExternalSensors(t.isUseExternalSensors());
newT.setOn(t.isTurnOn());

View file

@ -22,6 +22,8 @@ public class ThermostatSaveRequest {
@NotNull private boolean useExternalSensors;
@NotNull private BigDecimal measuredTemperature;
/** State of this thermostat */
@NotNull private boolean turnOn;
@ -72,4 +74,12 @@ public class ThermostatSaveRequest {
public void setId(long id) {
this.id = id;
}
public BigDecimal getMeasuredTemperature() {
return measuredTemperature;
}
public void setMeasuredTemperature(BigDecimal measuredTemperature) {
this.measuredTemperature = measuredTemperature;
}
}