Skip to content

Commit af2f7a9

Browse files
author
speleolontra
committed
Solved issue Info Setpoint Mode not correct #31
1 parent 1f84b2e commit af2f7a9

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

custom_components/daikin_residential_altherma/daikin_base.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
PRESET_COMFORT: "comfortMode",
6565
PRESET_ECO: "econoMode",
6666
PRESET_TANK_ONOFF: "onOffMode",
67-
PRESET_SETPOINT_MODE: "setpointMode"
67+
#PRESET_SETPOINT_MODE: "setpointMode" DAMIANO
6868
}
6969

7070
DAIKIN_HVAC_TO_HA = {
@@ -92,8 +92,6 @@ async def init(self):
9292
raise NotImplementedError
9393

9494
def getCommandSet(self, param):
95-
#print("DAMIANO getCommandSet param = %s",param)
96-
9795
if param in HA_PRESET_TO_DAIKIN.values():
9896
def keyByVal(dict,v):
9997
for k, v in dict.items():
@@ -441,9 +439,9 @@ def support_heatupMode(self):
441439
return self.getData(ATTR_TANK_HEATUP_MODE) is not None
442440

443441
@property
444-
def is_in_warning_state(self):
442+
def heatupMode(self):
445443
"""Return current heatupMode."""
446-
return self.getValue(ATTR_IS_IN_WARNING_STATE)
444+
return self.getValue(ATTR_TANK_HEATUP_MODE)
447445

448446
@property # ATTR_TANK_IS_HOLIDAY_MODE_ACTIVE
449447
def support_tank_is_holiday_mode_active(self):

custom_components/daikin_residential_altherma/device.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,16 @@ def get_data(self, managementPoint=None, dataPoint=None, dataPointPath=""):
187187
# return all data
188188
return self.managementPoints
189189

190-
# DAMIANO Control_mode
190+
# DAMIANO control_mode
191191
if dataPoint == "controlMode" and dataPointPath == "":
192192
# return data from one managementPoint and dataPoint
193193
return self.managementPoints[managementPoint][dataPoint]
194194

195+
# DAMIANO setpoint_mode
196+
if dataPoint == "setpointMode" and dataPointPath == "":
197+
# return data from one managementPoint and dataPoint
198+
return self.managementPoints[managementPoint][dataPoint]
199+
195200
# DAMIANO heatupMode
196201
if dataPoint == "heatupMode" and dataPointPath == "":
197202
# return data from one managementPoint and dataPoint

0 commit comments

Comments
 (0)