From af3e5f740a40c1de653bc3d8998bf80b8e770d80 Mon Sep 17 00:00:00 2001 From: Jimmy Everling Date: Fri, 28 Jun 2024 16:31:22 +0200 Subject: [PATCH 1/4] Fixed Nanoe mode --- custom_components/panasonic_cc/panasonic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/panasonic_cc/panasonic.py b/custom_components/panasonic_cc/panasonic.py index fa4e4ac..9cc3e66 100644 --- a/custom_components/panasonic_cc/panasonic.py +++ b/custom_components/panasonic_cc/panasonic.py @@ -104,7 +104,7 @@ async def do_update(self): self._swing_lr_mode = data.parameters.horizontal_swing_mode.name self._hvac_mode = data.parameters.mode.name self._eco_mode = data.parameters.eco_mode.name - self._nanoe_mode = data.parameters.nanoe_mode.name + self._nanoe_mode = data.parameters.nanoe_mode except Exception as e: _LOGGER.debug("Failed to set data for device {id}".format(**self.device)) From d69589bac2531c6c806e7b06c1bcc5300e6a65a3 Mon Sep 17 00:00:00 2001 From: Jimmy Everling Date: Fri, 28 Jun 2024 20:52:59 +0200 Subject: [PATCH 2/4] Fixed Eco/Boost presets --- custom_components/panasonic_cc/panasonic.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/custom_components/panasonic_cc/panasonic.py b/custom_components/panasonic_cc/panasonic.py index 9cc3e66..2c90b7c 100644 --- a/custom_components/panasonic_cc/panasonic.py +++ b/custom_components/panasonic_cc/panasonic.py @@ -317,13 +317,16 @@ async def set_preset_mode(self, preset_mode: str) -> None: """Set new preset mode.""" _LOGGER.debug("Set %s ecomode %s", self.name, preset_mode) data = { - "power": constants.Power.On + "power": constants.Power.On, + "eco": constants.EcoMode.Auto } if self.in_summer_house_mode and preset_mode != PRESET_8_15: await self._exit_summer_house_mode(data) - if PRESET_LIST[preset_mode] in self.constants.EcoMode: - data["eco"] = constants.EcoMode[ PRESET_LIST[preset_mode] ] + if preset_mode == PRESET_ECO: + data["eco"] = constants.EcoMode.Quiet + elif preset_mode == PRESET_BOOST: + data["eco"] = constants.EcoMode.Powerful elif preset_mode == PRESET_8_15: await self._enter_summer_house_mode() data["mode"] = constants.OperationMode.Heat From ea937239d01db2e1c2137c0cd67975f0e0372202 Mon Sep 17 00:00:00 2001 From: Jimmy Everling Date: Fri, 28 Jun 2024 20:55:26 +0200 Subject: [PATCH 3/4] Removed the use out temp if inside i invalide --- .../panasonic_cc/pcomfortcloud/panasonicdevice.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/custom_components/panasonic_cc/pcomfortcloud/panasonicdevice.py b/custom_components/panasonic_cc/pcomfortcloud/panasonicdevice.py index 9088810..5788c14 100644 --- a/custom_components/panasonic_cc/pcomfortcloud/panasonicdevice.py +++ b/custom_components/panasonic_cc/pcomfortcloud/panasonicdevice.py @@ -110,9 +110,7 @@ def _load_temperature(self, json): if 'outTemperature' in json and json['outTemperature'] != constants.INVALID_TEMPERATURE: self.outside_temperature = json['outTemperature'] - if self.inside_temperature is None and self.outside_temperature is not None: - self.inside_temperature = self.outside_temperature - self.outside_temperature = None + From 966930b1ef0992c0c71b507d72a8809ff11815ea Mon Sep 17 00:00:00 2001 From: Jimmy Everling Date: Fri, 28 Jun 2024 20:57:37 +0200 Subject: [PATCH 4/4] Version bump --- custom_components/panasonic_cc/manifest.json | 2 +- .../panasonic_cc/pcomfortcloud/panasonicdevice.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/custom_components/panasonic_cc/manifest.json b/custom_components/panasonic_cc/manifest.json index 9023640..fb10a98 100644 --- a/custom_components/panasonic_cc/manifest.json +++ b/custom_components/panasonic_cc/manifest.json @@ -2,7 +2,7 @@ "domain": "panasonic_cc", "name": "Panasonic Comfort Cloud", "after_dependencies": ["http"], - "version": "1.0.49", + "version": "1.0.50", "config_flow": true, "documentation": "https://github.com/sockless-coding/panasonic_cc/", "dependencies": [], diff --git a/custom_components/panasonic_cc/pcomfortcloud/panasonicdevice.py b/custom_components/panasonic_cc/pcomfortcloud/panasonicdevice.py index 5788c14..374bf4b 100644 --- a/custom_components/panasonic_cc/pcomfortcloud/panasonicdevice.py +++ b/custom_components/panasonic_cc/pcomfortcloud/panasonicdevice.py @@ -111,9 +111,6 @@ def _load_temperature(self, json): self.outside_temperature = json['outTemperature'] - - - def _load_swing_mode(self, json): if 'airSwingLR' in json: try: