Hi there,
i got a card for temperatur and different hvac modes
type: custom:mod-card
style:
hui-horizontal-stack-card$: |
hui-entities-card {
margin-left: 0px !important;
margin-right: 0px !important;
margin-bottom: 0px !important;
width: 75%;
flex: unset !important;
}
card:
type: horizontal-stack
cards:
- type: entities
entities:
- type: custom:slider-entity-row
entity: climate.wohnzimmer
name: WZ
min: 16
max: 25
step: 1
hide_state: false
icon: mdi:home-outline
state_color: true
- type: vertical-stack
cards:
- type: custom:button-card
entity: climate.wohnzimmer
name: 'off'
icon: mdi:fan-off
show_name: true
show_icon: true
show_state: false
styles:
name:
- color: |
[[[
if (states["climate.wohnzimmer"].state == "off") return 'white';
else return 'grey';
]]]
- font-size: 18px
- align-self: middle
- justify-self: left
- text-transform: lowercase
grid:
- grid-template-areas: '"i n"'
- grid-template-columns: 1fr 45%
- grid-template-rows: 1fr
icon:
- width: 25%
- color: |
[[[
if (states["climate.wohnzimmer"].state == "off") return 'red';
else return 'grey';
]]]
state:
- operator: template
value: '[[[ return entity.attributes.hvac_modes = "off"; ]]]'
color: rgb(255, 0, 0)
tap_action:
action: call-service
service: climate.set_hvac_mode
service_data:
hvac_mode: 'off'
entity_id: climate.wohnzimmer
- type: custom:button-card
entity: climate.wohnzimmer
name: auto
icon: mdi:home-thermometer
show_name: true
show_icon: true
show_state: false
styles:
name:
- color: |
[[[
if (states["climate.wohnzimmer"].state == "auto") return 'white';
else return 'grey';
]]]
- font-size: 18px
- align-self: middle
- justify-self: left
- text-transform: lowercase
grid:
- grid-template-areas: '"i n"'
- grid-template-columns: 1fr 45%
- grid-template-rows: 1fr
icon:
- width: 25%
- color: |
[[[
if (states["climate.wohnzimmer"].state == "auto") return 'green';
else return 'grey';
]]]
state:
- operator: template
value: '[[[ return entity.attributes.hvac_modes = "auto"; ]]]'
color: rgb(255, 0, 0)
tap_action:
action: call-service
service: climate.set_hvac_mode
service_data:
hvac_mode: auto
entity_id: climate.wohnzimmer
- type: custom:button-card
entity: climate.wohnzimmer
name: heat
icon: mdi:fire
show_name: true
show_icon: true
show_state: false
styles:
name:
- color: |
[[[
if (states["climate.wohnzimmer"].state == "heat" && entity.attributes.temperature > 24) return 'white';
else return 'grey';
]]]
- font-size: 18px
- align-self: middle
- justify-self: left
- text-transform: lowercase
grid:
- grid-template-areas: '"i n"'
- grid-template-columns: 1fr 45%
- grid-template-rows: 1fr
icon:
- width: 25%
- color: |
[[[
if (states["climate.wohnzimmer"].state == "heat" && entity.attributes.temperature > 24) return 'orange';
else return 'grey';
]]]
state:
- operator: template
value: '[[[ return entity.attributes.temperature == 24; ]]]'
color: rgb(255, 0, 0)
tap_action:
action: call-service
service: tado.set_climate_timer
service_data:
temperature: 25
time_period: '00:30:00'
entity_id: climate.wohnzimmer
but when i switch to hvac mode = off i dont get the temerature set. Instead i got the current temperature in the room:
is there a way to get the slider to a specific value when hvac is off?