Commit 8f17bef
feat: expose power consumption for heating, dhw and total (#667)
* Adding sensors for heating.power.consumption.dhw, heating.power.consumption.heating and heating.power.consumption.total
* Adding test response file for Vitocal252A
* Sorted Vitocal252A.json with jq, according to README
* Implementing initial tests for Vitocal252A. Copied from Vitocal250A and adjusted
* Implemented test for Power Consumption Heating
* Implemented tests for Total power consumption
* Adding test for Power consumption for Domestic Hot Water
* Align naming on tests
* Update of test for Vitocal252A, after ViCare API had Maintenance window 2025-11-18. That seems to have fixed some values
* Adding missing Properties for tests. Marked under '# heating - not yet used'
* Adding sensors to GazBoiler
* Adding another test for GazBoiler
* Fix for some GazBoilers have unit in another dict
* Added additional test for FuelCell
* Adding sensors to fuelcell
* adding extra test for Gaz boiler
* Adding additional tests
* Update PyViCare/PyViCareHeatPump.py
def getPowerConsumptionHeatingYear(self):
def getPowerConsumptionHeatingThisYear(self):
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com>
* Renaming getPowerConsumptionHeatingYear to getPowerConsumptionHeatingThisYear
* Fix for missing return, after implementation of fetching Unit of kilowattHour, that can be stored in either properties.day.unit or properties.unit.value
* Renamed getPowerConsumptionDomesticHotWaterYear to getPowerConsumptionDomesticHotWaterThisYear
* pylint Fix C0304: Final newline missing (missing-final-newline) in test_Vitodens200W, test_Vitodens200W_B2HF, test_Vitodens222W, test_Vitodens300W
* pylint Fix C0303: Trailing whitespace (trailing-whitespace) in test_VitovalorPT2, line 110, column 20
---------
Co-authored-by: TESC (Troels Schwarz-Linnet) <tesc@novozymes.com>
Co-authored-by: Christopher Fenner <9592452+CFenner@users.noreply.github.com>1 parent be8a13e commit 8f17bef
File tree
11 files changed
+7083
-2
lines changed- PyViCare
- tests
- response
11 files changed
+7083
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
98 | 118 | | |
99 | 119 | | |
100 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
109 | 113 | | |
110 | 114 | | |
111 | 115 | | |
| |||
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| 146 | + | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
| |||
204 | 209 | | |
205 | 210 | | |
206 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
207 | 232 | | |
208 | 233 | | |
209 | 234 | | |
| |||
233 | 258 | | |
234 | 259 | | |
235 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
236 | 281 | | |
237 | 282 | | |
238 | 283 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
56 | 73 | | |
57 | 74 | | |
58 | 75 | | |
| |||
97 | 114 | | |
98 | 115 | | |
99 | 116 | | |
| 117 | + | |
100 | 118 | | |
101 | 119 | | |
102 | 120 | | |
| |||
105 | 123 | | |
106 | 124 | | |
107 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
108 | 139 | | |
109 | 140 | | |
110 | 141 | | |
111 | 142 | | |
112 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
113 | 152 | | |
114 | 153 | | |
115 | 154 | | |
| |||
0 commit comments