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

[Bug]: Warning on log to create a bugcase #441

Open
1 of 3 tasks
miky-boy opened this issue Dec 29, 2024 · 3 comments
Open
1 of 3 tasks

[Bug]: Warning on log to create a bugcase #441

miky-boy opened this issue Dec 29, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@miky-boy
Copy link

LocalTuya Version

2024.12.1

Home Assistant Version

core-2024.12.5

Environment

  • Does the device work using the Home Assistant Tuya Cloud component?
  • Is this device connected to another local integration, including Home Assistant and any other tools?
  • The devices are within the same HA subnet, and they get discovered automatically when I add them

What happened?

Hi,
I received this message on my logs from HomeAssistant.

Print in attach:
Log

Log details (WARNING)
Logger: homeassistant.components.sensor.recorder
Source: components/sensor/recorder.py:317
integration: Sensor (documentation, issues)
First occurred: 00:55:10 (1 occurrences)
Last logged: 00:55:10

Entity sensor.tomada_electricity_2 from integration localtuya has state class total_increasing, but its state is not strictly increasing. Triggered by state 99.42 (101.71) with last_updated set to 2024-12-29T00:52:29.815609+00:00. Please create a bug report at https://github.com/xZetsubou/hass-localtuya/issues

Steps to reproduce.

Info on logs

Relevant log output

No response

Diagnostics information.

No response

@miky-boy miky-boy added the bug Something isn't working label Dec 29, 2024
@xZetsubou
Copy link
Owner

this is not a bug from localtuya as it says there is a sensor configured probably incorrectly, due to it's state is total_increasing but it seems HA detected that it actually doesn't increase.

@miky-boy
Copy link
Author

miky-boy commented Dec 29, 2024

Hi @xZetsubou,

Thanks for our reply. I think I imported the device automatically, but is not clear to me what this warning really means. I leave below few prints. If you could help I really appreciate.

Many thanks and Regards

{927F1A69-F974-4913-92DB-E81FE8C8747B}

{089620C8-6721-403F-90EA-7F63A9F90874}

@xZetsubou
Copy link
Owner

Go to Settings -> Integrations -> Localtuya -> Click on "configure" -> choose "reconfigure an existing device" -> select "Tomada"
click on submit till the step of "Electricity" sensor

at the bottom you will see (Optional) State Class preview it should be "total_increasing" It may be configured incorrectly which happen even with "automatically setup" and it caused an error to HA because it reported a value less then before? you can change it to another state.

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

2 participants