davidusb-geek / emhass-add-on

The Home Assistant Add-on for EMHASS: Energy Management Optimization for Home Assistant
MIT License
78 stars 23 forks source link

Problems with saving the configuration #54

Closed copadewe closed 4 months ago

copadewe commented 8 months ago

First, this looks like a gamechanger :-) so many people looking for it. SO, i installed the Addon today, went to Configuration and set some of my settings. But after click on "save" i got error warnings. This is good if there is something wrong, but there are in my eyes "all" fields noted.

grafik

Any idea how to solve it? Here the yaml, as i sayed, just a few first changes to my data and will not save. hass_url: empty OR 192.168.178.55 OR [localhost] OR http://homeassistant.local:8123/ tried all long_lived_token: >- xxxxxxxxxxxxxxxxxxxxxxxxxxxxx costfun: self-consumption logging_level: DEBUG optimization_time_step: 30 historic_days_to_retrieve: 2 method_ts_round: nearest set_total_pv_sell: false lp_solver: COIN_CMD lp_solver_path: /usr/bin/cbc set_nocharge_from_grid: false set_nodischarge_to_grid: false set_battery_dynamic: false battery_dynamic_max: 0.9 battery_dynamic_min: -0.9 load_forecast_method: naive sensor_power_photovoltaics: sensor.total_dc_power sensor_power_load_no_var_loads: sensor.load_power number_of_deferrable_loads: 2 list_nominal_power_of_deferrable_loads:

Thx, Oliver

davidusb-geek commented 8 months ago

Just released a new version. Try to update later. It should be solved.

copadewe commented 8 months ago

Just released a new version. Try to update later. It should be solved.

Thanks, but same again after Update and restart Screenshot_20231020-071643_Home Assistant

davidusb-geek commented 8 months ago

This is related to #50 Any chance you can post the full log error? It is truncated. Go to the supervisor logger. Also you have commas in your values: "0,3" should be "0.3"

copadewe commented 8 months ago

This commas are changed into points. IN the logs, same, stopped with .... grafik

Also tried to solve the related to https://github.com/davidusb-geek/emhass-add-on/issues/50 with p at end of time. Same problem came up.

HA Addon newest version HA installed direct at Intel NUK

copadewe commented 8 months ago

I just took a copy of the yaml from this: https://community.home-assistant.io/t/emhass-add-on-an-energy-management-optimization-add-on-for-home-assistant-os-and-supervised/405649/136?u=copadewe and it work with this when I paste and copy it to my System. I can also make changes, no idea why but it work with this now. Have other problem - will first feed all my details and come back with another issue. Oliver

copadewe commented 8 months ago

THX @davidusb-geek

davidusb-geek commented 5 months ago

This is still an ongoing issue. Reopening it...

nicobresseleers commented 5 months ago

Same issue here.. default values, changing load and solar sensors: does not work.

davidusb-geek commented 5 months ago

Just check peak_hours_periods_start_hours and peak_hours_periods_end_hours format and save configuration and it should work. But I agree there is an annoyinbg issue changing this automatically to the wrong format

nicobresseleers commented 5 months ago

yes indeed .. working now..

it's not (yet) easy to understand how it works in detail .. need to study it a bit more. :-)

Would like to ( based on consumption, weather/sun / battery Soc /dynamic energy pricing)

When to load battery and when to sell again and make profit: High level: charge between 03:00 and 06:00 6kW ( full battery) discharge between 06 and 08 4kW ( or more if solar is expected) Load again in the afternoon based on SoC and consumption planning make sure to have enough to cover peak and evening ( till 02 or 03 depending on when the low prices are planned)

Also trigger invertor when utilization is > 2500 W ( we have peak taxes in belgium if we consume > 2500 W avg for over 15minutes) -> now already done via automation

davidusb-geek commented 4 months ago

This should be solved with latests versions... Feel free to reopen otherwise