-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from JoshuaDodds/feature/homeconnect2mqtt
Release Candidate: add Feature/homeconnect2mqtt module
- Loading branch information
Showing
8 changed files
with
437 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,87 +3,58 @@ | |
# Timezone | ||
TIMEZONE='Europe/Amsterdam' | ||
|
||
# Docker version and container repo credentials | ||
VERSION="$(TZ=${TIMEZONE} date +%Y.%m.%d.%H)" | ||
CR_PAT="" | ||
|
||
# Victron | ||
CERBOGX_IP="0.0.0.0" | ||
VRM_PORTAL_ID='XXXXXXXXXXXXXXXX' | ||
|
||
# Domoticz | ||
DZ_URL_PREFIX="http://<IP ADDRESS>:80/json.htm?type=command¶m=udevice&idx=" | ||
# Your Home consumes roughyl this amount of energy (in kWh) per 24 hours. | ||
DAILY_HOME_ENERGY_CONSUMPTION=16.0 | ||
|
||
# Module/Feature toggles | ||
# You can select one or more modules to run but make sure that `mqtt_client` is always enabled and is always the | ||
# module defined. This is because the `mqtt_client` module is the one that is responsible for the MQTT connection | ||
# and is a blocking function which will not return while the other modules run in their own threads. | ||
ACTIVE_MODULES='[{ | ||
"sync": { | ||
"ev_charge_controller": false, | ||
"energy_broker": false | ||
}, | ||
ACTIVE_MODULES='[{"sync": {"ev_charge_controller": false, "energy_broker": false }, "async": {"mqtt_client": true, "tibber_api": false }}]' | ||
|
||
"async": { | ||
"mqtt_client": true, | ||
"tibber_api": false | ||
} | ||
}]' | ||
# Enable / disable appliance run scheduling at lowest prices (requires a homeconnect2mqtt bridge in local network) | ||
HOME_CONNECT_APPLIANCE_SCHEDULING=False | ||
|
||
# Enable / disable dynamic buy and sell decisions | ||
DYNAMIC_ESS_NET_METERING_ENABLED=False | ||
# Rate in Watts to export energy to the grid from the ESS | ||
ESS_EXPORT_AC_SETPOINT=-8000.0 | ||
ESS_EXPORT_AC_SETPOINT=-10000.0 | ||
|
||
# Percentage of battery capacity to retain for own use (ie. stop energy sale at 65% battery state of charge) | ||
DYNAMIC_ESS_BATT_MIN_SOC=80.0 | ||
DYNAMIC_ESS_BATT_MIN_SOC=50.0 | ||
|
||
VICTRON_OPTIMIZED_CHARGING=0 | ||
VICTRON_OPTIMIZED_CHARGING=1 | ||
TIBBER_UPDATES_ENABLED=0 | ||
|
||
# the max amount you want to pay in cents per kWh from Tibber (energy supplier) | ||
MAX_TIBBER_BUY_PRICE=0.30 | ||
# the max amount you want to pay in cents per kWh from Tibber (energy supplier) when charging the ESS | ||
MAX_TIBBER_BUY_PRICE=0.40 | ||
|
||
# !!! Warning !!! | ||
# Unless mitigated in some other way, if the grid is lost when using this mode, the loads will also | ||
# lose power until grid power is restored or manual intervention is done (switch back to inverter mode on). | ||
# Use this carefully. | ||
# | ||
# If energy prices are equal or lower to this, switch to grid consumption (victron inverter pass-through mode) | ||
SWITCH_TO_GRID_PRICE_THRESHOLD=0.22 | ||
|
||
### ev_charge_controller ESS options | ||
# LOAD_RESERVATION defines the amount of solar energy produced in Watts that you want to reserve for charging your ESS | ||
# and running house (and other) loads. When the MINIMUM_ESS_SOC percentage is reached, this amount will be reduced with | ||
# a division of the LOAD_RESERVATION by the LOAD_REDUCTION_FACTOR to begin favoring the charge of your electric vehicle. | ||
LOAD_RESERVATION=400 | ||
LOAD_REDUCTION_FACTOR=2 | ||
LOAD_RESERVATION=1 | ||
LOAD_REDUCTION_FACTOR=1 | ||
|
||
# battery will charge at this voltage when under MIMIMUM_ESS_SOC | ||
BATTERY_ABSORPTION_VOLTAGE=55.0 | ||
BATTERY_ABSORPTION_VOLTAGE=57.0 | ||
# battery charge voltage will be reduced to this voltage WHEN MIMIMUM_ESS_SOC is reached | ||
BATTERY_FLOAT_VOLTAGE=54.8 | ||
MINIMUM_ESS_SOC=95 | ||
BATTERY_FLOAT_VOLTAGE=57.0 | ||
MINIMUM_ESS_SOC=90 | ||
# batter max voltage will drop to this when MAXIMUM_ESS_SOC is reached | ||
BATTERY_FULL_VOLTAGE=54.0 | ||
MAXIMUM_ESS_SOC=98 | ||
BATTERY_FULL_VOLTAGE=55.8 | ||
MAXIMUM_ESS_SOC=95 | ||
|
||
### ABB B2x kWh Meter integration | ||
# if you have integrated an ABB B23/B24 RS-485 meter into your venusOS system you can toggle this option on | ||
# and configure the topic it will read/write to in conf.py. This will allow for bypassing the load reservation | ||
# functionality and result in more precise and accurate surplus power calculations | ||
ABB_METER_INTEGRATION=0 | ||
|
||
# tesla credentials and home address LAT and LONG | ||
TESLA_EMAIL=[email protected] | ||
HOME_ADDRESS_LAT=54.1345 | ||
HOME_ADDRESS_LONG=4.1234 | ||
|
||
# HomeConnect options | ||
CLIENTID="" | ||
CLIENTSECRET="" | ||
REDIRECTURI="" | ||
|
||
# Tibber options | ||
TIBBER_ACCESS_TOKEN="XXXXXXXXXXXXX" | ||
|
||
|
||
# Pushover API Access | ||
PO_USER_ID="" | ||
PO_API_KEY="" | ||
|
||
# AWS Credentials | ||
AWS_ACCESS_KEY="" | ||
AWS_SECRET_KEY="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ | |
'global_state', | ||
'config_retrieval', | ||
'config_change_handler', | ||
'event_handler_appliances', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.