Scheduler card/custom component

Thank you.
I’ll try.

1 Like

This code is ok for me

type: 'custom:scheduler-card'
discover_existing: false
standard_configuration: false
title: Cuisine
time_step: 1
domains:
  climate:
    icon: thermometer
    actions:
      - service: set_temperature
        variable:
          field: temperature
          min: 14
          max: 24
          step: 0.5
      - service: set_hvac_mode
        service_data:
          hvac_mode: 'off'
        name: HVAC to Off
      - service: set_hvac_mode
        service_data:
          hvac_mode: heat
        name: HVAC to Heat
      - service: set_preset_mode
        service_data:
          preset_mode: none
        name: Preset to None
      - service: set_preset_mode
        service_data:
          preset_mode: away
        name: Preset to Away
      - service: turn_on
      - service: turn_off
    include:
      - climate.thermostat_cuisine

So if i well understand, i can use this code and add as many as climate i want to control under the “include"section”.

@guims78 I’m working on a new feature that will help you.
You will only have to tell the card which types of entities you want to see.
The card will calculate the actions.
I think i can release it tomorrow.

1 Like

I tried this code but it don’t match with what i want.
I’d like to set up only 1 schedule for multiples of climate.
This code only include the climate i want to manage under entities but they’re still independant.

Maybe you could use climate_groups… (here) and schedule the group

  - platform: climate_group
    name: 'Climate CHB'
    entities:
    - climate.thermostat_bureau
    - climate.thermostat_cuisine
    - climate.thermostat_hall

Can you share an example of code ?
i tried to add climate_group in schduler_card but i have a lot of errors.

Some of this should be split up over to groups, not domains. You misspelled “platform” as “plateform”.

I corrected “platform” but i don’t find what to split and how.

Actually just rename domains to groups and it should work.

Install the component climate_group and configure it. After you use tis as a climate thermostat

I still have issues

Check your indentation, and don’t take screenshots, actually copy the code and hit the format button.

I think i’m turning around but i don’t find what’s wrong.<
Here is my code :

type: 'custom:scheduler-card'
discover_existing: false
standard_configuration: false
title: Zone Nuit
time_step: 1
groups:
  climate:
    - platform: climate_group
      name: Zone nuit
      entities:
        - climate.thermostat_ch_parent
        - climate.thermostat_dressing
        - climate.thermostat_ch_hugo
        - climate.thermostat_ch_noa
      icon: thermometer
      actions:
        - service: set_temperature
          variable:
            field: temperature
            min: 15
            max: 23
            step: 0.5
        - service: set_hvac_mode
          service_data:
            hvac_mode: 'off'
          name: HVAC to Off
        - service: set_hvac_mode
          service_data:
            hvac_mode: heat
          name: HVAC to Heat
        - service: set_preset_mode
          service_data:
            preset_mode: none
          name: Preset to None
        - service: set_preset_mode
          service_data:
            preset_mode: away
          name: Preset to Away
        - service: turn_on
        - service: turn_off

Add climate group on climate.yaml, not here !!!

1 Like

Ok, thank for precisions.

I added a thermostat_nuit.yaml in my climate folder (i’va split my configuration).
But the new climate doesn’t appear in my Schedule Card.

image

this is the group. Climate group is a climate thermostat it’s contain multiples thermostats…

Here we’re talking about building a climate_group and as a result we’re a bit off topic…

Tank you, i forgot to add the include section.

I have another question :
can we use differents scheduler_card ?
for exemple, one for Climate, one for Lights, …