I have setup Hive integration and got this working well, I’m now working on the dashboard to easily manage this. Below is the code so far and two points I’m struggling with to get working.
- How do I increase the size of the temperatures on the right and not just the text on the left?
- When pressing any of the buttons how do you change the button colour for 5 seconds while its loading?
type: vertical-stack
cards:
- type: entities
entities:
- entity: sensor.thermostat_1_current_temperature
name: Living Room Temp
card_mod:
style:
hui-generic-entity-row:
$: |
state-badge {
display: none;
}
.info {
margin-left:0 !important;
font-size: 20px;
}
- entity: sensor.thermostat_temperature
name: Oliver's Room Temp
card_mod:
style:
hui-generic-entity-row:
$: |
state-badge {
display: none;
}
.info {
margin-left:0 !important;
font-size: 20px;
}
- entity: sensor.thermostat_1_boost
card_mod:
style:
hui-generic-entity-row:
$: |
state-badge {
display: none;
}
.info {
margin-left:0 !important;
font-size: 20px;
}
- entity: sensor.thermostat_1_state
name: State
card_mod:
style:
hui-generic-entity-row:
$: |
state-badge {
display: none;
}
.info {
margin-left:0 !important;
font-size: 20px;
}
- type: conditional
conditions: []
card:
square: true
type: grid
cards:
- show_name: true
show_icon: true
type: button
entity: sensor.thermostat_1_boost
name: Boost 30
icon: mdi:fire
show_state: false
tap_action:
action: call-service
service: hive.boost_heating_on
target: {}
data:
entity_id: climate.thermostat_1
time_period: '00:30:00'
temperature: 20
hold_action:
action: none
- show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: hive.boost_heating_on
target: {}
data:
entity_id: climate.thermostat_1
time_period: '00:45:00'
temperature: 20
entity: sensor.thermostat_1_boost
name: Boost 45
icon: mdi:fire
hold_action:
action: none
show_state: false
- show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: hive.boost_heating_on
target: {}
data:
entity_id: climate.thermostat_1
time_period: '00:60:00'
temperature: 20
entity: sensor.thermostat_1_boost
name: Boost 60
icon: mdi:fire
hold_action:
action: none
show_state: false
columns: 3
- type: conditional
conditions:
- condition: state
entity: sensor.thermostat_1_boost
state: 'ON'
card:
type: horizontal-stack
cards:
- type: entity
entity: sensor.thermostat_1_boost
icon: mdi:clock-digital
attribute: Boost ends in
name: Boost ends in
state_color: true
- show_name: true
show_icon: true
type: button
tap_action:
action: call-service
service: hive.boost_heating_off
target: {}
data:
entity_id: climate.thermostat_1
entity: sensor.thermostat_1_boost
hold_action:
action: none
name: Cancel
icon: mdi:fire-off