This repository has been archived on 2023-06-10. You can view files and clone it, but cannot push or open issues or pull requests.
homeassistant-config/packages/climate/climate_scripts.yaml.disabled

256 lines
8.3 KiB
Plaintext
Raw Normal View History

2022-07-30 15:58:01 +00:00
## -------------------------------------------------------------------------------------------------##
## Scripts: um einzelne Temperaturen zu setzen da Variable Fehler ausgibt (BUG)
## Ugly but working....
## -------------------------------------------------------------------------------------------------##
script:
climate_set_15_0:
sequence:
- service: climate.turn_off
entity_id: climate.kai
climate_set_15_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "15.50"
hvac_mode: "heat"
climate_set_16_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "16.00"
hvac_mode: "heat"
climate_set_16_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "16.50"
hvac_mode: "heat"
climate_set_17_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "17.00"
hvac_mode: "heat"
climate_set_17_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "17.50"
hvac_mode: "heat"
climate_set_18_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "18.00"
hvac_mode: "heat"
climate_set_18_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "18.50"
hvac_mode: "heat"
climate_set_19_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "19.00"
hvac_mode: "heat"
climate_set_19_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "19.50"
hvac_mode: "heat"
climate_set_20_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "20.00"
hvac_mode: "heat"
climate_set_20_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "20.00"
hvac_mode: "heat"
climate_set_21_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "21.00"
hvac_mode: "heat"
climate_set_21_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "21.50"
hvac_mode: "heat"
climate_set_22_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "22.00"
hvac_mode: "heat"
climate_set_22_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "22.50"
hvac_mode: "heat"
climate_set_23_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "23.00"
hvac_mode: "heat"
climate_set_23_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "23.50"
hvac_mode: "heat"
climate_set_24_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "24.00"
hvac_mode: "heat"
climate_set_24_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "24.50"
hvac_mode: "heat"
climate_set_25_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "25.00"
hvac_mode: "heat"
climate_set_25_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "25.50"
hvac_mode: "heat"
climate_set_26_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "26.00"
hvac_mode: "heat"
climate_set_26_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "26.50"
hvac_mode: "heat"
climate_set_27_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "27.00"
hvac_mode: "heat"
climate_set_27_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "27.50"
hvac_mode: "heat"
climate_set_28_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "28.00"
hvac_mode: "heat"
climate_set_28_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "28.50"
hvac_mode: "heat"
climate_set_29_0:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "29.00"
hvac_mode: "heat"
climate_set_29_5:
sequence:
- service: climate.set_temperature
entity_id: climate.kai
data:
temperature: "29.50"
hvac_mode: "heat"
climate_set_off:
sequence:
- service: climate.turn_off
entity_id: climate.kai
climate_set:
alias: Setze Temperatur
sequence:
- service: script.turn_on
data_template:
entity_id: >
{% set temp_set = ( states("sensor.climate_temp_set") | float ) %}
{% if states("input_boolean.climate_power") == "off" %} script.climate_set_off
{% elif temp_set == ( "00.00" | float ) %} script.climate_set_20_5
{% elif temp_set <= ( "15.00" | float ) %} script.climate_set_15_0
{% elif temp_set == ( "15.50" | float ) %} script.climate_set_15_5
{% elif temp_set == ( "16.00" | float ) %} script.climate_set_16_0
{% elif temp_set == ( "16.50" | float ) %} script.climate_set_16_5
{% elif temp_set == ( "17.00" | float ) %} script.climate_set_17_0
{% elif temp_set == ( "17.50" | float ) %} script.climate_set_17_5
{% elif temp_set == ( "18.00" | float ) %} script.climate_set_18_0
{% elif temp_set == ( "18.50" | float ) %} script.climate_set_18_5
{% elif temp_set == ( "19.00" | float ) %} script.climate_set_19_0
{% elif temp_set == ( "19.50" | float ) %} script.climate_set_19_5
{% elif temp_set == ( "20.00" | float ) %} script.climate_set_20_0
{% elif temp_set == ( "20.50" | float ) %} script.climate_set_20_5
{% elif temp_set == ( "21.00" | float ) %} script.climate_set_21_0
{% elif temp_set == ( "21.50" | float ) %} script.climate_set_21_5
{% elif temp_set == ( "22.00" | float ) %} script.climate_set_22_0
{% elif temp_set == ( "22.50" | float ) %} script.climate_set_22_5
{% elif temp_set == ( "23.00" | float ) %} script.climate_set_23_0
{% elif temp_set == ( "23.50" | float ) %} script.climate_set_23_5
{% elif temp_set == ( "24.00" | float ) %} script.climate_set_24_0
{% elif temp_set == ( "24.50" | float ) %} script.climate_set_24_5
{% elif temp_set == ( "25.00" | float ) %} script.climate_set_25_0
{% elif temp_set == ( "25.50" | float ) %} script.climate_set_25_5
{% elif temp_set == ( "26.00" | float ) %} script.climate_set_26_0
{% elif temp_set == ( "26.50" | float ) %} script.climate_set_26_5
{% elif temp_set == ( "27.00" | float ) %} script.climate_set_27_0
{% elif temp_set == ( "27.50" | float ) %} script.climate_set_27_5
{% elif temp_set == ( "28.00" | float ) %} script.climate_set_28_0
{% elif temp_set == ( "28.50" | float ) %} script.climate_set_28_5
{% elif temp_set == ( "29.00" | float ) %} script.climate_set_29_0
{% elif temp_set >= ( "29.50" | float ) %} script.climate_set_29_5
{% else %} script.climate_set_20_5 {% endif %}