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

light sleep sensor has a class issue #192

Open
4 tasks done
AlexKusnezov opened this issue Feb 12, 2024 · 4 comments
Open
4 tasks done

light sleep sensor has a class issue #192

AlexKusnezov opened this issue Feb 12, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@AlexKusnezov
Copy link

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

  • I have enabled debug logging for my installation and pasted in the debug logs below.
  • 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 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
@YorkshireIoT YorkshireIoT added the bug Something isn't working label Feb 25, 2024
@YorkshireIoT
Copy link
Owner

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

@AlexKusnezov
Copy link
Author

@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

@YorkshireIoT
Copy link
Owner

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?

@Failure404
Copy link

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.

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

3 participants