UI-Lovelace-Minimalist / UI

UI-Lovelace-Minimalist is a "theme" for HomeAssistant
https://ui-lovelace-minimalist.github.io/UI/
Other
1.62k stars 432 forks source link

card_thermostat gives error when stepping temp up or down manually #1530

Open kohlerryan opened 1 month ago

kohlerryan commented 1 month ago

Describe the bug card_thermostat gives error when stepping temp up or down manually. First noticed after upgrade to HA 2024.8.1. Error message appears a bottom of screen. See screenshot for error message.

To Reproduce Steps to reproduce the behavior:

  1. Add card_thermostat with these variables set:
    type: custom:button-card
    template: card_thermostat
    entity: climate.living_room_thermostat
    variables:
      ulm_card_thermostat_name: 'Living Room Thermostat'
      ulm_card_thermostat_enable_collapse: true
      ulm_card_thermostat_enable_controls: true
      ulm_card_thermostat_enable_hvac_modes: true
      ulm_card_thermostat_enable_background_color: true
      ulm_card_thermostat_temp_step: 1.0
  2. Click to increase or decrease temp.
  3. See error

Expected behavior Temp should increase by defined step - or default of 1.

Screenshots

image

Additional context I attempted to remove variable ulm_card_thermostat_temp_step:, as well as set it as 1 vs 1.0. Same result.

andrewlelos commented 1 month ago

I'm also having this issue!

Misnaree commented 4 weeks ago

I am also having this issue with the following error: Provided temperature -17.77777777777778 is not valid. Accepted range is 10 to 32.

gintasb commented 3 weeks ago

I've got the same issue after an update to 2024.8. Seems the issue is only with UI Minimalist.

suarezcp87 commented 3 weeks ago

have the same issue

andrewlelos commented 3 weeks ago

Downgrading HA to 2024.7.4 fixed this issue for me

pnaklicki commented 3 weeks ago

Same for me, except it shows that 0.0 is not valid

gintasb commented 3 weeks ago

same here, it shows that 0.0 is not valid.

kohlerryan commented 2 weeks ago

Upgraded to 2024.8.3 and have same issue.

iganeshk commented 1 week ago

Found a fix, this seems to be an issue with climate's service_data. My hvac does not support

target_temp_low
target_temp_high

image

https://github.com/UI-Lovelace-Minimalist/UI/blob/c4079cca5cf51537e4cdb9cb2735dbb9e05354ff/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_thermostat.yaml#L228-L248

https://github.com/UI-Lovelace-Minimalist/UI/blob/c4079cca5cf51537e4cdb9cb2735dbb9e05354ff/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/cards/card_thermostat.yaml#L298-L315

By removing the above lines from card_thermostat.yaml the custom-cards templates under ui_minimalist (default) and of course

now am able to adjust temperature without an issue.