Skip to content

Avoid that unavailable and unknown values are used to make average. #99

Closed
tessa-nz/ha-average
#1
@Melkor82

Description

Environment

  • Home Assistant Core release with the issue:
  • This custom component release with the issue:
  • Last working this custom component release (if known):
  • Operating environment (Home Assistant/Supervisor/Docker/venv):

Describe the bug
I use the average sensor to calculate average temperature in the house. I am using 6 zigbee sensor. If the battery of one gets
low it disconnects and it reports unavailable or unknown as state. I can notice this as the average value drops because i think
that the value is used to make the average is 0.

Configuration.yaml

Add your configs here if any.

Steps to Reproduce
Just make one sensor states to report "unavailable" or "unknown"

Expected behavior

Ignore "unavailable" and "unknown" states of the sensors

Debug log


Add your logs here.

Additional context

Metadata

Assignees

Labels

bugSomething isn't working.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions