Add icon for manual mode (#2036)

* Add icon for manual mode

* Added state.climate.manual to translations

* Added manual color blue
This commit is contained in:
TomMini 2018-11-14 04:32:50 +01:00 committed by Zack Arnett
parent 4407da9364
commit 8a9762dd93
2 changed files with 7 additions and 1 deletions

View File

@ -33,6 +33,7 @@ const thermostatConfig = {
const modeIcons = { const modeIcons = {
auto: "hass:autorenew", auto: "hass:autorenew",
manual: "hass:cursor-pointer",
heat: "hass:fire", heat: "hass:fire",
cool: "hass:snowflake", cool: "hass:snowflake",
off: "hass:power", off: "hass:power",
@ -195,6 +196,7 @@ export class HuiThermostatCard extends hassLocalizeLitMixin(LitElement)
--auto-color: green; --auto-color: green;
--cool-color: #2b9af9; --cool-color: #2b9af9;
--heat-color: #ff8100; --heat-color: #ff8100;
--manual-color: #44739e;
--off-color: #8a8a8a; --off-color: #8a8a8a;
--unknown-color: #bac; --unknown-color: #bac;
} }
@ -211,6 +213,9 @@ export class HuiThermostatCard extends hassLocalizeLitMixin(LitElement)
.heat { .heat {
--mode-color: var(--heat-color); --mode-color: var(--heat-color);
} }
.manual {
--mode-color: var(--manual-color);
}
.off { .off {
--mode-color: var(--off-color); --mode-color: var(--off-color);
} }

View File

@ -182,7 +182,8 @@
"performance": "Performance", "performance": "Performance",
"high_demand": "High demand", "high_demand": "High demand",
"heat_pump": "Heat pump", "heat_pump": "Heat pump",
"gas": "Gas" "gas": "Gas",
"manual": "Manual"
}, },
"configurator": { "configurator": {
"configure": "Configure", "configure": "Configure",