Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Average integration needs to be reload/restarted at least once a week #256

Open
4 tasks done
Moosbrugger opened this issue Oct 28, 2024 · 0 comments
Open
4 tasks done
Labels
bug Something isn't working.

Comments

@Moosbrugger
Copy link

System Health details

System Information

version core-2024.10.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.31-haos-raspi
arch aarch64
timezone America/New_York
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 5000
Installed Version 2.0.1
Stage running
Available Repositories 1454
Downloaded Repositories 31
AccuWeather
can_reach_server ok
remaining_requests 34
Home Assistant Cloud
logged_in true
subscription_expiration February 3, 2025 at 7:00 PM
relayer_connected true
relayer_region us-east-1
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled true
remote_server us-east-1-0.ui.nabu.casa
certificate_status ready
instance_id f3b02a30157349a7878fa3590225d023
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 13.1
update_channel stable
supervisor_version supervisor-2024.10.3
agent_version 1.6.0
docker_version 26.1.4
disk_total 57.8 GB
disk_used 16.8 GB
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board rpi5-64
supervisor_api ok
version_api ok
installed_addons Z-Wave JS UI (3.16.1), MariaDB (2.7.1), Mosquitto broker (6.4.1), Zigbee2MQTT (1.40.2-1), Advanced SSH & Web Terminal (19.0.0), ESPHome (2024.10.2), InfluxDB (5.0.1), phpMyAdmin (0.10.0), eWeLink Smart Home (1.4.3), MQTT Explorer (browser-1.0.3), Studio Code Server (5.17.2), JupyterLab (0.15.4), Home Assistant Google Drive Backup (0.112.1), Grafana (10.1.3)
Dashboards
dashboards 3
resources 27
views 6
mode storage
Recorder
oldest_recorder_run October 20, 2024 at 3:24 PM
current_recorder_run October 26, 2024 at 9:03 AM
estimated_db_size 527.52 MiB
database_engine mysql
database_version 10.11.6
Sonoff
version 3.8.1 (ffa7e22)
cloud_online 5 / 7
local_online 3 / 3
debug failed to load:

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Describe the issue

I have this template:

- platform: average name: "Average Outside Temperature 3_2" unique_id: averageoutsidetemperature3 entities: - sensor.outdoor_temperature_ecowitt - sensor.outside_temperature

Both contributing sensors give results but sensor.average_outside_temperature_3_2 is "unavailable".

This happens at least once a week.

Reproduction steps

  1. system runs average poops out regularly

...

Debug logs

example:

sensor.average_outside_temperature_3_2"
2024-10-28 07:25:32.384 DEBUG (MainThread) [custom_components.average.sensor] Updating sensor "Inside Average"
2024-10-28 07:25:32.384 DEBUG (MainThread) [custom_components.average.sensor] Process start template: Template<template=({{ now().replace(hour=0, minute=0, second=0) }}) renders=4450>
2024-10-28 07:25:32.384 DEBUG (MainThread) [custom_components.average.sensor] Process duration: 1 day, 0:00:00
2024-10-28 07:25:32.384 DEBUG (MainThread) [custom_components.average.sensor] Calculation period: start=2024-10-28 00:00:00.384575-04:00, end=2024-10-29 00:00:00.384575-04:00
2024-10-28 07:25:32.384 DEBUG (MainThread) [custom_components.average.sensor] Processing entity "sensor.ecobee_temperature"
2024-10-28 07:25:32.390 DEBUG (MainThread) [custom_components.average.sensor] Initial historical state: <state sensor.average_outside_temperature_3_2=unavailable; state_class=measurement, friendly_name=Average Outside Temperature 3_2 @ 2024-10-28T00:00:00.383885-04:00>
2024-10-28 07:25:32.391 DEBUG (MainThread) [custom_components.average.sensor] Historical state: <state sensor.average_outside_temperature_3_2=unavailable; state_class=measurement, friendly_name=Average Outside Temperature 3_2 @ 2024-10-28T00:00:00.383885-04:00>
2024-10-28 07:25:32.391 DEBUG (MainThread) [custom_components.average.sensor] Historical average state: None
2024-10-28 07:25:32.391 DEBUG (MainThread) [custom_components.average.sensor] Processing entity "sensor.outside_temperature"
2024-10-28 07:25:32.396 DEBUG (MainThread) [custom_components.average.sensor] Initial historical state: <state sensor.ecobee_temperature=63.9; state_class=measurement, unit_of_measurement=°F, device_class=temperature, friendly_name=Thermostat Temperature @ 2024-10-28T00:00:00.384575-04:00>
2024-10-28 07:25:32.396 DEBUG (MainThread) [custom_components.average.sensor] Historical state: <state sensor.ecobee_temperature=63.9; state_class=measurement, unit_of_measurement=°F, device_class=temperature, friendly_name=Thermostat Temperature @ 2024-10-28T00:00:00.384575-04:00>
2024-10-28 07:25:32.396 DEBUG (MainThread) [custom_components.average.sensor] Historical state: <state sensor.ecobee_temperature=64.0; state_class=measurement, unit_of_measurement=°F, device_class=temperature, friendly_name=Thermostat Temperature @ 2024-10-28T00:01:01.284874-04:00>
2024-10-28 07:25:32.396 DEBUG (MainThread) [custom_components.average.sensor] Historical state: <state sensor.ecobee_temperature=63.8; state_class=measurement, unit_of_measurement=°F, device_class=temperature, friendly_name=Thermostat Temperature @ 2024-10-28T00:04:01.289114-04:00>
2024-10-28 07:25:32.397 DEBUG (MainThread) [custom_components.average.sensor] Historical state: <state sensor.ecobee_temperature=63.9; state_class=measurement, unit_of_measurement=°F, device_class=temperature, friendly_name=Thermostat Temperature @ 2024-10-28T00:07:01.292441-04:00>
2024-10-28 07:25:32.397 DEBUG (MainThread) [custom_components.average.sensor] Historical state: <state sensor.ecobee_temperature=63.8; state_class=measurement, unit_of_measurement=°F, device_class=temperature, friendly_name=Thermostat Temperature @ 2024-10-28T00:13:01.300071-04:00>
2024-10-28 07:25:32.397 DEBUG (MainThread) [custom_components.average.sensor] Historical state: <state sensor.ecobee_temperature=63.7; state_class=measurement, unit_of_measurement=°F, device_class=temperature, friendly_name=Thermostat Temperature @ 2024-10-28T00:16:01.304824-04:00>
2024-10

Diagnostics dump

config_entry-hacs-9a1c5c4a16fdc75d725df231076e806a.json

@Moosbrugger Moosbrugger added the bug Something isn't working. label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant