Skip to content

Commit

Permalink
Kühlschrank & -truhe
Browse files Browse the repository at this point in the history
Signed-off-by: openhabian <openhabian@openHABian>
  • Loading branch information
openhabian authored and openhabian committed Sep 14, 2024
1 parent 43d8ea4 commit 2c06740
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions build-image/openhabian.conf
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ gridcost=35
feedincompensation=8.2
washingmachineip=192.168.178.201
dishwasherip=192.168.178.202
fridgeip=192.168.178.203
freezerip=192.168.178.204
whitegooduser=
whitegoodpass=
heatpumptype=sgready
Expand Down
14 changes: 8 additions & 6 deletions functions/storm.house.bash
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ setup_charger() {
## valid arguments:
## #1 IP address of washing machine actuator
## #2 IP address of dish washer actuator
## #3 user name to access Shelly actuators (common to all white good actuators)
## #4 password to access Shelly actuators (common to all white good actuators)
## #3 IP address of fridge actuator
## #4 IP address of freezer actuator
## #5 user name to access Shelly actuators (common to all white good actuators)
## #6 password to access Shelly actuators (common to all white good actuators)
##
## setup_whitegood_config(String washing machine IP,String dish washer IP,String actuator user name,String actuator password)
##
Expand All @@ -163,12 +165,12 @@ setup_whitegood_config() {
local wpass


wuser=${3:-${whitegooduser}}
wuser=${5:-${whitegooduser}}
if [[ $wuser == "NULL" ]]; then wuser=""; fi
wpass=${4:-${whitegoodpass}}
wpass=${6:-${whitegoodpass}}
if [[ $wpass == "NULL" ]]; then wpass=""; fi
#sed -e "s|%IPW|${1:-${washingmachineip}}|;s|%IPS|${2:-${dishwasherip}}|;s|%USER|${3:-${whitegooduser}}|;s|%PASS|${4:-${whitegoodpass}}|" "${srcfile}" > "${destfile}"
sed -e "s|%IPW|${1:-${washingmachineip}}|;s|%IPS|${2:-${dishwasherip}}|;s|%USER|${wuser}|;s|%PASS|${wpass}|" "${srcfile}" > "${destfile}"
#sed -e "s|%IPW|${1:-${washingmachineip}}|;s|%IPS|${2:-${dishwasherip}}|;s|%IPK|${3:-${fridgeip}}|;s|%IPT|${4:-${freezerip}}|;s|%USER|${5:-${whitegooduser}}|;s|%PASS|${6:-${whitegoodpass}}|" "${srcfile}" > "${destfile}"
sed -e "s|%IPW|${1:-${washingmachineip}}|;s|%IPS|${2:-${dishwasherip}}|;s|%IPK|${3:-${fridgeip}}|;s|%IPT|${4:-${freezerip}}|;s|%USER|${wuser}|;s|%PASS|${wpass}|" "${srcfile}" > "${destfile}"
}


Expand Down

0 comments on commit 2c06740

Please sign in to comment.