Skip to content

Commit

Permalink
Merge pull request #158 from vincentwolsink/cache
Browse files Browse the repository at this point in the history
Attempt at setting sane cache values
  • Loading branch information
vincentwolsink authored Sep 23, 2024
2 parents 148a34b + 8303ed5 commit 25112bc
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions custom_components/enphase_envoy/envoy_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Generic endpoints
"info": {
"url": "https://{}/info.xml",
"cache": 20,
"cache": 86400,
"installer_required": False,
"optional": False,
},
Expand All @@ -15,13 +15,13 @@
},
"production_v1": {
"url": "https://{}/api/v1/production",
"cache": 20,
"cache": 0,
"installer_required": False,
"optional": False,
},
"production_inverters": {
"url": "https://{}/api/v1/production/inverters",
"cache": 20,
"cache": 0,
"installer_required": False,
"optional": False,
},
Expand All @@ -33,32 +33,32 @@
},
"production_power": {
"url": "https://{}/ivp/mod/603980032/mode/power",
"cache": 20,
"cache": 300,
"installer_required": False,
"optional": True,
},
"pdm_energy": {
"url": "https://{}/ivp/pdm/energy",
"cache": 20,
"cache": 0,
"installer_required": True,
"optional": False,
},
# Battery endpoints
"ensemble_inventory": {
"url": "https://{}/ivp/ensemble/inventory",
"cache": 20,
"cache": 0,
"installer_required": False,
"optional": True,
},
"ensemble_secctrl": {
"url": "https://{}/ivp/ensemble/secctrl",
"cache": 20,
"cache": 0,
"installer_required": False,
"optional": True,
},
"ensemble_power": {
"url": "https://{}/ivp/ensemble/power",
"cache": 20,
"cache": 0,
"installer_required": False,
"optional": True,
},
Expand All @@ -71,27 +71,27 @@
},
"devstatus": {
"url": "https://{}/ivp/peb/devstatus",
"cache": 20,
"cache": 0,
"installer_required": True,
"optional": False,
},
"pcu_comm_status": {
"url": "https://{}/installer/pcu_comm_check",
"cache": 90,
"cache": 3600,
"installer_required": True,
"optional": True,
},
# Netprofile endpoints
"installer_agf": {
"url": "https://{}/installer/agf/index.json",
"cache": 10,
"cache": 3600,
"installer_required": True,
"optional": True,
},
# Tariff endpoints
"admin_tariff": {
"url": "https://{}/admin/lib/tariff",
"cache": 10,
"cache": 300,
"installer_required": False,
"optional": True,
},
Expand Down

0 comments on commit 25112bc

Please sign in to comment.