homeassistant/packages/air_conditioning.yaml
2025-11-03 14:29:43 +01:00

121 lines
4.3 KiB
YAML

# Klimatizace
homeassistant:
customize_domain:
climate:
# hvac_modes: auto, cool, dry, fan_only, heat, off
hvac_modes:
- heat
- cool
- dry
- fan_only
- "off"
input_select:
air_conditioner:
name: Klimatizace
options:
- livingroom
- bathroom
- bedroom
- childrensroom
- guestroom
initial: livingroom
icon: mdi:air-conditioner
template:
- sensor:
# Klimatizace - aktuální teplota
- unique_id: ac_livingroom_current_temperature
name: "AC Livingroom Current temperature"
unit_of_measurement: "°C"
icon: mdi:thermometer
state: >
{{ state_attr('climate.ac_livingroom', 'current_temperature') }}
- unique_id: ac_bathroom_current_temperature
name: "AC Bathroom Current temperature"
unit_of_measurement: "°C"
icon: mdi:thermometer
state: >
{{ state_attr('climate.ac_bathroom', 'current_temperature') }}
- unique_id: ac_bedroom_current_temperature
name: "AC Bedroom Current temperature"
unit_of_measurement: "°C"
icon: mdi:thermometer
state: >
{{ state_attr('climate.ac_bedroom', 'current_temperature') }}
- unique_id: ac_childrensroom_current_temperature
name: "AC Childrensroom Current temperature"
unit_of_measurement: "°C"
icon: mdi:thermometer
state: >
{{ state_attr('climate.ac_childrensroom', 'current_temperature') }}
- unique_id: ac_guestroom_current_temperature
name: "AC Guestroom Current temperature"
unit_of_measurement: "°C"
icon: mdi:thermometer
state: >
{{ state_attr('climate.ac_guestroom', 'current_temperature') }}
# Klimatizace - režimm automatizace
- unique_id: ac_mode
name: "AC Mode"
icon: mdi:hvac
state: >
{% if ((11,1) <= (now().month, now().day)) or ((now().month, now().day) <= (3,31)) %}
heat
{% elif (7,1) <= (now().month, now().day) <= (8,31) %}
cold
{% else %}
none
{% endif %}
# Korekce teploty: Teplota, kterou měří jednotka - skutečná v místnosti
- unique_id: livingroom_temperature_correction
name: "Livingroom Temperateure Correction"
unit_of_measurement: "°C"
icon: mdi:thermometer-check
state: >
{{ (states('sensor.ac_livingroom_current_temperature')|float - states('sensor.livingroom_thermometer_hygrometer_temperature')|float) | round(0) }}
- unique_id: bathroom_temperature_correction
name: "Bathroom Temperateure Correction"
unit_of_measurement: "°C"
icon: mdi:thermometer-check
state: >
{{ (states('sensor.ac_bathroom_current_temperature')|float - states('sensor.bathroom_thermometer_hygrometer_temperature')|float) | round(0) }}
- unique_id: bedroom_temperature_correction
name: "Bedroom Temperateure Correction"
unit_of_measurement: "°C"
icon: mdi:thermometer-check
state: >
{{ (states('sensor.ac_bedroom_current_temperature')|float - states('sensor.bedroom_thermometer_hygrometer_temperature')|float) | round(0) }}
- unique_id: childrensroom_temperature_correction
name: "Childrensroom Temperateure Correction"
unit_of_measurement: "°C"
icon: mdi:thermometer-check
state: >
{{ (states('sensor.ac_childrensroom_current_temperature')|float - states('sensor.childrensroom_thermometer_hygrometer_temperature')|float) | round(0) }}
- unique_id: guestroom_temperature_correction
name: "Guestroom Temperateure Correction"
unit_of_measurement: "°C"
icon: mdi:thermometer-check
state: >
{{ (states('sensor.ac_guestroom_current_temperature')|float - states('sensor.guestroom_thermometer_hygrometer_temperature')|float) | round(0) }}
climate:
- platform: generic_thermostat
name: Heating mirror
heater: switch.upper_bathroom_heating_mirror
target_sensor: sensor.upper_bathroom_thermometer_hygrometer_temperature
min_temp: 16
max_temp: 24
ac_mode: false
target_temp: 22
cold_tolerance: 0.3
hot_tolerance: 0
min_cycle_duration:
seconds: 5
keep_alive:
minutes: 3
initial_hvac_mode: "off"
away_temp: 16
precision: 1