diff --git a/Kuba/main-hub_do zrobienia.yaml b/Kuba/main-hub_do zrobienia.yaml index cf1ece5..95b9e4e 100644 --- a/Kuba/main-hub_do zrobienia.yaml +++ b/Kuba/main-hub_do zrobienia.yaml @@ -25,7 +25,7 @@ substitutions: device_make: "Peak Control - Jan Kocoń" device_model: "ESP32-PoE Main-Hub" project_version: "1.1" - log_level: "DEBUG" + log_level: "INFO" static_ip: "10.10.0.5" gateway: "10.10.0.1" subnet: "255.255.255.0" @@ -63,16 +63,17 @@ esp32: logger: level: "${log_level}" logs: - sensor: WARN atc_mithermometer: WARN esp32_ble_tracker: WARN ble_advertise: WARN - text_sensor: WARN - internal_temperature: WARN - binary_sensor: WARN - switch: WARN - light: WARN - component: WARN + # Uncomment below when log_level is DEBUG to suppress noise: + #sensor: WARN + #text_sensor: WARN + #internal_temperature: WARN + #binary_sensor: WARN + #switch: WARN + #light: WARN + #component: WARN # Enable Home Assistant API api: diff --git a/Kuba/skrawek configuration.yaml b/Kuba/skrawek configuration.yaml new file mode 100644 index 0000000..94f4fd0 --- /dev/null +++ b/Kuba/skrawek configuration.yaml @@ -0,0 +1,299 @@ + +input_boolean: + switch: + name: Grupa ogrzewania + icon: mdi:radiator + +sensor: + - platform: min_max + type: min + name: Srednia Temperatura + round_digits: 1 + entity_ids: + - sensor.temperatura_spa + - sensor.temperatura_kuchnia + - sensor.temperatura_sypialnia + - platform: min_max + type: min + name: Biała Łazienka/WC + round_digits: 1 + entity_ids: + - sensor.temperatura_wc + - sensor.temperatura_lazienka + - platform: hydro_imgw + station_id: "152210170" + ## Temperatury ## + - platform: min_max + type: last + name: Temperatura Antresola + round_digits: 1 + entity_ids: + - esp32_c6_antresola_temperatura + - sensor.antresola_temperatura + - platform: min_max + type: last + name: Temperatura Biuro + round_digits: 1 + entity_ids: + - sensor.esp32_c6_biuro_temperatura + - sensor.main_hub_biuro_temperatura + - platform: min_max + type: last + name: Temperatura Garderoba Duza + round_digits: 1 + entity_ids: + - sensor.esp32_c6_garderoba_duza_temperatura + - ensor.garderoba_duza_temperatura_3 + - platform: min_max + type: last + name: Temperatura Kuchnia + round_digits: 1 + entity_ids: + - sensor.esp32_c6_kuchnia_temperatura + - sensor.main_hub_kuchnia_temperatura + - platform: min_max + type: last + name: Temperatura Lazienka + round_digits: 1 + entity_ids: + - sensor.esp32_c6_lazienka_temperatura + - sensor.main_hub_azienka_temperatura + - platform: min_max + type: last + name: Temperatura Pokoj Dziecka + round_digits: 1 + entity_ids: + - sensor.esp32_c6_pokoj_temperatura + - sensor.pokoj_temperatura_3 + - sensor.czujnik_temp_pokoj_dziecka_temperature + - platform: min_max + type: last + name: Temperatura Serwer + round_digits: 1 + entity_ids: + - sensor.esp32_c6_serwer_temperatura + - sensor.main_hub_serwer_temperatura + - platform: min_max + type: last + name: Temperatura SPA + round_digits: 1 + entity_ids: + - sensor.esp32_c6_spa_temperatura + - sensor.spa_temperatura + - platform: min_max + type: last + name: Temperatura Sypialnia + round_digits: 1 + entity_ids: + - sensor.esp32_c6_sypialnia_temperatura + - sensor.sypialnia_temperatura + - platform: min_max + type: last + name: Temperatura WC + round_digits: 1 + entity_ids: + - sensor.esp32_c6_wc_temperatura + - sensor.main_hub_wc_temperatura + +climate: + - platform: generic_thermostat + name: Całe Mieszkanie + heater: input_boolean.ogrzewanie_cale + target_sensor: sensor.srednia_temperatura_2 + min_temp: 10 + max_temp: 26 + 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: 18 + precision: 0.1 + - platform: generic_thermostat + name: Sypialnia + heater: switch.ogrzewanie_sypialnia + target_sensor: sensor.temperatura_sypialnia + min_temp: 10 + max_temp: 26 + 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: 18 + precision: 0.1 + - platform: generic_thermostat + name: Salon/Kuchnia + heater: switch.ogrzewanie_salon_kuchnia + target_sensor: sensor.temperatura_kuchnia + min_temp: 10 + max_temp: 26 + 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: 18 + precision: 0.1 + - platform: generic_thermostat + name: Biuro + heater: switch.ogrzewanie_biuro + target_sensor: sensor.temperatura_biuro + min_temp: 10 + max_temp: 26 + 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: 18 + precision: 0.1 + - platform: generic_thermostat + name: Biała Łazienka/WC + heater: switch.hub3_out14 + target_sensor: sensor.temperatura_lazienka + min_temp: 10 + max_temp: 26 + 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: 18 + precision: 0.1 + - platform: generic_thermostat + name: Pokój dziecka + heater: switch.ogrzewanie_pokoj_dziecka + target_sensor: sensor.temperatura_pokoj_dziecka + #target_sensor: sensor.czujnik_temp_pokoj_dziecka_temperature + min_temp: 10 + max_temp: 26 + 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: 18 + precision: 0.1 + +input_number: + last_temp_cale_mieszkanie: + min: 10 + max: 26 + step: 0.1 + last_temp_sypialnia: + min: 10 + max: 26 + step: 0.1 + last_temp_salon_kuchnia: + min: 10 + max: 26 + step: 0.1 + last_temp_biuro: + min: 10 + max: 26 + step: 0.1 + last_temp_biala_lazienka_wc: + min: 10 + max: 26 + step: 0.1 + last_temp_pokoj_dziecka: + min: 10 + max: 26 + step: 0.1 + +template: + - sensor: + - name: Średnia Temperatura + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + state: > + {{ states('sensor.srednia_temperatura_2') | float(0) | round(1) }} + - sensor: + - name: Biuro Temperatura + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + state: > + {{ states('sensor.temperatura_biuro') | float(0) | round(1) }} + - sensor: + - name: Garderoba Temperatura + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + state: > + {{ states('sensor.temperatura_garderoba_duza') | float(0) | round(1) }} + - sensor: + - name: Kuchnia Temperatura + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + state: > + {{ states('sensor.temperatura_kuchnia') | float(0) | round(1) }} + - sensor: + - name: Łazienka Temperatura + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + state: > + {{ states('sensor.temperatura_lazienka') | float(0) | round(1) }} + - sensor: + - name: Pokoj Władzia Temperatura + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + state: > + {{ states('sensor.temperatura_pokoj_dziecka') | float(0) | round(1) }} + - sensor: + - name: Serwer Temperatura + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + state: > + {{ states('sensor.temperatura_serwer') | float(0) | round(1) }} + - sensor: + - name: SPA Temperatura + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + state: > + {{ states('sensor.temperatura_spa') | float(0) | round(1) }} + - sensor: + - name: Sypialnia Temperatura + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + state: > + {{ states('sensor.temperatura_sypialnia') | float(0) | round(1) }} + - sensor: + - name: WC Temperatura + unit_of_measurement: "°C" + device_class: temperature + state_class: measurement + state: > + {{ states('sensor.temperatura_wc') | float(0) | round(1) }}