{"record":{"id":"19bb2378f63b37ce","repo":"home-assistant/core","slug":"failed-to-set-clsp","errorCode":"failed_to_set_clsp","errorMessage":"Failed to set cooling setpoint","messagePattern":"Failed to set cooling setpoint","errorType":"exception","errorClass":"HomeAssistantError","httpStatus":null,"severity":"error","filePath":"homeassistant/components/bryant_evolution/climate.py","lineNumber":225,"sourceCode":"    @override\n    async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None:\n        \"\"\"Set new target hvac mode.\"\"\"\n        if hvac_mode == HVACMode.HEAT_COOL:\n            hvac_mode = HVACMode.AUTO\n        if not await self._client.set_hvac_mode(hvac_mode):\n            raise HomeAssistantError(\n                translation_domain=DOMAIN, translation_key=\"failed_to_set_hvac_mode\"\n            )\n        self._attr_hvac_mode = hvac_mode\n        self._async_write_ha_state()\n\n    @override\n    async def async_set_temperature(self, **kwargs: Any) -> None:\n        \"\"\"Set new target temperature.\"\"\"\n        if value := kwargs.get(ATTR_TARGET_TEMP_HIGH):\n            temp = int(value)\n            if not await self._client.set_cooling_setpoint(temp):\n                raise HomeAssistantError(\n                    translation_domain=DOMAIN, translation_key=\"failed_to_set_clsp\"\n                )\n            self._attr_target_temperature_high = temp\n\n        if value := kwargs.get(ATTR_TARGET_TEMP_LOW):\n            temp = int(value)\n            if not await self._client.set_heating_setpoint(temp):\n                raise HomeAssistantError(\n                    translation_domain=DOMAIN, translation_key=\"failed_to_set_htsp\"\n                )\n            self._attr_target_temperature_low = temp\n\n        if value := kwargs.get(ATTR_TEMPERATURE):\n            temp = int(value)\n            fn = (\n                self._client.set_heating_setpoint\n                if self.hvac_mode == HVACMode.HEAT\n                else self._client.set_cooling_setpoint","sourceCodeStart":207,"sourceCodeEnd":243,"githubUrl":"https://github.com/home-assistant/core/blob/58a3fdb3ea0538617f0a07efcfba6294de64fd59/homeassistant/components/bryant_evolution/climate.py#L207-L243","documentation":"HomeAssistantError with translation_key 'failed_to_set_clsp' (cooling setpoint), raised in async_set_temperature when ATTR_TARGET_TEMP_HIGH is provided but set_cooling_setpoint() returns falsy. The gateway did not confirm the cooling setpoint write; the cached target_temperature_high is only updated on success.","triggerScenarios":"Setting target_temp_high via the climate entity or automation while the gateway is offline or rejects the write; stale client session; value out of the range accepted by the system.","commonSituations":"Automations lowering cooling setpoints on schedule during gateway downtime; UI slider changes failing after network blips; setpoint outside the system's allowed band.","solutions":["Verify gateway connectivity and retry after the next successful coordinator/entity refresh","Reload the integration if failures persist to rebuild the session","Keep the requested setpoint within the thermostat's allowed range","Retry the automation step — transient write failures usually clear immediately"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"# Range-check before the call (system-dependent bounds)\nMIN_CLSP, MAX_CLSP = 60, 99  # degrees, per your system configuration\nif MIN_CLSP <= temp <= MAX_CLSP:\n    await climate.async_set_temperature(target_temp_high=temp)","typeGuard":null,"tryCatchPattern":"try:\n    await climate.async_set_temperature(target_temp_high=75)\nexcept HomeAssistantError as err:\n    if 'failed_to_set_clsp' in str(err):\n        # setpoint write not acknowledged; retry after gateway recovers","preventionTips":["Keep cooling setpoints within the thermostat's configured range","Retry scheduled setpoint automations when the gateway is reachable"],"tags":["bryant-evolution","climate","setpoint","cooling","command-failure","home-assistant"],"backgroundTag":null,"analyzedSha":"58a3fdb3ea0538617f0a07efcfba6294de64fd59","analyzedAt":"2026-08-14T20:54:38.818Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}