Skip to content

Commit efb4296

Browse files
committed
add more limits
1 parent 18e8a19 commit efb4296

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/_templates.tsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ scalar temp1 extends D1C;
9090

9191
/** temperature */
9292
@unit("°C")
93-
@minValue(-50)
93+
@minValue(-50) @maxValue(180)
9494
scalar temp2 extends D2B;
9595

9696
/** pressure */
9797
@unit("bar")
98-
@minValue(0)
98+
@minValue(0) @maxValue(70)
9999
scalar press extends D2B;
100100

101101
/** time */

src/vaillant/_templates.tsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ scalar pressv extends EXP;
3535

3636
/** percentage */
3737
@unit("%")
38+
@minValue(0) @maxValue(100)
3839
scalar percentv extends EXP;
3940

4041
/** date */
@@ -255,6 +256,7 @@ scalar uin100 extends UIN;
255256
/** Heating curve */
256257
@divisor(100)
257258
@maxValue(500)
259+
@step(10)
258260
scalar curve extends UIN;
259261

260262
/** phase 1 state */
@@ -354,6 +356,7 @@ scalar energy4 extends ULG;
354356

355357
@unit("kWh")
356358
@divisor(1000)
359+
@minValue(0)
357360
scalar energye extends EXP;
358361

359362
/** start count */

0 commit comments

Comments
 (0)