Open sybrenstuvel opened 3 months ago
In https://github.com/esphome/issues/issues/6080#issuecomment-2249584866 @ssieb wrote:
The visual settings are hard values for the interface. If you want to go past those limits, then change them. The only fix here would be to stop it from allowing values entered outside those limits.
I'm fine with those settings being hard values for the interface. However, if the interface doesn't allow going past 20°, and the actual value is 40°, reconfirming the 20° should IMO set the value back to 20°. It shouldn't leave it at 40°.
I'm fine with those settings being hard values for the interface. However, if the interface doesn't allow going past 20°, and the actual value is 40°, reconfirming the 20° should IMO set the value back to 20°. It shouldn't leave it at 40°.
I agree, I cant think of why it would not set it to 20°.
I think the real but is in the climate component. If there are min and max values set in the config you should not be able to set the target to a value out of bound.
The problem
With Web Interface v3, sliders can be long-pressed to edit their value in a text field. However, if the currently-set value is out of bounds for the slider (in my case, it's larger than the UI max), the slider malfunctions:
In my case I have this issue with the Climate/PID control.
Which version of ESPHome has the issue?
2024.7.2
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
No response
What platform are you using?
ESP32
Board
Self-made PCB with an ESP-WROOM-32 module
Component causing the issue
web
Example YAML snippet
Anything in the logs that might be useful for us?
The slider limits are configured in the Climate control's
visual
section, and thus are not hard limits to the allowed value. They are just meant as min/max for the slider interface. This makes me expect that I would be able to set any value in the numerical input. This isn't the case, though.To give an example of how I'd expect it to work: Blender also has value sliders, with two bounds: a 'soft' bound for the slider, and a 'hard' bound for the values. This means that it's possible to make the slider work comfortably in the 5-20 °C range, while accepting any temperature when it's numerically entered. I think that's quite a nice UI, although I'm sure that implementing this is out of scope for this bug report ;-)
This bug report is really about this case: