Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

climate max and min temperature #45

Open
arebollom opened this issue Oct 13, 2020 · 6 comments
Open

climate max and min temperature #45

arebollom opened this issue Oct 13, 2020 · 6 comments

Comments

@arebollom
Copy link

Hello,

I think there is a bug when applying the variable "temp_divider" since it should not apply to min_temp and max_temp.
This variable should be only for target_temperature

Max:
image

Min:
image
broken because es lower than 4ºc

@arebollom
Copy link
Author

arebollom commented Oct 13, 2020

I have solved it locally, divided the two value:

    def min_temp(self):
        return self._set_decimal(self.data.get("min_temper"),1)

    def max_temp(self):
        return self._set_decimal(self.data.get("max_temper"),1)

@ollo69
Copy link
Owner

ollo69 commented Oct 13, 2020

At this moment I'm working on standard Tuya component to move back this component feature.
I don't think that rule than min_temp and max_temp must not be divided is always valid, more probably your device is an exception.
I will eventually add the possibility to also define min and max as separate parameter in standard integration.

@edubox
Copy link

edubox commented Oct 17, 2020

Same problem here, I can't set temperature higher than 18º

@ollo69
Copy link
Owner

ollo69 commented Oct 17, 2020

Please be patient. This will be fixed soon in standard Tuya integration, working on this...

@edubox
Copy link

edubox commented Oct 19, 2020

Please be patient. This will be fixed soon in standard Tuya integration, working on this...

Thanks! Not rush, just to inform :) Thanks for your job

@browetd
Copy link

browetd commented Oct 30, 2020

Same problem here (with aixi-SHS Wireless Wi-Fi thermostat). Before version HA 0.117, the temperature was 10 times the real temperature now it is 10 times smaller (I think)... with "official Tuya" integrated in HA or Tuya-Custom but Tuya-custom seems to give more acurate temperature than "official Tuya". Example: in Tuya App, current temperature is 12.5°C, target temperature is 5°C, min temp is 5°C and max temp is 35°C, here is what I have in HA with Tuya-custom (the hvac_modes is strange too: heat_cool (?) but I can change my automations if these are the new modes, the only correct information for me is the target temperature step equal to 0.5°C):

climate.XXXXXX heat_cool hvac_modes: off, heat_cool
min_temp: 0.1
max_temp: 12.2
target_temp_step: 0.5
current_temperature: 1.2
temperature: 0.5
tuya_device_id: XXXXXXX
friendly_name: Salle de Bain Etage
supported_features: 1

Thank you for your help and hard work !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants