Climat controle

Hello! I still can not figure out how to manage all climate components by one card. Like I choose 23 degrees and Home Assistant automatically does what should be done to set that temperature in each room.

Maybe there is no such component yet and I should wrote it to feature requests?

I only found schedy but it seems to be complicated and uses appdaemon.

It’s not exactly clear what you want to do. It sounds like you want to have a frontend “slider” entity/card that you can change, and then you want the value of that entity to be used to set the target temperature of multiple climate entities. Is that it? If not, please provide more details.

It is really close. But it is not as hard to do.

Would be great if Home assistant could get temperature from your sensor and when A/C will make needed temperature - it would turn it off.

If I just set 23 on A/C it would work forever. And it is not needed

And I am not sure how thermostats like nest work, but I am wondering to get similar output.

Guys, any help on that?
I am thinking about UI slider to choose the temperature, then it is set on a/c and then when needed temperature will be reached - a/c turns off
So I need an automation which will take a number from UI, send it to a/c and wait until temperature at the room will be needed then turn a/c off

I am mostly frustrated with part of setting needed temperature to a/c. It should be data_template but I do not really understand how to make that

Here is the start of automation

- id: '1524471095031'
  alias: Climate controle
  initial_state: 'on'
  trigger:
    platform: state
    entity_id: input_number.slider1
  condition:
    condition: state
    entity_id: input_boolean.climate_controle
    state: 'on'
  action:
  - data:
      entity_id: climate.remotec_zxt_120ru_cooling_1
      temperature: '????'
    service: climate.set_temperature
  - wait_template: "???"

Am I inventing a wheel? Is there easier solution?

Doesn’t your climate entity already have controls for that? E.g., here’s what my nest thermostat looks like in the frontend. To change the temperature set point you simply move the dot around the circle.

image

Floot thermostat does exactly that, but not a/c. Don’t know about yours, but mine seems to be an idiot :slight_smile:
When it cools the room to needed temperature It will not stop. It will just fan and waste electricity. And in most cases it even will go lower than needed temperature (I set up 23C (73F) it reaches 23C but continues cooling the room down)

And yes, I do have controls like that

It does sound like your A/C thermostat isn’t working correctly. But, I think I understand what you’re trying to do. I’d suggest something like this:

- id: '1524471095031'
  alias: Climate controle
  initial_state: 'on'
  trigger:
    platform: state
    entity_id: input_number.slider1
  condition:
    condition: state
    entity_id: input_boolean.climate_controle
    state: 'on'
  action:
  - data_template:
      entity_id: climate.remotec_zxt_120ru_cooling_1
      temperature: "{{ states('input_number.slider1') }}"
    service: climate.set_temperature
- id: xxxxx
  alias: A/C temp reached
  trigger:
    platform: template
    value_template: >
      {{ state_attr('climate.remotec_zxt_120ru_cooling_1',
                    'current_temperature')|float
         <= states('input_number.slider1')|float }}
  condition:
    condition: state
    entity_id: input_boolean.climate_controle
    state: 'on'
  action:
    service: climate.turn_off
    entity_id: climate.remotec_zxt_120ru_cooling_1
1 Like

Hey there! I have a little bit different case now. I was not sure if I could do that, but it seems to be plausible.
I would like to emulate a thermostat with home assistant

If temp is less than slider’s - turn the relay on. Turn the relay off when temperature is one degree above slider’s (or something like that)

I am going to buy electric valves which are controlled by relays. When electric valve is open - temperature is getting higher, closed - temperature is getting down. So I would like to set needed temperature from UI and HA to control the relays.

Will your automation with little difference work here?


- id: '1524471095031'
  alias: Climate controle
  initial_state: 'on'
  trigger:
    platform: template
    value_template: >
      {{ state_attr('climate.test',
                    'current_temperature')|float
         > states('input_number.slider1')|float }}
  condition:
    condition: state
    entity_id: input_boolean.climate_controle
    state: 'on'
  action:
    entity_id: switch.test
    service: switch.turn_on



- id: '1524375095211'
  alias: A/C temp reached
  trigger:
    platform: template
    value_template: >
      {{ state_attr('climate.test',
                    'current_temperature')|float
         <= states('input_number.slider1')|float }}
  condition:
    condition: state
    entity_id: input_boolean.climate_controle
    state: 'on'
  action:
    entity_id: switch.test
    service: switch.turn_on

Sorry, never did respond. Not sure where you are on this, but I’d at least change a couple things in what you proposed:


- id: '1524471095031'
  alias: Climate controle
  initial_state: 'on'
  trigger:
    platform: template
    value_template: >
      {{ state_attr('climate.test',
                    'current_temperature')|float
         >= states('input_number.slider1')|float + 1 }}
  condition:
    condition: state
    entity_id: input_boolean.climate_controle
    state: 'on'
  action:
    entity_id: switch.test
    service: switch.turn_off

- id: '1524375095211'
  alias: A/C temp reached
  trigger:
    platform: template
    value_template: >
      {{ state_attr('climate.test',
                    'current_temperature')|float
         < states('input_number.slider1')|float }}
  condition:
    condition: state
    entity_id: input_boolean.climate_controle
    state: 'on'
  action:
    entity_id: switch.test
    service: switch.turn_on

Thank you for coming back here
Actually I am having trouble with turning off a switch by a slider. I can not still test your part of automation, but I am testing part with turning on and off by choosing the temperature on a slider

Here is what mean:

- id: '1521471125035'
  alias: Climate controle stop by slider
  initial_state: 'on'
  trigger:
    platform: state
    entity_id: input_number.slider1
  condition:
  - condition: state
    entity_id: input_boolean.climate_controle
    state: 'on'
  - condition: template
    value_template: >
      {{ state_attr('sensor.temperature_158d00022833b3',
                    'current_temperature')|float
         > states('input_number.slider1')|float +1 }}
  action:
    entity_id: switch.wall_switch_left_158d000245c5ca
    service: switch.turn_off

This one does not work. There is 23 degree and I choose 19 on a slider. But the same thing works if I use “<” not “>” and choose higher temperature (25)

The same thing with another try:

- id: '1524471135032'
  alias: Climate controle start by slider
  initial_state: 'on'
  trigger:
    platform: state
    entity_id: input_number.slider1
  condition:
  - condition: state
    entity_id: input_boolean.climate_controle
    state: 'on'
  action:
  - service: script.turn_on
    data_template: 
      entity_id: >-
        {% if state_attr('sensor.temperature_158d00022833b3',
                    'current_temperature')|float
         >= states('input_number.slider1')|float %}
          script.15517601202334
        {% elif state_attr('sensor.temperature_158d00022833b3',
                    'current_temperature')|float
         < states('input_number.slider1')|float %}
          script.15517601122012
        {% endif %}

One script turns switch on and second one - off. Again works only one which turns on. Maybe you know what is wrong here?

It’s not clear what “doesn’t work” means to you. But the first question is, why are you using the input_number as the trigger? This means it will only trigger when you change the input_number, not when the temperatures change.

I use 4 automations now.
First two triggers are - room temperature getting lower or higher than set temperature
And more two triggers - set the temperature on slider.
I need them both to work. Now I am stuck with turning on and off “heater” by setting up the temperature on slider.