Hi George,
This is my card:
- type: 'custom:simple-thermostat'
name: false
control:
hvac:
another_mode: false
away: false
'off':
icon: 'mdi:power'
name: 'OFF'
'on':
icon: false
name: 'ON'
some_mode: false
entity: climate.zhimi_heater_mc2_5c_e5_0c_e0_1a_f7
sensors:
- entity: sensor.plug_heater_energy_today
name: Energy Today
- entity: sensor.plug_heater_energy_power
name: Power
- entity: sensor.electricity_cost_monthly
name: Cost
- attribute: min_temp
name: Min temp
step_size: 1
Please note that information related to power usage is coming from a smart plug…
I have now updated my card as below:
type: entities
title: Mi Heater
show_header_toggle: false
entities:
- type: 'custom:simple-thermostat'
name: false
control:
hvac:
another_mode: false
away: false
'off':
icon: 'mdi:power'
name: 'OFF'
'on':
icon: false
name: 'ON'
some_mode: false
entity: climate.zhimi_heater_mc2_5c_e5_0c_e0_1a_f7
sensors:
- entity: sensor.plug_heater_energy_today
name: Energy Today
- entity: sensor.plug_heater_energy_power
name: Power
- entity: sensor.electricity_cost_monthly
name: Cost
- attribute: min_temp
name: Min temp
step_size: 1
style: |
ha-card {
border-radius: 15px;
background-color: rgba(0,0,0,0);
box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.0);
border: solid 1px rgba(25,25,25,1.0);
}
- type: 'custom:mini-graph-card'
hours_to_show: 24
points_per_hour: 12
animate: false
decimals: 1
height: 200
show:
icon: false
name: false
state: true
fill: true
labels: true
labels_secondary: false
extrema: false
lower_bound: 18
upper_bound: 25
line_width: 3
hour24: true
state_map:
- label: 'Off'
value: '0'
- label: 'On'
value: '1'
entities:
- entity: sensor.thermostat_temperature
name: Temperature
color: orange
show_fill: false
show_legend: true
show_points: true
smoothing: true
- entity: sensor.thermostat_setting
name: Thermostat
color: red
show_fill: false
show_line: true
show_points: true
smoothing: false
- entity: sensor.xiaomi_heater_switch
name: Switch
color: 'rgba(57,255,35,1)'
show_fill: true
show_line: false
show_legend: false
show_points: false
smoothing: false
style: |
ha-card {
border-radius: 15px;
background-color: rgba(0,0,0,0);
box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.0);
border: solid 1px rgba(25,25,25,1.0);
}