nielsfaber / scheduler-component

Custom component for HA that enables the creation of scheduler entities
GNU General Public License v3.0
631 stars 41 forks source link

Step size of temperature slider #244

Closed ltjessem closed 1 year ago

ltjessem commented 1 year ago

Is there a way to either increase the step size of the temperature slider, for example to 0.5 or 1°C, or to decrease its range?

Reason being is that it's difficult to select say 20°C without flopping back and forth between 19.9 and 20.1 on mobile. For my particular use case the range of 7-35°C is also too large and makes it even more difficult to select the exact temperature I need.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

ltjessem commented 1 year ago

Still an issue

nielsfaber commented 1 year ago

The timestep used by the card is defined by your climate device. If you want to customize this, please follow the procedure here: https://github.com/nielsfaber/scheduler-card#customizing-built-in-actions (note that the step parameter defines the step size.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

ltjessem commented 1 year ago

I can't find anything there that would solve this. You're thinking of time step while I'm talking about temp step. image

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

ltjessem commented 1 year ago

Still relevant.

nielsfaber commented 1 year ago

I can't find anything there that would solve this. You're thinking of time step while I'm talking about temp step.

No I'm not. In my previous response I pointed to this code example:

customize:
  climate.my_tuya_thermostat:
    exclude_actions:
      - heat       # hide the built-in action to avoid duplicates
      - set mode   # we won't use this
      - set preset # we won't use this
    actions:       # add the custom actions
      - service: set_temperature
        service_data:
          hvac_mode: auto
        variables:
          temperature:
            min: 10
            max: 25
            step: 0.5
            unit: '°C'
        icon: 'hass:fire'
        name: "heat[ to {temperature}]" # replace with local translation for 'heat' and 'to' if desired

the section variables defines the settings for the temperature slider. So you can set your own range (min/max) and also the step size for the slider. By default, the card will follow the setting of your climate device (target_temp_step property).

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days