Skip to content

Commit

Permalink
Set heat_pump_mode_raw and increased timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Big-Tree committed Jun 11, 2024
1 parent 00f09fb commit bda89ae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/optispark/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ async def _api_wrapper(
data['dynamo_data'] = floats_to_decimal(data['dynamo_data'])
data_serialised = self.json_serialisable(data)

async with async_timeout.timeout(40):
async with async_timeout.timeout(120):
response = await self._session.request(
method=method,
url=url,
Expand Down
3 changes: 2 additions & 1 deletion custom_components/optispark/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

NAME = "Optispark"
DOMAIN = "optispark"
VERSION = "0.2.5"
VERSION = "0.2.6"
ATTRIBUTION = "Data provided by http://jsonplaceholder.typicode.com/"

LAMBDA_TEMP_CONTROLS = 'temp_controls'
Expand All @@ -24,6 +24,7 @@
LAMBDA_USER_HASH = 'user_hash'
LAMBDA_INITIAL_INTERNAL_TEMP = 'initial_internal_temp'
LAMBDA_OUTSIDE_RANGE = 'outside_range'
LAMBDA_HEAT_PUMP_MODE_RAW = 'heat_pump_mode_raw'

HISTORY_DAYS = 28 # the number of days initially required by our algorithm
DYNAMO_HISTORY_DAYS = 365*2
Expand Down
1 change: 1 addition & 0 deletions custom_components/optispark/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def __init__(
const.LAMBDA_USER_HASH: user_hash,
const.LAMBDA_INITIAL_INTERNAL_TEMP: None,
const.LAMBDA_OUTSIDE_RANGE: False,
const.LAMBDA_HEAT_PUMP_MODE_RAW: 'HEATING',
const.LAMBDA_HOME_ASSISTANT_VERSION: const.VERSION
}
self._lambda_update_handler = LambdaUpdateHandler(
Expand Down
2 changes: 1 addition & 1 deletion custom_components/optispark/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/Big-Tree/HomeAssistant-OptiSpark/issues",
"requirements": ["geopy==2.4.1"],
"version": "0.2.5"
"version": "0.2.6"
}

0 comments on commit bda89ae

Please sign in to comment.