Skip to content

Commit

Permalink
minor domoticz fixes/defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuinigeRijder committed May 7, 2023
1 parent f42c686 commit 983e05a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Byte-compiled / optimized / DLL files
.vscode/
__pycache__/
*.py[cod]
*$py.class
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ Change in soliscloud_to_pvoutput.cfg the following lines with your above obtaine
* pvoutput_system_id = 12345
* send_to_domoticz = False
* domot_url = http://192.168.0.222:8081
* domot_power_generated_id = 214
* domot_ac_volt_id = 215
* domot_power_generated_id = 0
* domot_ac_volt_id = 0
* domot_inverter_temp_id = 0
* domot_volt_id = 0

Expand Down
4 changes: 2 additions & 2 deletions soliscloud_to_pvoutput.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pvoutput_system_id = 12345
[Domoticz]
send_to_domoticz = False
domot_url = http://192.168.0.222:8081
domot_power_generated_id = 214
domot_ac_volt_id = 215
domot_power_generated_id = 0
domot_ac_volt_id = 0
domot_inverter_temp_id = 0
domot_volt_id = 0
2 changes: 1 addition & 1 deletion soliscloud_to_pvoutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def main_loop():
send_pvoutput_data(pvoutput_string)

if SEND_TO_DOMOTICZ:
if DOMOTICZ_POWER_GENERATED_ID:
if DOMOTICZ_POWER_GENERATED_ID != 0:
send_to_domoticz(
str(DOMOTICZ_POWER_GENERATED_ID),
str(watt) + ";" + str(hi_res_watthour_today),
Expand Down

0 comments on commit 983e05a

Please sign in to comment.