ha-google-fit icon indicating copy to clipboard operation
ha-google-fit copied to clipboard

light sleep sensor has a class issue

Open AlexKusnezov opened this issue 1 year ago • 4 comments

System Health details

System Information

version core-2024.2.1
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.12.1
os_name Linux
os_version 6.1.0-rpi8-rpi-v8
arch aarch64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.34.0
Stage running
Available Repositories 1397
Downloaded Repositories 50
AccuWeather
can_reach_server ok
remaining_requests 33
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Dashboards
dashboards 2
resources 34
views 29
mode storage
Recorder
oldest_recorder_run January 13, 2024 at 07:00
current_recorder_run February 11, 2024 at 08:04
estimated_db_size 7355.27 MiB
database_engine mysql
database_version 11.2.2
Sonoff
version 3.5.4 (a4a8c5f)
cloud_online 3 / 3
local_online 1 / 1
Spotify
api_endpoint_reachable ok

Checklist

  • [X] I have enabled debug logging for my installation and pasted in the debug logs below.
  • [X] I have filled out the issue template to the best of my ability.
  • [X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • [X] This issue is not a duplicate issue of currently previous issues..

Describe the issue

I got this waring from the regular logs

Integration Version

4.0.0

Reproduction steps

  1. Read logs
  2. see warning

Debug logs

Logger: homeassistant.components.sensor.recorder
Source: components/sensor/recorder.py:301
Integration: Sensor (documentation, issues)
First occurred: 03:05:10 (1 occurrences)
Last logged: 03:05:10

Entity sensor.light_sleep from integration google_fit has state class total_increasing, but its state is not strictly increasing. Triggered by state 17740.0990004539 (18551.0990004539) with last_updated set to 2024-02-12T02:00:45.644005+00:00. Please create a bug report at https://github.com/YorkshireIoT/ha-google-fit/issues

AlexKusnezov avatar Feb 12 '24 06:02 AlexKusnezov

@AlexKusnezov - is this still frequently happening? If so, can you add your sensor history around the times you get the warning?

YorkshireIoT avatar Feb 25 '24 13:02 YorkshireIoT

@YorkshireIoT sorry I just saw you comment. Yes it happens every 24 hours, basically when I wake up and my watch sychronizes sleep data, recent warning: Entity sensor.sleep from integration google_fit has state class total_increasing, but its state is negative. Triggered by state -570.910999917984 with last_updated set to 2024-03-10T05:32:54.433451+00:00. Please create a bug report at https://github.com/YorkshireIoT/ha-google-fit/issues

AlexKusnezov avatar Mar 11 '24 08:03 AlexKusnezov

That issue was closed in #194 and will be available in the next release. Your original issue mentioned a problem with the light sleep sensor. Are you still getting those warnings?

YorkshireIoT avatar Mar 11 '24 16:03 YorkshireIoT

I am still getting those warnings every day when my watch synchronizes my sleep data. In fact, there are 3 warnings:

Entity sensor.light_sleep from integration google_fit has state class total_increasing, but its state is not strictly increasing. Triggered by state 18780.0 (19260.0) with last_updated set to 2024-05-06T22:43:51.668934+00:00.

Entity sensor.awake_time from integration google_fit has state class total_increasing, but its state is not strictly increasing. Triggered by state 1200.0 (1260.0) with last_updated set to 2024-05-07T00:25:01.152402+00:00.

Entity sensor.rem_sleep from integration google_fit has state class total_increasing, but its state is not strictly increasing. Triggered by state 1800.0 (1920.0) with last_updated set to 2024-05-07T06:44:16.725760+00:00.

Failure404 avatar May 07 '24 09:05 Failure404