eseglem / hass-wattbox

Home Assistant WattBox Component
MIT License
14 stars 8 forks source link

Error "Not enough lines: 1. Getting more" #19

Open jes1417 opened 10 months ago

jes1417 commented 10 months ago

Version of the custom_component

v0.9.0b5

Configuration

  - host: 10.30.46.119
    port: 22
    name: Network Wattbox
    username: myusername
    password: mypassword
    scan_interval: 00:00:30
    resources:
      - cloud_status
      - auto_reboot
      - mute
      - safe_voltage_status
      - current_value
      - power_value
      - voltage_value

Add your logs here.


Logger: pywattbox.async_driver
Source: custom_components/wattbox/__init__.py:143
Integration: WattBox (documentation, issues)
First occurred: 4:04:02 PM (19 occurrences)
Last logged: 4:26:32 PM

Not enough lines: 1. Getting more

Describe the bug

A clear and concise description of what the bug is.

annoying repeating error in logs

Debug log

only thing I see when enabling debug

2023-12-12 16:36:32.925 DEBUG (MainThread) [custom_components.wattbox] Updated: WattBox (10.30.46.119): WB-800-IPVM-6 - <pywattbox.ip_wattbox.IpWattBox object at 0x7f6d938e6050>

Add your logs here.

eseglem commented 10 months ago

Is it actually connecting and pulling data or not getting anything? The debug logs tend to be repetitive and should be seeing some lines every time it pulls data based on your scan interval.

That line alone isn't necessarily an error, it's reading lines from the server response and sometimes needs to get more to find the end of the data.

It looks like it's connecting some amount, since it's got a model (WB-800-IPVM-6). Is there an issue other than the logs?

If there is an issue, there should be a lot more logs than that. May need to turn on debug for scrapli as well. Otherwise turning off debug for pywattbox should get rid of those statements.

I'd also remove the resources section from your config as well. It's not necessary, unless you actually don't want all the data.

jes1417 commented 8 months ago

This seems to have went away when I updated the wattbox to the october 23 firmware

jes1417 commented 8 months ago

they ended up coming back.