Scheduler card/custom component

Ah understand, hadn’t thought of the restriction of the CTRL key on the phone as I do all the setup on my PC. Must admit I can’t think of a situation in which the equivalent applies on a phone :face_with_raised_eyebrow:

Long-press to enter selection mode, where any kind of tap selects an item?

Hi, so many new changes/features :slight_smile: What a great version!!!
I installed and tried to change the temperature steps to 1 (instead of 0.5) for the “cool” and “heat” actions with no success. I am sure that I am missing something. Below is the code:

                        type: 'custom:scheduler-card'
                        title: false
                        discover_existing: false
                        include:
                          - '[[my_climate_entity]]'
                        customize:
                          '[[my_climate_entity]]':
                            exclude_actions:
                              - SET PRESET
                              - SET MODE
                            name: ''
                            actions:
                              - service: set_temperature
                                variable:
                                  field: temperature
                                  step: 1

Without the “actions:” section, I gate the following action list:
image
Following adding the “actions:” section, the “SET TEMPERATURE” actions is being added to the action list (it was not there before) and the temperature gauge for the “cool” and “heat” still steps in 0.5 instead of 1.
What am I missing?
Thanks a lot!

Hi @Motti_Bazar :slight_smile:

You missed a small detail.
Try this:

actions:
  - service: set_temperature
    service_data: {hvac_mode: heat}
    variable:
      field: temperature
      step: 1
  - service: set_temperature
    service_data: {hvac_mode: cool}
    variable:
      field: temperature
      step: 1

The reason is that the ‘cool’ and ‘heat’ actions are not just setting the temperature. They also set the thermostat in the correct operation mode.
So you will have to tell the card which action you mean to change exactly.
I could change it such that your code would result into changing all versions of the set_temperature action.
But currently it will only match actions that have the same service + service_data.

1 Like

Yup, it works :slight_smile:
Thanks a lot for this wonderful card!
Now the only thing I need to find is a simple way to tell the card to send another command for the “off”. I will continue playing with the presets… or maybe you have another idea?

BTW, I am using the name="" option so that the entity will not be displayed on the list (you added this option in one of the latest versions and it worked). Now it is showing:
image
Can you please fix and remove the ": " in the beginning of the line? Thanks a lot!

This should do the job for you:

customize:
  climate:
    actions:
      - service: set_preset_mode
        service_data: {preset_mode: timeroff}

If needed you can hide the other ‘set preset’ action. It shouldn’t interfere anymore…

Check out the new display_options configuration.
You can choose to hide the entity name in the list, you don’t have to leave the name empty anymore.

Last update done but the memory problem remains

Yes, I confirm. I started a new problem. The original was closed.

Good morning :slight_smile:
The preset customization works on the UI side, will need to verify operation with my controller.
Regarding the “display_options”, it works partially for me. The code:

![image|255x500](upload://4OhC9cEsJ0bul0mtufsD6FmVGWF.png) 

The results:
image
The entity name is presented on the list even though I defined that only the action be presented.
What am I doing wrong?

Code again:

display_options:
                              primary_info: '{action}'
                              secondary_info: '{days}{time}'

Thanks!

Works find for me :+1:
Capture3
Don’t know why you have different result.
Make sure to refresh?

I must say all texts are capitalized… Maybe i should change that.

I refreshed and it still provides me with the same issue…
Do you have a suggestion what to try in order to isolate this?

Furthermore, if I do Add–>Cool–>Next–>Save (sets cool to daily at noon), I get the following:
image
The second line is missing.

Maybe it is a behavior that comes out of the specific settings that I am using?
I am adding the card code:

                      card:
                        type: 'custom:scheduler-card'
                        title: false
                        discover_existing: false
                        include:
                          - '[[my_climate_entity]]'
                        customize:
                          '[[my_climate_entity]]':
                            exclude_actions:
                              - SET PRESET
                              - SET MODE
                              - TURN OFF
                            display_options:
                              primary_info:
                                - '{action}'
                              secondary_info:
                                - '{days}{time}'
                            actions:
                              - service: set_preset_mode
                                name: Turn AC Off
                                icon: 'mdi:hvac-off'
                                service_data:
                                  preset_mode: timeroff
                              - service: set_temperature
                                service_data:
                                  hvac_mode: heat
                                variable:
                                  field: temperature
                                  step: 1
                              - service: set_temperature
                                service_data:
                                  hvac_mode: cool
                                variable:
                                  field: temperature
                                  step: 1

Thanks a lot for helping resolve this!

This is due to a bug in the translations in HA itself.
If you switch language, chances are that you will suddenly see the time again.
I implemented a workaround for this bug in v1.9.2, looks like you are not running this version yet.

Regarding your other problem: read the docs…
display_options is not a property in customize.
It applies to the whole card.

I am running v1.9.2…
I will continue working on the display_options issue and will update.
Thanks!

Update: Following changing the display_options settings, it’s working. Absolutely amazing card!!!

Hello
I don’t know if it’s a bug or not (with 1.9.2 version)
Overview-Home-Assistant

As you can see, the first line (with the time) appears or not. Moreover for the same scheduler, sometimes it appears, sometimes not.

Any idea ?

There was a change made in HA that broke the translations for several languages.
I cannot do anything but wait for an update in HA…
The dev team is working on it.