Is there a way to hide the preset mode but keep the operation mode?
Remove preset
section from your config.
Thanks but I do not have a preset section in my config. Code:
- type: 'custom:simple-thermostat'
entity: climate.boiler
layout:
mode:
headings: false
step: row
Add this on the same ‘level’ as layout
control:
hvac:
Mine looks likr this:
type: 'custom:simple-thermostat'
entity: climate.trv_salon
sensors:
- entity: sensor.trv_salon_valve
name: Valve
step_layout: row
control:
hvac:
'off':
name: null
heat:
name: null
auto:
name: null
preset:
none: false
away: false
schedule:
name: Schedule
manual:
name: Manual
complex: false
layout:
mode:
headings: false
step: row
Correction, to this:
control:
hvac: true
This worked. That’s great, thanks!
No problem
Getting this error after adding the component and adding to resources/lovelace:
TypeError: can't define property "entity": Object is not extensible
Anyone seen this error before?
style not working with HA 2021.4.6
I want to hide the control buttons when my thermostat is turned off, but I cannot get the _hide_when_off feature to work.
My original config:
anchors:
simple_thermostat: &simple_thermostat
layout:
step: row #row (-/+)|column (pfeile)
mode: # no text for control buttons
names: false
icons: true
hide:
state: true
label:
temperature: Temperat.
control:
- hvac
[...]
cards:
- type: custom:vertical-stack-in-card
# living room - Wohnzimmer
cards:
# thermostat living room
- type: custom:simple-thermostat
entity: climate.000c9a499b5808
name: Wohnzimmer Thermostat
<<: *simple_thermostat
sensors:
- entity: sensor.hm_thermo_wz_actor_state
name: Ventile
- entity: sensor.hm_thermo_wz_window_state
name: Fenster
- entity: sensor.hm_thermo_wz_active_profile
name: Profil
- type: divider
will show the control buttons permanently. If I change the format to
simple_thermostat: &simple_thermostat
layout:
step: row #row (-/+)|column (pfeile)
mode: # no text for control buttons
names: false
icons: true
hide:
state: true
label:
temperature: Temperat.
control:
- hvac:
_hide_when_off: true
the control buttons disappear permanently even if the thermostat is in ‘heat’ or ‘auto’ mode.
Am I doing something wrong?
Thanks for your input.
@nervetattoo: Very, very cool card. Thanks a LOT for your work.
Yeah, it needs to be an object when you pass additional config to control, so:
control:
hvac:
_hide_when_off: true
The list format you have used only supports (string) name of the mode type
oh, you are right, I missed that.
Thanks, works like a charm.
I’m attempting to hide the “Operation” and “Preset” labels and failing. I see that it’s referenced in this thread, and I’ve read the documentation but either I’m not understanding it or it’s not working for me:
type: 'custom:simple-thermostat'
entity: climate.pool_thermostat
decimals: 0
step_size: 1
fallback: 'Off'
label:
temperature: Pool temperature
hide:
state: true
header:
name: false
icon: false
setpoints:
temperature: null
control:
hvac:
_name: null
'off':
icon: 'mdi:power-off'
cool: false
heat_cool: false
preset:
_name: null
none:
name: Standby
Auxiliary:
name: Swim
sensors:
- entity: climate.pool_thermostat
name: Mode
attribute: hvac_action
- entity: sensor.openweathermap_temperature
name: Air Temperature
decimals: 0
- entity: sensor.openweathermap_humidity
If I add _name: false
, the labels don’t change. If I add _name: something else
, the label changes to “something else”. If I add _name:
or _name: null
, the label remains defaulted to either “Operation” or “Preset”.
What am I doing wrong?
You need to focus on different section. The _name
is intended to really modify name.
You want to remove the label. So in layout:
layout:
mode:
headings: false
Thank you! That did the trick.
Is it possible to configure the component tu use temperature sensor from other entity than climate we set in config? I’m thinking if I can tell my AC unit to use room temperature sensor instead of the built in one
Yes it possible, I suggest you read the documentation.
Well…I did look at GitHub documentation and I wouldn’t ask if I would find something relevant. But I might be tired and well…blind?
Did you search this topic? Your question was asked before: Lovelace: Simple thermostat card - #104 by tyrsen