EOS_connect icon indicating copy to clipboard operation
EOS_connect copied to clipboard

Version 0.1.18 not starting

Open PRiekenberg opened this issue 1 year ago • 11 comments

Hi, the homeassistant addon is not starting with version 0.1.18, because it is missing some configs.

When i try to edit config and save, I get the following error:

"Fehler beim Speichern der Add-on Konfiguration, Missing required option 'fixed_24h_array' in EOS connect (855a9a00_eos_connect)"

PRiekenberg avatar Jun 07 '25 06:06 PRiekenberg

Jep, unfortunately... I have to find out the logic in HA addon config for 'optional'...

Short workaround :

Remove 'fixed_24h_array' just before save config. And if other params complaining also.

Then it takes over. And can be started.

ohAnd avatar Jun 07 '25 07:06 ohAnd

fixed with workaround ...

after some deep dive - HA addon config accepts 'null' as "value setted, but not valid" - so the optional value which is predefined with null throws the error.

the workaround: all optional values get an empty strings ("") as the default and the validation runs fine (fixed with https://github.com/ohAnd/ha_addons/commit/45d019a7e6270a143d3c96fca791b108fb4521ca )

ohAnd avatar Jun 07 '25 11:06 ohAnd

Hi, it is still not working, even with the fix. With default null is set for the variable fixed_24h_array.

When I set double quotes I can save the config, but the add on is not starting and throws the following error:

"/app/src/interfaces/price_interface.py", line 92, in init float(price) for price in self.fixed_24h_array.split(",") ^^^^^^^^^^^^ ValueError: could not convert string to float: ''

PRiekenberg avatar Jun 08 '25 06:06 PRiekenberg

thx for the info.

is the second layer ... and targeting #52

I'm on it.

ohAnd avatar Jun 08 '25 07:06 ohAnd

Hi, with the last dev update I tried to cover all config combinations... Maybe you can check for your needs if it is now fitting...

ohAnd avatar Jun 08 '25 18:06 ohAnd

Hi, seems fine for me. I just saw you want to check if the evcc server is reachable. Please do not make the evcc server necessary for using the addon. Some people like me do not use evcc and just want to use the smart battery and charging control.

Please keep that in mind. Thank you for your work!

PRiekenberg avatar Jun 09 '25 06:06 PRiekenberg

thx jep, it's right (for checking the reachability) - but here also

evcc:
  url: "" # URL to your evcc installation, if not used set to "" or leave as http://yourEVCCserver:7070

or

evcc:
  url: http://yourEVCCserver:7070 # URL to your evcc installation, if not used set to "" or leave as http://yourEVCCserver:7070

as setting - will skip the config for evcc

I will check to have more clarity with the given log messages, on second level. In addon config there is this way already given.

ohAnd avatar Jun 09 '25 08:06 ohAnd

Hey, sorry for the comment on a closed issue but for me it is not yet closed. I am a fresh new user, set up everything via HA Add-Ons per the readme. I set all options, price on default. However, HA will not let me start EOS connect because of Missing required option 'fixed_24h_array' in EOS connect (855a9a00_eos_connect). Entering "" for the value manually leads to same crash as in https://github.com/ohAnd/EOS_connect/issues/58#issuecomment-2953604773

Any way to debug this?

Version info: Home Assistant

Installation method Home Assistant OS
Core 2025.9.4
Supervisor 2025.09.3
Operating System 16.2
Frontend 20250903.5

EOS connect Current version: 0.1.23

EOS add-on Current version: 1.2.3

Config still extremely simple: battery, car and load data from HA sensors, forecast via default configured, everything default or empty.

CyWS avatar Sep 30 '25 08:09 CyWS

Hi,

in HA config both entries are working to switch off:

price:
  source: tibber
  token: xxx
  fixed_24h_array: ""
  feed_in_price: 0.0794
  negative_price_switch: true

(this one will be automatically taken over as "0" HA)

or

price:
  source: tibber
  token: xxx
  fixed_24h_array: "0"
  feed_in_price: 0.0794
  negative_price_switch: true

Can you please show your price config in yaml?

ohAnd avatar Oct 01 '25 05:10 ohAnd

Ok, this fixed it. Thanks for the nudge! I only used GUI before and didn't switch to "edit in yaml".

That was the part created through the GUI:

price:
  source: default
  token: ""
  fixed_24h_array: null
  feed_in_price: 0
  negative_price_switch: false

Changed null to "" and it starts.

CyWS avatar Oct 01 '25 06:10 CyWS

add: with the new HA config gui also for second level of config, you will only need to leave the field empty...

Image

then it will be written to

fixed_24h_array: ""

in background

ohAnd avatar Oct 01 '25 10:10 ohAnd