Skip to content

Commit

Permalink
Dev (#56)
Browse files Browse the repository at this point in the history
* Cleanup

* Comandline options and more cleanup (#2)

* decrease windows size and nicer output

* Fallback to limiting inverter for limits below 100W

Better smoothing of spikes in houshold usage

* add improvement for fast demand increase/decrease

* inverter mppt definitions as env vars

* Fast drop/rise in demand recocnition

* faster drop/rise adjustment

* add more robustness when reading smarmeter values from MQTT

* Merging new options into master (#5) (#6)

* Cleanup

* Comandline options and more cleanup (#2)

* decrease windows size and nicer output

* Fallback to limiting inverter for limits below 100W

Better smoothing of spikes in houshold usage

* add improvement for fast demand increase/decrease

* inverter mppt definitions as env vars

* Fast drop/rise in demand recocnition

* faster drop/rise adjustment

* add more robustness when reading smarmeter values from MQTT

* limit solarflow to 0 if below 50 and 100 if above

* environment variable to change how to limit (inverter/sf)

* regulate inverter with mutliple mppts

* bugfix

* determine sunrise/sunset with location info

* add location and sunrise/sunset detection

* add decision debut output

* discharging throughout the day and temperature safety

* Add Pipeline Script

* update build credentials

* new limits possible below 100W (Zendure FW update)

* Support multiple phase input for house usage

* simplified multi phase house usage code

* fix wrong env variable for day_discharge

* work with both single and multi house input

* remove logspam

* rounding smartmeter readings

* report (calculated) homeusage to mqtt (for statuspage)

* make opendtu inverter limit configurable

* new logic for 0 min-charge_level

* add soc values to discharge decision

* typo in direct panel control

* ensure mqtt message has no empty payload (#21)

* Bug  topic direct panel subscription (#27)

* Dev (#22)

* ensure mqtt message has no empty payload (#21)

* forgot to subscripe topics

* proper parameters

* support multiple panels properly

* Bug  topic direct panel subscription (#29)

* forgot to subscripe topics

* proper parameters

* support multiple panels properly

* it seems the minimum outputLimit must be larger than 0

* default value for panel topics

* ensure SF never gets a limit of 0

* Bug  topic direct panel subscription (#32)

* ensure empty array of panel topics

* add a compose stack for control and statuspage with mqtt (#34)

* X build (#35)

* Dev (#33)

* ensure empty array of panel topics

* add cross-build pipeline

* X build (#36)

* Dev (#33)

* ensure empty array of panel topics

* add cross-build pipeline

* problem with armv6 build

* X build (#37)

* Dev (#33)

* ensure empty array of panel topics

* add cross-build pipeline

* problem with armv6 build

* install dependencies

* X build (#38)

* Dev (#33)

* ensure empty array of panel topics

* add cross-build pipeline

* problem with armv6 build

* install dependencies

* dependencies

* X build (#39)

* Dev (#33)

* ensure empty array of panel topics

* add cross-build pipeline

* problem with armv6 build

* install dependencies

* dependencies

* removing arm64

* X build (#40)

* Dev (#33)

* ensure empty array of panel topics

* add cross-build pipeline

* problem with armv6 build

* install dependencies

* dependencies

* removing arm64

* more dependencies

* X build (#41)

* Dev (#33)

* ensure empty array of panel topics

* add cross-build pipeline

* problem with armv6 build

* install dependencies

* dependencies

* removing arm64

* more dependencies

* remove armv7

* configuration via config file (#42)

* Config (#43)

* configuration via config file

* remove x-build specifics

* Config (#44)

* configuration via config file

* remove x-build specifics

* split pip installs

* Config (#45)

* configuration via config file

* remove x-build specifics

* split pip installs

* add dev libs for x-build

* Config (#46)

* configuration via config file

* remove x-build specifics

* split pip installs

* add dev libs for x-build

* x-build deps

* Config (#47)

* configuration via config file

* remove x-build specifics

* split pip installs

* add dev libs for x-build

* x-build deps

* add gcc for x-build

* Config (#48)

* configuration via config file

* remove x-build specifics

* split pip installs

* add dev libs for x-build

* x-build deps

* add gcc for x-build

* add musl dev

* Config (#49)

* configuration via config file

* remove x-build specifics

* split pip installs

* add dev libs for x-build

* x-build deps

* add gcc for x-build

* add musl dev

* add rust

* add rust

* Config (#50)

* configuration via config file

* remove x-build specifics

* split pip installs

* add dev libs for x-build

* x-build deps

* add gcc for x-build

* add musl dev

* add rust

* add rust

* add cargo

* Config (#51)

* configuration via config file

* remove x-build specifics

* split pip installs

* add dev libs for x-build

* x-build deps

* add gcc for x-build

* add musl dev

* add rust

* add rust

* add cargo

* add openssl

* Config (#52)

* configuration via config file

* remove x-build specifics

* split pip installs

* add dev libs for x-build

* x-build deps

* add gcc for x-build

* add musl dev

* add rust

* add rust

* add cargo

* add openssl

* openssl-dev

* Config (#53)

* configuration via config file

* remove x-build specifics

* split pip installs

* add dev libs for x-build

* x-build deps

* add gcc for x-build

* add musl dev

* add rust

* add rust

* add cargo

* add openssl

* openssl-dev

* make image slimmer

* make image slimmer

* Config (#55)
  • Loading branch information
reinhard-brandstaedter authored Oct 6, 2023
1 parent e46fad1 commit fbfad32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solarflow-control.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def load_config():
or int(os.environ.get('BATTERY_HIGH',98))

# the maximum allowed inverter output
MAX_INVERTER_LIMIT = config.getint('control', 'max_inverter_limit', fallback=98) \
MAX_INVERTER_LIMIT = config.getint('control', 'max_inverter_limit', fallback=800) \
or int(os.environ.get('MAX_INVERTER_LIMIT',800))
MAX_INVERTER_INPUT = MAX_INVERTER_LIMIT - MIN_CHARGE_LEVEL

Expand Down Expand Up @@ -365,7 +365,7 @@ def limitHomeInput(client: mqtt_client):
global packSoc, batterySocs, direct_panel_power
global smartmeter_values, solarflow_values, inverter_values
global charge_through

# ensure we have data to work on
if len(smartmeter_values) == 0:
log.info(f'Waiting for smartmeter data to make decisions...')
Expand Down

0 comments on commit fbfad32

Please sign in to comment.