HandyHat / ha-hildebrandglow-dcc

Home Assistant integration for UK SMETS (Smart) meters pulling data from the DCC via the Hildebrand Glow API
MIT License
233 stars 34 forks source link

Update sensor.py #334

Closed mcc05 closed 1 year ago

mcc05 commented 1 year ago

Stopped returning "unknown" value for sensor where the return from the API is zero value of usage, i.e. running of solar and all entries are valid zero's, also helps with the delay in getting gas readings.

Description

Motivation and Context

How Has This Been Tested?

Types of changes

mcc05 commented 1 year ago

Please consider adding this change

mcc05 commented 1 year ago

change Cost sensor state class to TOTAL to remove HA warning about monetary value

mcc05 commented 1 year ago

added extra check for int value

mcc05 commented 1 year ago

corrected for summing up costs after change to total not total increasing

mcc05 commented 1 year ago

Sorry need to test it better