lolouk44 / CurrentCost_HA_CC

CurrentCost Meter Reading Custom Component for Home Assistant
16 stars 7 forks source link

State Class error #12

Closed blackest closed 3 years ago

blackest commented 3 years ago

name: Bug report about: Create a report to help us improve title: '' labels: bug assignees: ''


Describe the bug A clear and concise description of what the bug is. Strangely this is working perfectly in the ui but every 6 seconds pretty much I get 2021-08-10 01:09:01 ERROR (MainThread) [custom_components.currentcost.sensor] Setting up State Class

To Reproduce Steps to reproduce the behaviour, including error message if any. install latest version Expected behaviour A clear and concise description of what you expected to happen. no errors :) Screenshots If applicable, add screenshots to help explain your problem.

Desktop/Server/Device (please complete the following information):

Additional context Add any other context about the problem here. 2021-08-10 01:08:43 ERROR (MainThread) [custom_components.currentcost.sensor] Setting up State Class 2021-08-10 01:08:49 DEBUG (MainThread) [custom_components.currentcost.sensor] Line Received: CC128-v1.290201219.7002016100305 2021-08-10 01:08:49 ERROR (MainThread) [custom_components.currentcost.sensor] Setting up State Class 2021-08-10 01:08:55 DEBUG (MainThread) [custom_components.currentcost.sensor] Line Received: CC128-v1.290201219.6002016100310 2021-08-10 01:08:55 ERROR (MainThread) [custom_components.currentcost.sensor] Setting up State Class 2021-08-10 01:09:01 DEBUG (MainThread) [custom_components.currentcost.sensor] Line Received: CC128-v1.290201219.6002016100307 Logs Please set the Current Cost Custom Component's logging level to debug and provide relevant logs section from Home-Assistant. To Enable debug logging level, add this to your configuration.yaml and restart:

logger:
  default: error
  logs:
    custom_components.currentcost: debug

sorry not good at this, i thought it might be the dehumidifier example but hashed out also of 0, 2, 9 removed 9 it seems to work mostly just the log entry after each read from the serial port.

lolouk44 commented 3 years ago

Thanks. Fixed in 0.1.10