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

Multiple warnings: "Warn: Out of range index 1 within item" #1666

Open
discodancerstu opened this issue Nov 27, 2024 · 5 comments
Open

Multiple warnings: "Warn: Out of range index 1 within item" #1666

discodancerstu opened this issue Nov 27, 2024 · 5 comments
Assignees
Labels
bug Something isn't working configuration User configuration issue fixed

Comments

@discodancerstu
Copy link

discodancerstu commented Nov 27, 2024

Predbat displaying multiple warnings.

System is 2 x Hybrid Inverters, 2 x batteries and GivTCP 3.

Also running PredAI

Predbat log and apps.yaml as requested attached.
predbat.log
appsyaml.txt

@springfall2008
Copy link
Owner

battery_scaling and inverter_time should be set in apps.yaml one per inverter.

You should also comment back in the other settings below this comment which is actually now incorrect as some are used for charge curve calculation:

  # If not using REST then instead set the Control here (one for each inverter)
  # - you can delete this section if using REST
  ...

The warning reducing idle time and device_id can be ignore I think that's a bug on my side

@springfall2008 springfall2008 added bug Something isn't working fixed configuration User configuration issue labels Nov 30, 2024
springfall2008 added a commit that referenced this issue Nov 30, 2024
* Fix some warnings with index out of range

#1666

* Some created entities should be an array

* Update inverter.py
@discodancerstu
Copy link
Author

discodancerstu commented Nov 30, 2024 via email

@discodancerstu
Copy link
Author

Screenshot_20241130_204126_Home Assistant

@discodancerstu
Copy link
Author

Since doing this, the following warnings and errors are now showing.
Screenshot_20241130_204227_Home Assistant

@gcoan
Copy link
Collaborator

gcoan commented Nov 30, 2024

You've got badly formatted YAML

If you look at your apps.yaml, each entry should be indented by two spaces

soc_max and reserve are both indented correctly and then everything after that is missing a space

see https://springfall2008.github.io/batpred/apps-yaml/#warning-appsyaml-file-format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working configuration User configuration issue fixed
Projects
None yet
Development

No branches or pull requests

3 participants