Lovelace: Dark Thermostat (BETA)

hello.
was there any changes in ha code recently, idle/heat status isn’t shown on card - no color changes.
my ui code:

                      - type: custom:thermostat-card
                        entity: climate.living_room_thermostat                    
                        step: 1    
                        highlight_tap: true
                        chevron_size: 100
                        hvac:
                          states:
                            'Off': 'off'
                            'Cooling': 'cool'
                            'Heating': 'heat'
                          attribute: operation_mode
2 Likes

will you be starting a new thread for this card specifically?

1 Like

Is there an option to change the height?

I’ve noticed that quite often the thermostat card doesn’t reflect the heating state or leaf state of the Nest. Recently this has been extra highlighted by the fact I’m currently and temporarily running two HA instances (connected to the same thermostat) while I try to manually upgrade to the latest version… this is such a large undertaking I couldn’t be without Home Assistant for the days while I get everything ready for the big switchover.

Anyway I’ve got HA instance one running at home on a Pi and HA instance two running at work on a Pi. But because Nest is hosted in the cloud they’re both able to collect the Nest info.

Weirdly, on my Home Pi, the thermostat card is currently showing current colouring and status for the fact my heating has been off for two hours.

dsasda

while my work Pi is showing a thermostat card giving every impression the heating is ON, when it isn’t.

dsadsad

Anyway as I say, I’ve noticed this before I was running two instances that the card sometimes doesn’t update the colour and the leaf to reflect the true state of the Nest - anyway I can help this? It’s not that the card isn’t aware of the correct underlying sensors, because as you can see, the temperature is correct and I’ve checked dev state and BOTH Pis know full well the thermostat is in " has leaf " mode.

dasdasdasdasd
.
dasdasdasd

Any tips welcome!!

EDIT I did some more reading and changed my lovelace config to add hvac status:

      - type: 'custom:thermostat-card'
        title: Thermostat
        entity: climate.upstairs
        chevron_size: 100
        hvac:
          states:
            'Off': 'off'
            Cooling: cool
            Heaing: heat
          attribute: operation_mode

this seems to have fixed the problem with incorrect colours, but now the leaf has gone! Not the end of the world, but strange, nonetheless.

Thanks!

Hi all
Does anyone succeeded fixing the size of the card (without auto scaling)?
I’m trying to make mixed cards and the auto scale with this card is really a problem.
appreciate any help.

Hi guys, should be this card able to show “Auto” mode with two setpoints as shown in OP’s first post or not? I think it worked for me before but now i’m not able to manage that. Or am i going crazy? :smiley:

1 Like

[au190] Thermostat card. Contribute to au190/au190_thermostat_card development by creating an account on GitHub.

HACS tells me this when I try to add your repository: “Repository is in the blacklist”

I managed to get this added but…

I’m not seeing the display turning orange when in heating mode. My nest entity’s attributes are:

friendly_name: Living Room Nest Thermostat
entity_id: climate.living_room_nest_thermostat
unit_of_measure: °C
supported_features: 17
min_temp: 7
max_temp: 32
precision: 0.1
hvac_mode: heat
fan_mode: none
fan_timer_out: off
preset_mode: 
preset_modes: eco
hvac_modes: heat, off
current_temperature: 22.3
current_humidty: 46
hvac_action: heating
temperature: 24

My hvac_action options are ‘idle’ and ‘heating’
Card config:

type: 'custom:thermostat-card'
title: nest
entity: climate.living_room_nest_thermostat
step: 1
highlight_tap: true
chevron_size: 100
hvac:
  states:
    'Off': idle
    Cooling: cooling
    Heating: heating
  attribute: hvac_action

I’ve also tried:

hvac:
  states:
    idle: 'off'
    cooling: cool
    heating: heat
  attribute: hvac_action
1 Like

Somehow I got the orange while heating to work…

@dbrunt, how did you manage to change the color to orange? also, did you get yours from HACS? I got mine from HACS but it looks different because when I fill up the “title”, it appears inside the face of the thermostat, above the temperature. From the screenshots I see on here, the title should be outside the face of the thermostat.

I uninstalled the one from HACS and manually copied the one from github and it’s working now. :slight_smile:

Yes, the one in HACS is different: fineemb custom:thermostat-card. Too bad @ciotlosm doesn’t structure his repository with hacs.json so it could be added via HACS.

{
  "name": "Climate thermostat card",
  "render_readme": true,
  "filename":"main.js"
}
1 Like

I’ll have a look if I can make it work with hacs. Been busy times :slight_smile:
I’ll try to post here once I have something working

This card is now managed in HACS. Latest refactoring found here: https://github.com/ciotlosm/lovelace-thermostat-dark-card

For those reporting bugs with state, this should be better supported out of the box, as the card now complies more with the standard hvac_action and action being heating & such.

Also for ‘leaf’ it uses preset_mode now with default triggers being eco and away.

3 Likes

Hi,

I want to use this implementation (only the graphics) with temperature and humidity sensors.
Is there any way to do that?

Cheers,

Unfortunately this was built for climate entities. It would require too many mods to allow only temperature & humidity. Best would be to fork it and rebuild it, or to start over from the codepen source as a fresh card.

Hello,

how I can change the size of the card?

There should be a diameter property that you could use for sizing. Might not be as reliable, but you could give it a try.

Update: Apparently the diameter size is not working properly. There is an enhancement request to get this fixed, I will post here when resolved.

Hi all, newbie here getting to grips with Home Assistant and very new to coding, yaml etc. so apologises if my questions are on the “dumb” side.

I have been able to add my Nest Thermostat to Home Assistant but come across this forum on making the Lovelace card look like the thermostat itself.

Is there a step by step guide on how to add this into my HA? Do I need to install HACS first to get this working?