ha-fusion icon indicating copy to clipboard operation
ha-fusion copied to clipboard

Problem with a Climate Entity - Wrong Value / Attribute used for Target Temperature

Open Tra1n84 opened this issue 1 year ago • 4 comments

Hej,

I have noticed that an incorrect attribute is being used for the Target temperature at the module for Climate entities: image

The climate module is using the Max. Temperature (see red marking, attribute max_temp) instead of Temperature (see green marking, attribute temperature). See Attributes for this Climate entity from the Developer Tools: image

Could you please check this behavior? Or is something wrong on my side?

Thanks & Best regards Thomas

Tra1n84 avatar Jan 30 '24 11:01 Tra1n84

I have the same problem at one from thirteen modules. The other modules work correctly.

patricknitsch avatar Jan 30 '24 11:01 patricknitsch

You're right. I dont have this with other Climate entities either. That's really strange as the other Climate entities tested are of the same Homematic type as the one with the described problem...

With another climate entity of the same model / interface it is correct: image

image

Now the question is why?

Tra1n84 avatar Jan 30 '24 12:01 Tra1n84

I have the same issue for only some climate entities. The issue happens here: https://github.com/matt8707/ha-fusion/blob/94cd223610a61d3510b303be745f140c27d6d855/src/lib/Components/WheelPicker.svelte#L54

value is -1 because my temp is with .1 precision: 12.3, and that doesn't match any calculated temperatures between min and max, so the first value is selected,

We should then somehow factor in the step, perhaps from target_temp_step you have in the screenshot above. But then my entities don't have that...: obraz

anarion80 avatar Jan 30 '24 12:01 anarion80

Sorry, but shouldn't this commit fix this: image image ?

mucki12 avatar Apr 24 '24 20:04 mucki12