nervetattoo / simple-thermostat

A different take on the thermostat card for Home Assistant ♨️
MIT License
746 stars 111 forks source link

Hide unused buttons hvac #394

Open BorisAbakumov opened 1 year ago

BorisAbakumov commented 1 year ago

How can I hide unused buttons such as "fan mode", "cooling", while leaving the necessary ones: "off" and "heating"? image

talormanda commented 1 year ago

You need to create a sub-category for hvac and set the buttons you don't want to 'false'. Notice here how heat isn't showing and I have it set to 'false'.

image

BorisAbakumov commented 1 year ago

Hi! the sketch for my example looks like this: type: custom:simple-thermostat entity: climate.bania_kamenka_2 layout: step: row mode: headings: true step_size: 1 control: hvac: 'off': name: Выключить heat: name: false icon: false cool: name: Нагревать icon: mdi:thermometer heat_cool: name: false icon: false fan_only: name: false icon: false

In this example, I can rename the button and give it a different icon. In your example, indeed, it turns out to disable unused buttons, but it is no longer possible to change the name and icon of these buttons:

image