Skip to content

Commit 8c58c94

Browse files
committed
Add basic support for b516 energy statistics
Closes #490
1 parent 909589f commit 8c58c94

File tree

3 files changed

+114
-0
lines changed

3 files changed

+114
-0
lines changed

src/vaillant/08.bai.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import "./bai.0010021901_inc.tsp";
2020
import "./bai.0010021961_inc.tsp";
2121
import "./bai.0010008045_inc.tsp";
2222
import "./hcmode_inc.tsp";
23+
import "./b516_inc.tsp";
2324
using Ebus;
2425
using Ebus.Num;
2526
using Ebus.Dtm;
@@ -381,5 +382,6 @@ namespace Bai {
381382

382383
default: Bai._308523_inc, // final load alternative
383384
Hcmode_inc,
385+
B516_inc,
384386
}
385387
}

src/vaillant/08.hmu.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import "@ebusd/ebus-typespec";
22
import "./_templates.tsp";
33
import "./hcmode_inc.tsp";
44
import "./errors_inc.tsp";
5+
import "./b516_inc.tsp";
56
using Ebus;
67
using Ebus.Num;
78
using Ebus.Dtm;
@@ -1793,5 +1794,6 @@ namespace Hmu {
17931794
union _includes {
17941795
Hcmode_inc,
17951796
Errors_inc,
1797+
B516_inc,
17961798
}
17971799
}

src/vaillant/b516_inc.tsp

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
import "@ebusd/ebus-typespec";
2+
import "./_templates.tsp";
3+
using Ebus;
4+
using Ebus.Num;
5+
using Ebus.Str;
6+
namespace Vaillant;
7+
8+
/** b516 energy statistics */
9+
namespace B516_inc {
10+
11+
model energye {
12+
@maxLength(7)
13+
ign: IGN;
14+
@unit("Wh")
15+
energye: EXP;
16+
}
17+
18+
@base(MF, 0x16, 0x10)
19+
model r_1 {}
20+
21+
@inherit(r_1)
22+
@ext(0x00, 0xff, 0xff, 0x01, 0x00, 0x00, 0x30)
23+
model SolarSumSystem {
24+
value: energye;
25+
}
26+
27+
@inherit(r_1)
28+
@ext(0x00, 0xff, 0xff, 0x01, 0x03, 0x00, 0x30)
29+
model SolarHeatingSystem {
30+
value: energye;
31+
}
32+
33+
@inherit(r_1)
34+
@ext(0x00, 0xff, 0xff, 0x01, 0x04, 0x00, 0x30)
35+
model SolarHotWaterSystem {
36+
value: energye;
37+
}
38+
39+
@inherit(r_1)
40+
@ext(0x00, 0xff, 0xff, 0x01, 0x05, 0x00, 0x30)
41+
model SolarCoolingSystem {
42+
value: energye;
43+
}
44+
45+
@inherit(r_1)
46+
@ext(0x00, 0xff, 0xff, 0x02, 0x00, 0x00, 0x30)
47+
model EnvironmentalSumSystem {
48+
value: energye;
49+
}
50+
51+
@inherit(r_1)
52+
@ext(0x00, 0xff, 0xff, 0x02, 0x03, 0x00, 0x30)
53+
model EnvironmentalHeatingSystem {
54+
value: energye;
55+
}
56+
57+
@inherit(r_1)
58+
@ext(0x00, 0xff, 0xff, 0x02, 0x04, 0x00, 0x30)
59+
model EnvironmentalHotWaterSystem {
60+
value: energye;
61+
}
62+
63+
@inherit(r_1)
64+
@ext(0x00, 0xff, 0xff, 0x02, 0x05, 0x00, 0x30)
65+
model EnvironmentalCoolingSystem {
66+
value: energye;
67+
}
68+
69+
@inherit(r_1)
70+
@ext(0x00, 0xff, 0xff, 0x03, 0x00, 0x00, 0x30)
71+
model ElectricalSumSystem {
72+
value: energye;
73+
}
74+
75+
@inherit(r_1)
76+
@ext(0x00, 0xff, 0xff, 0x03, 0x03, 0x00, 0x30)
77+
model ElectricalHeatingSystem {
78+
value: energye;
79+
}
80+
81+
@inherit(r_1)
82+
@ext(0x00, 0xff, 0xff, 0x03, 0x04, 0x00, 0x30)
83+
model ElectricalHotWaterSystem {
84+
value: energye;
85+
}
86+
87+
@inherit(r_1)
88+
@ext(0x00, 0xff, 0xff, 0x03, 0x05, 0x00, 0x30)
89+
model ElectricalCoolingSystem {
90+
value: energye;
91+
}
92+
93+
@inherit(r_1)
94+
@ext(0x00, 0xff, 0xff, 0x04, 0x00, 0x00, 0x30)
95+
model FuelSumSystem {
96+
value: energye;
97+
}
98+
99+
@inherit(r_1)
100+
@ext(0x00, 0xff, 0xff, 0x04, 0x03, 0x00, 0x30)
101+
model FuelHeatingSystem {
102+
value: energye;
103+
}
104+
105+
@inherit(r_1)
106+
@ext(0x00, 0xff, 0xff, 0x04, 0x04, 0x00, 0x30)
107+
model FuelHotWaterSystem {
108+
value: energye;
109+
}
110+
}

0 commit comments

Comments
 (0)