Thermostat card - Add the ability to show additional informations

It needs an entity and possibly attribute to track. You should create an input number helper entity so the slider has something to track, and then create an automation to set the input number back to 0 when the timer ends.

This is the code from the slider:

type: slider
entity_id: number.zhimi_zb1a_a860_countdown_time
range:

  • 0
  • 8
    tap_action:
    action: perform-action
    perform_action: number.set_value
    data:
    value: β€˜{{ value | float }}’
    target:
    entity_id: number.zhimi_zb1a_a860_countdown_time
    step: 1
    unit_of_measurement: h
    icon: mdi:clock-outline
    value_attribute: min
    label: Heating Schedule
    haptics: true
    styles: β€˜β€™
    state: null

State is not a valid field and value_attribute should not be set since you’re tracking the entity state.

type: slider
entity_id: number.zhimi_zb1a_a860_countdown_time
tap_action:
  action: perform-action
  perform_action: number.set_value
  data:
    value: β€˜{{ value | float }}’
  target:
    entity_id: number.zhimi_zb1a_a860_countdown_time
step: 1
range:
  - 0
  - 8 
unit_of_measurement: h
icon: mdi:clock-outline
label: Heating Schedule
haptics: true

If you’re on the latest version of custom features, you should be able to do all of this using the configuration UI and not have to touch YAML anymore.