Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .cspell/custom-dictionary-workspace.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
activepower
adata
adbase
afci
AIO
AIO's
aiohttp
Expand Down Expand Up @@ -47,6 +48,7 @@ dasharray
datain
datap
datapoints
datas
dayname
daynumber
daysymbol
Expand All @@ -67,6 +69,8 @@ elif
emszzzz
enctype
endfor
endhour
endminute
endt
Energi
Energidata
Expand All @@ -75,6 +79,8 @@ energydataservice
epod
euids
evse
fdpwr
fdsoc
feedin
fentry
Fingerbot
Expand Down Expand Up @@ -137,6 +143,7 @@ luxpower
markdownlint
matplotlib
maximise
maxsoc
mdlrc
measurand
measurands
Expand All @@ -147,6 +154,7 @@ metricb
metricmid
minb
minmax
minsocongrid
minuteb
Mixergy
mkdocs
Expand Down Expand Up @@ -234,6 +242,8 @@ solisx
sourcery
Southwell
springfall
starthour
startminute
startt
stdlib
stepline
Expand All @@ -243,6 +253,7 @@ tabindex
tasmota
tdata
tdiff
temperation
testname
thirdparty
timea
Expand All @@ -265,6 +276,7 @@ venv
Wallbox
weblink
welink
workmode
writeonly
xaxis
xaxistooltip
Expand Down
12 changes: 12 additions & 0 deletions apps/predbat/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from web import WebInterface
from ha import HAInterface
from db_manager import DatabaseManager
from fox import FoxAPI
import os

COMPONENT_LIST = {
Expand Down Expand Up @@ -88,6 +89,17 @@
},
},
},
"fox": {
"class": FoxAPI,
"name": "Fox API",
"event_filter": "predbat_fox_",
"args": {
"key": {
"required": True,
"config": "fox_key",
},
},
},
}


Expand Down
27 changes: 27 additions & 0 deletions apps/predbat/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1693,6 +1693,33 @@
"charge_discharge_with_rate": False,
"target_soc_used_for_discharge": False,
},
"FoxCloud": {
"name": "FoxCloud",
"has_rest_api": False,
"has_mqtt_api": False,
"output_charge_control": "power",
"charge_control_immediate": False,
"has_charge_enable_time": True,
"has_discharge_enable_time": True,
"has_target_soc": True,
"has_reserve_soc": True,
"has_timed_pause": False,
"charge_time_format": "HH:MM:SS",
"charge_time_entity_is_option": True,
"soc_units": "%",
"num_load_entities": 1,
"has_ge_inverter_mode": False,
"time_button_press": False,
"clock_time_format": "%Y-%m-%d %H:%M:%S",
"write_and_poll_sleep": 2,
"has_time_window": False,
"support_charge_freeze": True,
"support_discharge_freeze": True,
"has_idle_time": False,
"can_span_midnight": False,
"charge_discharge_with_rate": False,
"target_soc_used_for_discharge": True,
},
}

# Control modes for Solax inverters
Expand Down
Loading