You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/setup/cost_tracker.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,7 @@ Each item within the `tracked_changes` and `untracked_changes` have the followin
88
88
|`rate`|`float`| The rate the consumption is charged at. This is in pounds and pence (e.g. 1.01 = £1.01) |
89
89
|`consumption`|`float`| The consumption value of the specified period. This will be in `kwh`. |
90
90
|`cost`|`float`| The cost of the consumption at the specified rate. This is in pounds and pence (e.g. 1.01 = £1.01) |
91
+
|`cost_raw`|`float`| The raw cost of the consumption at the specified rate. This is in pounds and pence, but not rounded. This is to account for low cost devices |
if (consumption_dataisnotNoneandlen(consumption_data) >=minimum_consumption_recordsandrate_dataisnotNoneandlen(rate_data) >0andstanding_chargeisnotNone):
_LOGGER.debug(f'Skipping consumption and cost calculation as last reset has not changed - last_reset: {last_reset}; consumption start: {sorted_consumption_data[0]["start"]}')
238
+
else:
239
+
_LOGGER.debug(f'Skipping consumption and cost calculation due to lack of data; consumption: {len(consumption_data) ifconsumption_dataisnotNoneelse0}; rates: {len(rate_data) ifrate_dataisnotNoneelse0}; standing_charge: {standing_charge}')
0 commit comments