nervetattoo / simple-thermostat

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

Change display state to other #307

Open pepsonEL opened 2 years ago

pepsonEL commented 2 years ago

Hi I have a thermostat that is setup by MQTT. It has state AUTO, DAY, NIGHT and OFF. State Auto is ok as AUTO, but state DAY in my thermostat is set as HEAT and NIGHT as COOL. OFF is also as OFF. In mode i create icon for day night and also name but when i set mode DAY it display in state as HEATING and when set NIGHT it show in state as COOLING. Is any chance to change it to display DAY and NIGHT ? screen

tenkaibr commented 2 years ago

``Same problem here. My "Dry mode" is "Eco mode".

I know it has this option but I still can't get it to work.

hvac|fan|preset|swing object|bool: The key of the mode type (hvac, preset, fan, swing)
_name string: Override the name of the mode type
_hide_when_off bool: Hides the mode type selection row when the entity is off. Defaults to false shown
{mode} string: Name of mode type to control
name string|bool: Specify a custom name or set to false to show only the icon
icon string|bool: Specify a custom icon or set to false to not show icon

Found a solution:

control:
  hvac:
    dry:
      name: ECO
maitre666 commented 2 years ago

Same Problem to me in Homematic Enviromet ... Auto = correct, it´s the automatic mode off my Homematic Radiator Modul Off = correct, my Homematic Radiator Module is turning off Heat = false, this is in real life the "manually mode" of my Homematic Radiator Modul (keeps the choosen temperature so long, as you change the mode to off or auto).

Below a Screenshot

So I want to change the Color of "heat" away from orange and change the name form ("heat" to "manually" or rather the german translate form "Heizen" to "Manuell").

@tenkaibr sounds your solution discribes a way to change the name, but i don´t know in which file to implement the code. May you give me a hint?

grafik

tenkaibr commented 2 years ago

@tenkaibr sounds your solution discribes a way to change the name, but i don´t know in which file to implement the code. May you give me a hint?

From what I learned it is not possible to rename the current mode. It is only possible to change the name of the button.

For example: you change heat to eco. But when activating the eco button, heat will appear in the mode.

This change you make on the card itself.

As for the color, you will have to change the css in the simple-thermostat.js file

Search for "--heat-color: " and change it to the color you want.