Lovelace: Simple thermostat card

Sure it is, use card-mod to configure it to your needs and wishes. :slight_smile:

PS: If you have questions about that, you should ask in the card-mod thread. :slight_smile:

1 Like

If anyone is interested, I was able to color the icon and the temperature when in heating mode.

While NOT heating :

While heating :

Here is the yaml :

type: custom:simple-thermostat
entity: climate.entryway
layout:
  mode:
    icons: true
  step: column
header: null
control: false
step_size: '0.5'
style: |
  ha-card.heating .current--value,
  ha-card.heating ha-icon.header__icon {
    color: red;
  }
11 Likes

Hi,
is there a way to dynamically set icons sensor based on states, instead have a fix icon? I can’t got it inside the card using icon template in yaml

I am sure it must be in this thread or the config github. I just for the life of me can’t find it!

This is my current card:

screenshot.2021-10-18

I was wondering how I can cut out some of the fan modes that are being displayed as it is just too many. Ie. Skip auto, medium, very-high, etc.

Try

control:
  fan:
    some_mode: false
    another_mode: false

Customize is your friend here. :slight_smile:

homeassistant:
  customize:
    climate.livingroom_ac:
      hvac_modes:
        - 'off'
        - 'cool'
        - 'dry'
        - 'fan_only'
      swing_modes:
        - 'off'
        - 'vertical'

:slight_smile:

Thanks @binaryMind & @paddy0174 for the replies. I ended up going with this which works perfect for me:

          control: 
            hvac:
              heat_cool: false
              dry: false
            fan: 
              auto: false
              medium-low: false
              medium-high: false
              very-high: false

Just to add a little context, sorry, should have done that before. :slight_smile:

“Customize” changes the behaviour all over, where as “control” is only changing that one card. :slight_smile: So if you, like me, never use the heating function, you can disable it at all. Makes sense in my case, as I don’t want to change the behaviour in every view, where I setup a thermostat-card. :slight_smile:

Is it possible to display a attribute state for Status: ? Now it shows the state of my entity: climate.vicare_heating but i want to use attribute “active_vicare_program” instead. So i want to change the part after Status: where it now shows “Inactief (Auto)”.

Thermo

Please have a look at: https://github.com/nervetattoo/simple-thermostat/blob/9c274465b5c513e9e6a82d9670f52807ba173233/examples/sensors.md

1 Like

Sorry, anyone got an idea on this?

Hi everyone,
is there any way to remove the current temperature? I am using the simple-thermostat for a thermostatic valve that does not report current temperature (I take it from another sensor) and this is what it shows (not very nice):

Did you see my link in the post above? You should be able to use you sensorvalue as the value for Currently I think.

1 Like

Hi CalcU,
Did you find an answer to this?

This is exactly what I have been looking for to override the Currently temperature. However, I am having trouble making it work. I want to replace the default Currently with this sensor:
sensor.smoke_detector_air_temperature

I was thinking it was as easy as this code:

sensors:
  - id: temperature
    label: '{{ui.currently}}'
    template: '{{sensor.smoke_detector_air_temperature|formatNumber}}'

Am I missing something?

Edit: I failed to include version: 3. However, when I do, my entire Lovelace goes blank. So…a new problem.

Version: 3 should not be needed anymore, this functionality is present in the release-version.

Regarding your problem, see in examples/sensors.md, under: “Use a different entity as context”.

Something like:

sensors:
  - id: temperature
    label: '{{ui.currently}}'
    entity: sensor.smoke_detector_air_temperature

Thanks for the help. I was able to do that, but where I am confused is how to replace the N/A value after Currently with this value from the Smoke Detector.
image

See my updated above answer.
Also, maybe there still needs to be a template-line. Just try out some stuff.

Hmmmm…I just cannot get it to budge. At all. Nothing about that field.

Here is my code. Even when I change the label, it does not reflect a change at all. What am I missing in the process?

type: custom:simple-thermostat
entity: climate.ac_in_top_floor_living_room
sensors:
  - id: temperature
    label: '{{ui.currently}}'
    template: '{{states.sensor.smoke_detector_air_temperature|formatNumber}}'
control:
  hvac:
    heat: true
    'off': true
    cool: true
    heat_cool: false
    dry: false
    fan_only: false
  preset:
    boost: false
    eco: false
    none: false
  fan:
    Auto:
      name: Auto
      icon: hass:fan
    Low:
      name: Low
      icon: hass:fan
    LowMid: false
    Mid:
      name: Mid
      icon: hass:fan
    HighMid: false
    High:
      name: High
      icon: hass:fan
layout:
  mode:
    headings: false
    names: true
    icons: true
  step: column
step_size: '1'
decimals: '0'

Looks like this is working for me

          - type: custom:simple-thermostat
            entity: climate.xyz
            version: 3
           ... some text in-between...
            sensors:
              - entity: sensor.smoke_detector_air_temperature
                id: temperature
                label: "{{ui.currently}}"
                template: "{{state.text}} {{unit_of_measurement}}"
              - id: state
                label: State
                template: "{{hvac_action}}"

This replaces the Currently and the State parts on the screen. The State part is needed otherwise the name changes to Operation.