diff --git a/Kuba/config esphome b/Kuba/config esphome new file mode 100644 index 0000000..4c46404 --- /dev/null +++ b/Kuba/config esphome @@ -0,0 +1,687 @@ +sensor.main_hub_uptime_sensor;main-hub Uptime Sensor + + sensor.main_hub_biuro_temperatura;main-hub Biuro Temperatura + + sensor.main_hub_biuro_nawil_enie;main-hub Biuro Nawilżenie + + sensor.main_hub_biuro_bateria;main-hub Biuro Bateria + + sensor.main_hub_serwer_temperatura;main-hub Serwer Temperatura + + sensor.main_hub_serwer_nawil_enie;main-hub Serwer Nawilżenie + + sensor.main_hub_serwer_bateria;main-hub Serwer Bateria + + sensor.main_hub_kuchnia_temperatura;main-hub Kuchnia Temperatura + + sensor.main_hub_kuchnia_nawil_enie;main-hub Kuchnia Nawilżenie + + sensor.main_hub_kuchnia_bateria;main-hub Kuchnia Bateria + + sensor.main_hub_wc_temperatura;main-hub WC Temperatura + + sensor.main_hub_wc_nawil_enie;main-hub WC Nawilżenie + + sensor.main_hub_wc_bateria;main-hub WC Bateria + + sensor.main_hub_azienka_temperatura;main-hub Łazienka Temperatura + + sensor.main_hub_azienka_nawil_enie;main-hub Łazienka Nawilżenie + + sensor.main_hub_azienka_bateria;main-hub Łazienka Bateria + + binary_sensor.hub1_in0;Wejście 1 + + binary_sensor.hub1_in1;Wejście 3 + + binary_sensor.hub1_in2;Wejście 2 + + binary_sensor.hub1_in3;Sypialnia 3 + + binary_sensor.hub1_in4;Sypialnia 1 + + binary_sensor.hub1_in5;Sypialnia 2 + + binary_sensor.hub1_in6;Łóżko Prawa Strona + + binary_sensor.hub1_in7;Łóżko Lewa Strona + + binary_sensor.hub1_in8;Pokój dla Gości Lewy + + binary_sensor.hub1_in9;Pokój dla Gości Prawy + + binary_sensor.main_hub_hub1_in10;main-hub hub1_in10 + + binary_sensor.main_hub_hub1_in11;main-hub hub1_in11 + + binary_sensor.main_hub_hub1_in12;main-hub hub1_in12 + + binary_sensor.main_hub_hub1_in13;main-hub hub1_in13 + + binary_sensor.main_hub_hub1_in14;main-hub hub1_in14 + + binary_sensor.main_hub_hub1_in15;main-hub hub1_in15 + + binary_sensor.hub2_in0;Korytarz 2 + + binary_sensor.hub2_in1;Korytarz 3 + + binary_sensor.hub2_in2;Korytarz 1 + + binary_sensor.hub2_in3;Mały Korytarz + + binary_sensor.hub2_in4;Mała Garderoba + + binary_sensor.hub2_in5;Kuchnia 3_1 + + binary_sensor.hub2_in6;Kuchnia 3_2 + + binary_sensor.hub2_in7;Kuchnia 2_1 + + binary_sensor.hub2_in8;Kuchnia 2_2 + + binary_sensor.hub2_in9;Kuchnia 1_1 + + binary_sensor.hub2_in10;Kuchnia 1_2 + + binary_sensor.hub2_in11;Schody 3 + + binary_sensor.hub2_in12;Schody 1 + + binary_sensor.hub2_in13;Schody 2 + + binary_sensor.main_hub_hub2_in14;main-hub hub2_in14 + + binary_sensor.main_hub_hub2_in15;main-hub hub2_in15 + + binary_sensor.hub3_in0;Duża Garderoba Lewy + + binary_sensor.hub3_in1;Duża Garderoba Prawy + + binary_sensor.hub3_in2;SPA Lewy + + binary_sensor.hub3_in3;SPA Prawy + + binary_sensor.hub3_in4;Łazienka Ściana + + binary_sensor.hub3_in5;WC Prawy + + binary_sensor.hub3_in6;WC Lewy + + binary_sensor.hub3_in7;Łazienka Skos + + binary_sensor.hub3_in8;SPA Lustro L + + binary_sensor.hub3_in9;SPA Lustro R + + binary_sensor.hub3_in10;Biuro + + binary_sensor.hub3_in11;Serwer Prawy + + binary_sensor.hub3_in12;Serwer Lewy + + binary_sensor.main_hub_hub3_in13;main-hub hub3_in13 + + binary_sensor.main_hub_hub3_in14;main-hub hub3_in14 + + binary_sensor.main_hub_hub3_in15;main-hub hub3_in15 + + switch.hub1_out1;SPA Kinkiet Lustro + + switch.hub1_out2;Biuro + + switch.hub1_out3;Kuchnia Halogen + + switch.hub1_out4;SPA Wentylator + + switch.hub1_out5;Kanciapa pod schodami + + switch.hub1_out7;Garderoba Duża + + switch.hub1_out8;Jadalnia + + switch.hub1_out9;WC Lustro + + switch.hub1_out10;SPA Halogeny + + switch.hub1_out13;Mały Korytarz Kinkiet + + switch.hub1_out14;Korytarz Halogeny + + switch.hub1_out15;Wejście Halogeny + + switch.hub2_out0;Łazienka Sufit + + switch.hub2_out1;Sypialnia Łóżko Prawa strona + + switch.hub2_out2;WC Sufit + + switch.hub2_out3;Mały Korytarz Sufit + + switch.hub2_out4;Łazienka Skos + + switch.hub2_out5;WC Wentylator + + switch.hub2_out7;Sypialnia Halogen + + switch.hub2_out8;Łazienka Sufit + + switch.hub2_out10;Pokój Gościnny Sufit + + switch.hub2_out11;Salon Plafon + + switch.hub2_out12;Sypialnia Łóżko Lewa strona + + switch.hub2_out13;SPA Zwisy + + switch.hub2_out14;Mała Garderoba + + switch.hub3_out0;Wolne wyjście + + switch.hub3_out1;Wolne wyjście + + switch.hub3_out2;Wentylator Główny Obieg + + switch.hub3_out3;Ogrzewanie Kuchnia + + switch.hub3_out4;Ogrzewanie jadalnia/salon + + switch.hub3_out5;Ogrzewanie Salon kanapa + + switch.hub3_out6;Ogrzewanie Spa + + switch.hub3_out7;Ogrzewanie Korytarz + + switch.hub3_out8;Ogrzewanie Pokój Dziecka 2 + + switch.hub3_out9;Ogrzewanie Biuro serwer + + switch.hub3_out10;Ogrzewanie Biuro + + switch.hub3_out11;Ogrzewanie Pokój Dziecka 1 + + switch.hub3_out12;Ogrzewanie Garderoba + + switch.hub3_out13;Ogrzewanie Sypialnia 2 + + switch.hub3_out14;Ogrzewanie Biała Łazienka/WC + + switch.hub3_out15;Ogrzewanie Sypialnia 1 + + button.main_hub_main_hub_restart;main-hub main-hub Restart + + light.status_led;main-hub Status LED + + light.main_hub_serwer_led;main-hub Serwer LED + + light.main_hub_jadalnia_led;main-hub Jadalnia LED + + light.main_hub_biala_lazienka_wanna_led;main-hub Biała Łazienka wanna LED + + light.main_hub_kuchnia_lezka_led;main-hub Kuchnia Łezka LED + + light.main_hub_spa_ledy;main-hub SPA Ledy + + light.main_hub_pokoj_dla_gosci_led;main-hub Pokój dla gości LED + + light.main_hub_test_led_1;main-hub TEST LED 1 + + light.main_hub_test_led_2;main-hub TEST LED 2 + + light.main_hub_sypialnia_led;main-hub Sypialnia LED + + sensor.sypialnia_temperatura;Sypialnia + + sensor.sypialnia_nawilzenie_3;Gora Sypialnia Nawilżenie + + sensor.sypialnia_bateria;Gora Sypialnia Bateria + + sensor.spa_temperatura;SPA + + sensor.spa_nawilzenie_3;Gora SPA Nawilżenie + + sensor.spa_bateria;Gora SPA Bateria + + sensor.antresola_temperatura;Antresola + + sensor.antresola_nawilzenie_3;Gora Antresola Nawilżenie + + sensor.antresola_bateria;Gora Antresola Bateria + + sensor.pokoj_temperatura_3;Pokój dziecięcy + + sensor.pokoj_nawilzenie_3;Gora Pokój Nawilżenie + + sensor.pokoj_bateria_3;Gora Pokój Bateria + + sensor.garderoba_duza_temperatura_3;Gora Garderoba Duża Temperatura + + sensor.garderoba_duza_nawilzenie_3;Gora Garderoba Duża Nawilżenie + + sensor.garderoba_duza_bateria_3;Gora Garderoba Duża Bateria + + switch.esp_gora_restart_3;Gora ESP Góra Restart + + light.oczka_taras_2;Gora Oczka Taras + + light.zwis_schody_2;Gora Zwis schody + + light.skrzynia_2;Gora Skrzynia + + light.tunel_2;Gora Tunel + + sensor.led_bank_1_biuro_temperatura;Biuro + + sensor.led_bank_1_biuro_nawil_enie;led-bank-1 Biuro Nawilżenie + + sensor.led_bank_1_biuro_bateria;led-bank-1 Biuro Bateria + + sensor.led_bank_1_serwer_temperatura;Serwer + + sensor.led_bank_1_serwer_nawil_enie;led-bank-1 Serwer Nawilżenie + + sensor.led_bank_1_serwer_bateria;led-bank-1 Serwer Bateria + + sensor.led_bank_1_kuchnia_temperatura;Kuchnia + + sensor.led_bank_1_kuchnia_nawil_enie;led-bank-1 Kuchnia Nawilżenie + + sensor.led_bank_1_kuchnia_bateria;led-bank-1 Kuchnia Bateria + + sensor.led_bank_1_wc_temperatura;WC + + sensor.led_bank_1_wc_nawil_enie;led-bank-1 WC Nawilżenie + + sensor.led_bank_1_wc_bateria;led-bank-1 WC Bateria + + sensor.led_bank_1_azienka_temperatura;Łazienka + + sensor.led_bank_1_azienka_nawil_enie;led-bank-1 Łazienka Nawilżenie + + sensor.led_bank_1_azienka_bateria;led-bank-1 Łazienka Bateria + + switch.led_bank_1_esp_led_bank_1_restart;led-bank-1 ESP LED Bank 1 Restart + + light.led_bank_1_serwer_led;led-bank-1 Serwer LED + + light.led_bank_1_jadalnia_led;led-bank-1 Jadalnia LED + + light.led_bank_1_bia_a_azienka_wanna_led;led-bank-1 Biała Łazienka wanna LED + + light.led_bank_1_kuchnia_ezka_led;led-bank-1 Kuchnia Łezka LED + + light.led_bank_1_spa_ledy;led-bank-1 SPA Ledy + + light.led_bank_1_pok_j_dla_go_ci_led;led-bank-1 Pokój dla gości LED + + light.led_bank_1_test_led_1;led-bank-1 TEST LED 1 + + light.led_bank_1_test_led_2;led-bank-1 TEST LED 2 + + light.led_bank_1_sypialnia_led;LED Sufit + + light.led_bank_1_test_led_1_1_1;led-bank-1 TEST LED 1 1 1 + + light.led_bank_1_test_led_1_2_1;led-bank-1 TEST LED 1 2 1 + + light.led_bank_1_test_led_2_1_1;led-bank-1 TEST LED 2 1 1 + + light.led_bank_1_test_led_2_2_1;led-bank-1 TEST LED 2 2 1 + + light.led_bank_1_test_led_3_1_1;led-bank-1 TEST LED 3 1 1 + + light.led_bank_1_test_led_3_2_1;led-bank-1 TEST LED 3 2 1 + + light.led_bank_1_test_led_4_1_1;led-bank-1 TEST LED 4 1 1 + + light.led_bank_1_test_led_4_2_1;led-bank-1 TEST LED 4 2 1 + + light.led_bank_1_test_led_1_1_2;led-bank-1 TEST LED 1 1 2 + + light.led_bank_1_test_led_1_2_2;led-bank-1 TEST LED 1 2 2 + + light.led_bank_1_test_led_2_1_2;led-bank-1 TEST LED 2 1 2 + + light.led_bank_1_test_led_2_2_2;led-bank-1 TEST LED 2 2 2 + + light.led_bank_1_test_led_3_1_2;led-bank-1 TEST LED 3 1 2 + + light.led_bank_1_test_led_3_2_2;led-bank-1 TEST LED 3 2 2 + + light.led_bank_1_test_led_4_1_2;led-bank-1 TEST LED 4 1 2 + + light.led_bank_1_test_led_4_2_2;led-bank-1 TEST LED 4 2 2 + + light.led_bank_1_test_led_5_1_2;led-bank-1 TEST LED 5 1 2 + + light.led_bank_1_test_led_5_2_2;led-bank-1 TEST LED 5 2 2 + + sensor.esp32_c6_biuro_temperatura;esp32-c6 Biuro Temperatura + + sensor.esp32_c6_biuro_nawilzenie;esp32-c6 Biuro Nawilżenie + + sensor.esp32_c6_biuro_bateria;esp32-c6 Biuro Bateria + + sensor.esp32_c6_serwer_temperatura;esp32-c6 Serwer Temperatura + + sensor.esp32_c6_serwer_nawilzenie;esp32-c6 Serwer Nawilżenie + + sensor.esp32_c6_serwer_bateria;esp32-c6 Serwer Bateria + + sensor.esp32_c6_kuchnia_temperatura;esp32-c6 Kuchnia Temperatura + + sensor.esp32_c6_kuchnia_nawilzenie;esp32-c6 Kuchnia Nawilżenie + + sensor.esp32_c6_kuchnia_bateria;esp32-c6 Kuchnia Bateria + + sensor.esp32_c6_wc_temperatura;esp32-c6 WC Temperatura + + sensor.esp32_c6_wc_nawilzenie;esp32-c6 WC Nawilżenie + + sensor.esp32_c6_wc_bateria;esp32-c6 WC Bateria + + sensor.esp32_c6_lazienka_temperatura;esp32-c6 Łazienka Temperatura + + sensor.esp32_c6_lazienka_nawilzenie;esp32-c6 Łazienka Nawilżenie + + sensor.esp32_c6_lazienka_bateria;esp32-c6 Łazienka Bateria + + sensor.esp32_c6_sypialnia_temperatura;esp32-c6 Sypialnia Temperatura + + sensor.esp32_c6_sypialnia_nawilzenie;esp32-c6 Sypialnia Nawilżenie + + sensor.esp32_c6_sypialnia_bateria;esp32-c6 Sypialnia Bateria + + sensor.esp32_c6_spa_temperatura;esp32-c6 SPA Temperatura + + sensor.esp32_c6_spa_nawilzenie;esp32-c6 SPA Nawilżenie + + sensor.esp32_c6_spa_bateria;esp32-c6 SPA Bateria + + sensor.esp32_c6_antresola_temperatura;esp32-c6 Antresola Temperatura + + sensor.esp32_c6_antresola_nawilzenie;esp32-c6 Antresola Nawilżenie + + sensor.esp32_c6_antresola_bateria;esp32-c6 Antresola Bateria + + sensor.esp32_c6_pokoj_temperatura;esp32-c6 Pokój Temperatura + + sensor.esp32_c6_pokoj_nawilzenie;esp32-c6 Pokój Nawilżenie + + sensor.esp32_c6_pokoj_bateria;esp32-c6 Pokój Bateria + + sensor.esp32_c6_garderoba_duza_temperatura;esp32-c6 Garderoba Duża Temperatura + + sensor.esp32_c6_garderoba_duza_nawilzenie;esp32-c6 Garderoba Duża Nawilżenie + + sensor.esp32_c6_garderoba_duza_bateria;esp32-c6 Garderoba Duża Bateria + + switch.esp_salon_kinkiety_restart;Salonkinkietyrgb ESP Salon Kinkiety Restart + + light.salon_kinkiety_led;Salonkinkietyrgb Salon Kinkiety LED + + light.salon_kinkiet_1_led;Salonkinkietyrgb Salon Kinkiet 1 LED + + light.salon_kinkiet_2_led;Salonkinkietyrgb Salon Kinkiet 2 LED + + light.salon_kinkiet_3_led;Salonkinkietyrgb Salon Kinkiet 3 LED + + switch.esp_komin_restart;Komin ESP Komin Restart + + light.komin_led;Komin Komin LED + + switch.esp_schody_restart_2;Schody ESP Schody Restart + + light.schody_2;Schody Schody + + switch.esp_wc_restart;Lazienka ESP WC Restart + + light.wc_led;Lazienka WC LED + + switch.salon_wentylator;Salon Wentylator + + switch.esp_salon_wentylator_restart;Salonwentylator ESP Salon Wentylator Restart + + switch.esp_korytarz_restart;Korytarzkinkiety ESP Korytarz Restart + + light.korytarz_kinkiety;Korytarzkinkiety korytarz Kinkiety + + switch.esp_spa_wanna_restart;Spawanna ESP SPA Wanna Restart + + light.spa_wanna_led;Spawanna SPA Wanna LED + + update.main_hub_firmware;main-hub Firmware + + update.salonwentylator_firmware;Salonwentylator Firmware +Result type: string + +This template listens for the following state changed events: + +Encja: binary_sensor.hub1_in0 +Encja: binary_sensor.hub1_in1 +Encja: binary_sensor.hub1_in2 +Encja: binary_sensor.hub1_in3 +Encja: binary_sensor.hub1_in4 +Encja: binary_sensor.hub1_in5 +Encja: binary_sensor.hub1_in6 +Encja: binary_sensor.hub1_in7 +Encja: binary_sensor.hub1_in8 +Encja: binary_sensor.hub1_in9 +Encja: binary_sensor.hub2_in0 +Encja: binary_sensor.hub2_in1 +Encja: binary_sensor.hub2_in10 +Encja: binary_sensor.hub2_in11 +Encja: binary_sensor.hub2_in12 +Encja: binary_sensor.hub2_in13 +Encja: binary_sensor.hub2_in2 +Encja: binary_sensor.hub2_in3 +Encja: binary_sensor.hub2_in4 +Encja: binary_sensor.hub2_in5 +Encja: binary_sensor.hub2_in6 +Encja: binary_sensor.hub2_in7 +Encja: binary_sensor.hub2_in8 +Encja: binary_sensor.hub2_in9 +Encja: binary_sensor.hub3_in0 +Encja: binary_sensor.hub3_in1 +Encja: binary_sensor.hub3_in10 +Encja: binary_sensor.hub3_in11 +Encja: binary_sensor.hub3_in12 +Encja: binary_sensor.hub3_in2 +Encja: binary_sensor.hub3_in3 +Encja: binary_sensor.hub3_in4 +Encja: binary_sensor.hub3_in5 +Encja: binary_sensor.hub3_in6 +Encja: binary_sensor.hub3_in7 +Encja: binary_sensor.hub3_in8 +Encja: binary_sensor.hub3_in9 +Encja: binary_sensor.main_hub_hub1_in10 +Encja: binary_sensor.main_hub_hub1_in11 +Encja: binary_sensor.main_hub_hub1_in12 +Encja: binary_sensor.main_hub_hub1_in13 +Encja: binary_sensor.main_hub_hub1_in14 +Encja: binary_sensor.main_hub_hub1_in15 +Encja: binary_sensor.main_hub_hub2_in14 +Encja: binary_sensor.main_hub_hub2_in15 +Encja: binary_sensor.main_hub_hub3_in13 +Encja: binary_sensor.main_hub_hub3_in14 +Encja: binary_sensor.main_hub_hub3_in15 +Encja: button.main_hub_main_hub_restart +Encja: light.komin_led +Encja: light.korytarz_kinkiety +Encja: light.led_bank_1_bia_a_azienka_wanna_led +Encja: light.led_bank_1_jadalnia_led +Encja: light.led_bank_1_kuchnia_ezka_led +Encja: light.led_bank_1_pok_j_dla_go_ci_led +Encja: light.led_bank_1_serwer_led +Encja: light.led_bank_1_spa_ledy +Encja: light.led_bank_1_sypialnia_led +Encja: light.led_bank_1_test_led_1 +Encja: light.led_bank_1_test_led_1_1_1 +Encja: light.led_bank_1_test_led_1_1_2 +Encja: light.led_bank_1_test_led_1_2_1 +Encja: light.led_bank_1_test_led_1_2_2 +Encja: light.led_bank_1_test_led_2 +Encja: light.led_bank_1_test_led_2_1_1 +Encja: light.led_bank_1_test_led_2_1_2 +Encja: light.led_bank_1_test_led_2_2_1 +Encja: light.led_bank_1_test_led_2_2_2 +Encja: light.led_bank_1_test_led_3_1_1 +Encja: light.led_bank_1_test_led_3_1_2 +Encja: light.led_bank_1_test_led_3_2_1 +Encja: light.led_bank_1_test_led_3_2_2 +Encja: light.led_bank_1_test_led_4_1_1 +Encja: light.led_bank_1_test_led_4_1_2 +Encja: light.led_bank_1_test_led_4_2_1 +Encja: light.led_bank_1_test_led_4_2_2 +Encja: light.led_bank_1_test_led_5_1_2 +Encja: light.led_bank_1_test_led_5_2_2 +Encja: light.main_hub_biala_lazienka_wanna_led +Encja: light.main_hub_jadalnia_led +Encja: light.main_hub_kuchnia_lezka_led +Encja: light.main_hub_pokoj_dla_gosci_led +Encja: light.main_hub_serwer_led +Encja: light.main_hub_spa_ledy +Encja: light.main_hub_sypialnia_led +Encja: light.main_hub_test_led_1 +Encja: light.main_hub_test_led_2 +Encja: light.oczka_taras_2 +Encja: light.salon_kinkiet_1_led +Encja: light.salon_kinkiet_2_led +Encja: light.salon_kinkiet_3_led +Encja: light.salon_kinkiety_led +Encja: light.schody_2 +Encja: light.skrzynia_2 +Encja: light.spa_wanna_led +Encja: light.status_led +Encja: light.tunel_2 +Encja: light.wc_led +Encja: light.zwis_schody_2 +Encja: sensor.antresola_bateria +Encja: sensor.antresola_nawilzenie_3 +Encja: sensor.antresola_temperatura +Encja: sensor.esp32_c6_antresola_bateria +Encja: sensor.esp32_c6_antresola_nawilzenie +Encja: sensor.esp32_c6_antresola_temperatura +Encja: sensor.esp32_c6_biuro_bateria +Encja: sensor.esp32_c6_biuro_nawilzenie +Encja: sensor.esp32_c6_biuro_temperatura +Encja: sensor.esp32_c6_garderoba_duza_bateria +Encja: sensor.esp32_c6_garderoba_duza_nawilzenie +Encja: sensor.esp32_c6_garderoba_duza_temperatura +Encja: sensor.esp32_c6_kuchnia_bateria +Encja: sensor.esp32_c6_kuchnia_nawilzenie +Encja: sensor.esp32_c6_kuchnia_temperatura +Encja: sensor.esp32_c6_lazienka_bateria +Encja: sensor.esp32_c6_lazienka_nawilzenie +Encja: sensor.esp32_c6_lazienka_temperatura +Encja: sensor.esp32_c6_pokoj_bateria +Encja: sensor.esp32_c6_pokoj_nawilzenie +Encja: sensor.esp32_c6_pokoj_temperatura +Encja: sensor.esp32_c6_serwer_bateria +Encja: sensor.esp32_c6_serwer_nawilzenie +Encja: sensor.esp32_c6_serwer_temperatura +Encja: sensor.esp32_c6_spa_bateria +Encja: sensor.esp32_c6_spa_nawilzenie +Encja: sensor.esp32_c6_spa_temperatura +Encja: sensor.esp32_c6_sypialnia_bateria +Encja: sensor.esp32_c6_sypialnia_nawilzenie +Encja: sensor.esp32_c6_sypialnia_temperatura +Encja: sensor.esp32_c6_wc_bateria +Encja: sensor.esp32_c6_wc_nawilzenie +Encja: sensor.esp32_c6_wc_temperatura +Encja: sensor.garderoba_duza_bateria_3 +Encja: sensor.garderoba_duza_nawilzenie_3 +Encja: sensor.garderoba_duza_temperatura_3 +Encja: sensor.led_bank_1_azienka_bateria +Encja: sensor.led_bank_1_azienka_nawil_enie +Encja: sensor.led_bank_1_azienka_temperatura +Encja: sensor.led_bank_1_biuro_bateria +Encja: sensor.led_bank_1_biuro_nawil_enie +Encja: sensor.led_bank_1_biuro_temperatura +Encja: sensor.led_bank_1_kuchnia_bateria +Encja: sensor.led_bank_1_kuchnia_nawil_enie +Encja: sensor.led_bank_1_kuchnia_temperatura +Encja: sensor.led_bank_1_serwer_bateria +Encja: sensor.led_bank_1_serwer_nawil_enie +Encja: sensor.led_bank_1_serwer_temperatura +Encja: sensor.led_bank_1_wc_bateria +Encja: sensor.led_bank_1_wc_nawil_enie +Encja: sensor.led_bank_1_wc_temperatura +Encja: sensor.main_hub_azienka_bateria +Encja: sensor.main_hub_azienka_nawil_enie +Encja: sensor.main_hub_azienka_temperatura +Encja: sensor.main_hub_biuro_bateria +Encja: sensor.main_hub_biuro_nawil_enie +Encja: sensor.main_hub_biuro_temperatura +Encja: sensor.main_hub_kuchnia_bateria +Encja: sensor.main_hub_kuchnia_nawil_enie +Encja: sensor.main_hub_kuchnia_temperatura +Encja: sensor.main_hub_serwer_bateria +Encja: sensor.main_hub_serwer_nawil_enie +Encja: sensor.main_hub_serwer_temperatura +Encja: sensor.main_hub_uptime_sensor +Encja: sensor.main_hub_wc_bateria +Encja: sensor.main_hub_wc_nawil_enie +Encja: sensor.main_hub_wc_temperatura +Encja: sensor.pokoj_bateria_3 +Encja: sensor.pokoj_nawilzenie_3 +Encja: sensor.pokoj_temperatura_3 +Encja: sensor.spa_bateria +Encja: sensor.spa_nawilzenie_3 +Encja: sensor.spa_temperatura +Encja: sensor.sypialnia_bateria +Encja: sensor.sypialnia_nawilzenie_3 +Encja: sensor.sypialnia_temperatura +Encja: switch.esp_gora_restart_3 +Encja: switch.esp_komin_restart +Encja: switch.esp_korytarz_restart +Encja: switch.esp_salon_kinkiety_restart +Encja: switch.esp_salon_wentylator_restart +Encja: switch.esp_schody_restart_2 +Encja: switch.esp_spa_wanna_restart +Encja: switch.esp_wc_restart +Encja: switch.hub1_out1 +Encja: switch.hub1_out10 +Encja: switch.hub1_out13 +Encja: switch.hub1_out14 +Encja: switch.hub1_out15 +Encja: switch.hub1_out2 +Encja: switch.hub1_out3 +Encja: switch.hub1_out4 +Encja: switch.hub1_out5 +Encja: switch.hub1_out7 +Encja: switch.hub1_out8 +Encja: switch.hub1_out9 +Encja: switch.hub2_out0 +Encja: switch.hub2_out1 +Encja: switch.hub2_out10 +Encja: switch.hub2_out11 +Encja: switch.hub2_out12 +Encja: switch.hub2_out13 +Encja: switch.hub2_out14 +Encja: switch.hub2_out2 +Encja: switch.hub2_out3 +Encja: switch.hub2_out4 +Encja: switch.hub2_out5 +Encja: switch.hub2_out7 +Encja: switch.hub2_out8 +Encja: switch.hub3_out0 +Encja: switch.hub3_out1 +Encja: switch.hub3_out10 +Encja: switch.hub3_out11 +Encja: switch.hub3_out12 +Encja: switch.hub3_out13 +Encja: switch.hub3_out14 +Encja: switch.hub3_out15 +Encja: switch.hub3_out2 +Encja: switch.hub3_out3 +Encja: switch.hub3_out4 +Encja: switch.hub3_out5 +Encja: switch.hub3_out6 +Encja: switch.hub3_out7 +Encja: switch.hub3_out8 +Encja: switch.hub3_out9 +Encja: switch.led_bank_1_esp_led_bank_1_restart +Encja: switch.salon_wentylator +Encja: update.main_hub_firmware +Encja: update.salonwentylator_firmware \ No newline at end of file diff --git a/Kuba/main-hub-BACKUP 14042026.yaml b/Kuba/main-hub-BACKUP 14042026.yaml new file mode 100644 index 0000000..c6b5fa9 --- /dev/null +++ b/Kuba/main-hub-BACKUP 14042026.yaml @@ -0,0 +1,1193 @@ +esphome: + name: main-hub + friendly_name: main-hub + +esp32: + board: esp32dev + framework: + type: esp-idf + +# Enable logging +logger: + +# Enable Home Assistant API +api: + encryption: + key: "eyBNZWDUaBDCTIZsSIUzwHFpUcm/Kbc9UAWjX++ToL4=" + +ota: + - platform: esphome + password: "000f95472f1adc514d45abdc280a3903" + +#wifi: +# ssid: !secret wifi_ssid +# password: !secret wifi_password +# +# # Enable fallback hotspot (captive portal) in case wifi connection fails +# ap: +# ssid: "Main-Hub Fallback Hotspot" +# password: "y0LGSOyT5tjJ" + +#captive_portal: + +web_server: + port: 80 + +ethernet: + type: LAN8720 + mdc_pin: GPIO23 + mdio_pin: GPIO18 + clk_mode: GPIO17_OUT + phy_addr: 0 + power_pin: GPIO12 + +button: + - platform: restart + name: "main-hub Restart" + +i2c: + sda: 13 + scl: 16 + scan: True + frequency: 200kHz + +pca9685: + - frequency: 1500 + address: 0x40 + id: "pca9685_hub1" + - frequency: 1500 + address: 0x41 + id: "pca9685_hub2" + +mcp23017: + - id: "mcp23xxx_hub1_IN" + address: 0x20 + - id: "mcp23xxx_hub1_OUT" + address: 0x21 + - id: "mcp23xxx_hub2_IN" + address: 0x22 + - id: "mcp23xxx_hub2_OUT" + address: 0x23 + - id: "mcp23xxx_hub3_IN" + address: 0x24 + - id: "mcp23xxx_hub3_OUT" + address: 0x25 + + +output: + - platform: ledc + id: output_blue + pin: 5 + - platform: ledc + id: output_green + pin: 14 + - platform: ledc + id: output_red + pin: 15 + + #deklaracja LED + - platform: pca9685 + id: 'PWM1_1_Hub1' + pca9685_id: 'pca9685_hub1' + channel: 0 + max_power: 75% + - platform: pca9685 + id: 'PWM1_2_Hub1' + pca9685_id: 'pca9685_hub1' + channel: 1 + max_power: 75% + - platform: pca9685 + id: 'PWM2_1_Hub1' + pca9685_id: 'pca9685_hub1' + channel: 2 + max_power: 75% + - platform: pca9685 + id: 'PWM2_2_Hub1' + pca9685_id: 'pca9685_hub1' + channel: 3 + max_power: 75% + - platform: pca9685 + id: 'PWM3_1_Hub1' + pca9685_id: 'pca9685_hub1' + channel: 4 + max_power: 75% + - platform: pca9685 + id: 'PWM3_2_Hub1' + pca9685_id: 'pca9685_hub1' + channel: 8 + max_power: 75% + - platform: pca9685 + id: 'PWM4_1_Hub1' + pca9685_id: 'pca9685_hub1' + channel: 6 + min_power: 0% + max_power: 75% + - platform: pca9685 + id: 'PWM4_2_Hub1' + pca9685_id: 'pca9685_hub1' + channel: 7 + min_power: 0% + max_power: 75% + - platform: pca9685 + id: 'PWM5_1_Hub1' + pca9685_id: 'pca9685_hub1' + channel: 12 + max_power: 75% + - platform: pca9685 + id: 'PWM5_2_Hub1' + pca9685_id: 'pca9685_hub1' + channel: 13 + max_power: 75% + - platform: pca9685 + id: 'PWM1_1_Hub2' + pca9685_id: 'pca9685_hub2' + channel: 0 + max_power: 75% + - platform: pca9685 + id: 'PWM1_2_Hub2' + pca9685_id: 'pca9685_hub2' + channel: 1 + max_power: 75% + - platform: pca9685 + id: 'PWM2_1_Hub2' + pca9685_id: 'pca9685_hub2' + channel: 2 + max_power: 75% + - platform: pca9685 + id: 'PWM2_2_Hub2' + pca9685_id: 'pca9685_hub2' + channel: 3 + max_power: 75% + - platform: pca9685 + id: 'PWM3_1_Hub2' + pca9685_id: 'pca9685_hub2' + channel: 4 + max_power: 75% + - platform: pca9685 + id: 'PWM3_2_Hub2' + pca9685_id: 'pca9685_hub2' + channel: 5 + max_power: 95% + - platform: pca9685 + id: 'PWM4_1_Hub2' + pca9685_id: 'pca9685_hub2' + channel: 10 + max_power: 95% + - platform: pca9685 + id: 'PWM4_2_Hub2' + pca9685_id: 'pca9685_hub2' + channel: 13 + max_power: 75% + - platform: pca9685 + id: 'PWM5_1_Hub2' + pca9685_id: 'pca9685_hub2' + channel: 11 + max_power: 75% + - platform: pca9685 + id: 'PWM5_2_Hub2' + pca9685_id: 'pca9685_hub2' + channel: 15 + max_power: 75% + +light: + - platform: rgb + name: "Status LED" + red: output_red + green: output_green + blue: output_blue + effects: + - pulse: + name: "Fast Pulse" + transition_length: 0.5s + update_interval: 0.5s + - pulse: + name: "Slow Pulse" + transition_length: 1s + update_interval: 1s + - random: + name: "Random Effect" + transition_length: 1s + update_interval: 2s + #LEDY przez PCSA9685 + - platform: cwww + name: "Serwer LED" + cold_white: PWM2_1_Hub1 + warm_white: PWM2_2_Hub1 + cold_white_color_temperature: 6536 K + warm_white_color_temperature: 2000 K + default_transition_length: 2.0s + - platform: cwww + name: "Jadalnia LED" + cold_white: PWM4_2_Hub1 + warm_white: PWM4_1_Hub1 + cold_white_color_temperature: 6536 K + warm_white_color_temperature: 2000 K + default_transition_length: 2.0s + - platform: cwww + name: "Biała Łazienka wanna LED" + cold_white: PWM5_2_Hub1 + warm_white: PWM5_1_Hub1 + cold_white_color_temperature: 6536 K + warm_white_color_temperature: 2000 K + default_transition_length: 2.0s + - platform: monochromatic + name: "Kuchnia Łezka LED" + output: PWM2_1_Hub2 + default_transition_length: 2.0s + - platform: cwww + name: "SPA Ledy" + id: "SPA_Ledy" + cold_white: PWM5_2_Hub2 + warm_white: PWM5_1_Hub2 + cold_white_color_temperature: 6536 K + warm_white_color_temperature: 2000 K + default_transition_length: 2.0s + - platform: cwww + name: "Pokój dla gości LED" + cold_white: PWM3_2_Hub2 + warm_white: PWM4_1_Hub2 + cold_white_color_temperature: 6536 K + warm_white_color_temperature: 2000 K + default_transition_length: 2.0s + - platform: monochromatic + name: "TEST LED 1" + output: PWM1_2_Hub2 + - platform: monochromatic + name: "TEST LED 2" + output: PWM3_1_Hub2 + - platform: rgbww + name: "Sypialnia LED" + red: PWM1_1_Hub1 + green: PWM1_2_Hub1 + blue: PWM3_1_Hub1 + cold_white: PWM3_2_Hub1 + warm_white: PWM1_1_Hub2 + cold_white_color_temperature: 6536 K + warm_white_color_temperature: 2000 K + color_interlock: false + default_transition_length: 2.0s + +esp32_ble_tracker: + +binary_sensor: + #Mains detector + #- platform: gpio + # pin: + # number: 39 + # inverted: True + # name: "Mains detector" + ################## + #mcp23xxx_hub1_IN# + ################## + #Wejście 1 + - platform: gpio + name: "hub1_in0" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 0 + mode: INPUT + inverted: True + id: hub1_in0 + #Wejście 3 + - platform: gpio + name: "hub1_in1" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 1 + mode: INPUT + inverted: True + id: hub1_in1 + #Wejście 2 + - platform: gpio + name: "hub1_in2" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 2 + mode: INPUT + inverted: True + id: hub1_in2 + #Sypialnia 3 + - platform: gpio + name: "hub1_in3" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 3 + mode: INPUT + inverted: True + id: hub1_in3 + #Sypialnia 1 + - platform: gpio + name: "hub1_in4" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 4 + mode: INPUT + inverted: True + id: hub1_in4 + #Sypialnia 2 + - platform: gpio + name: "hub1_in5" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 5 + mode: INPUT + inverted: True + id: hub1_in5 + #Sypialnia Łóżko Prawa Strona + - platform: gpio + name: "hub1_in6" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 6 + mode: INPUT + inverted: True + id: hub1_in6 + #Sypialnia Łóżko Lewa Strona + - platform: gpio + name: "hub1_in7" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 7 + mode: INPUT + inverted: True + id: hub1_in7 + #Niebieski Pokój Lewy + - platform: gpio + name: "hub1_in8" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 8 + mode: INPUT + inverted: True + id: hub1_in8 + #Niebieski Pokój Prawy + - platform: gpio + name: "hub1_in9" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 9 + mode: INPUT + inverted: True + id: hub1_in9 + #Nie podpięte! + - platform: gpio + name: "hub1_in10" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 10 + mode: INPUT + inverted: True + id: hub1_in10 + - platform: gpio + name: "hub1_in11" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 11 + mode: INPUT + inverted: True + id: hub1_in11 + - platform: gpio + name: "hub1_in12" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 12 + mode: INPUT + inverted: True + id: hub1_in12 + - platform: gpio + name: "hub1_in13" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 13 + mode: INPUT + inverted: True + id: hub1_in13 + - platform: gpio + name: "hub1_in14" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 14 + mode: INPUT + inverted: True + id: hub1_in14 + - platform: gpio + name: "hub1_in15" + pin: + mcp23xxx: mcp23xxx_hub1_IN + number: 15 + mode: INPUT + inverted: True + id: hub1_in15 + ################## + #mcp23xxx_hub2_IN# + ################## + #Korytarz 2 + - platform: gpio + name: "hub2_in0" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 0 + mode: INPUT + inverted: True + id: hub2_in0 + #Korytarz 3 + - platform: gpio + name: "hub2_in1" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 1 + mode: INPUT + inverted: True + id: hub2_in1 + #Korytarz 1 + - platform: gpio + name: "hub2_in2" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 2 + mode: INPUT + inverted: True + id: hub2_in2 + #Mały Korytarz + - platform: gpio + name: "hub2_in3" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 3 + mode: INPUT + inverted: True + id: hub2_in3 + #Garderoba Mała + - platform: gpio + name: "hub2_in4" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 4 + mode: INPUT + inverted: True + id: hub2_in4 + #Kuchnia 3_1 + - platform: gpio + name: "hub2_in5" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 5 + mode: INPUT + inverted: True + id: hub2_in5 + #Kuchnia 3_2 + - platform: gpio + name: "hub2_in6" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 6 + mode: INPUT + inverted: True + id: hub2_in6 + #Kuchnia 2_1 + - platform: gpio + name: "hub2_in7" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 7 + mode: INPUT + inverted: True + id: hub2_in7 + #Kuchnia 2_2 + - platform: gpio + name: "hub2_in8" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 8 + mode: INPUT + inverted: True + id: hub2_in8 + #Kuchnia 1_1 + - platform: gpio + name: "hub2_in9" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 9 + mode: INPUT + inverted: True + id: hub2_in9 + #Kuchnia 1_2 + - platform: gpio + name: "hub2_in10" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 10 + mode: INPUT + inverted: True + id: hub2_in10 + #Schody 3 + - platform: gpio + name: "hub2_in11" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 11 + mode: INPUT + inverted: True + id: hub2_in11 + #Schody 1 + - platform: gpio + name: "hub2_in12" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 12 + mode: INPUT + inverted: True + id: hub2_in12 + #Schody 2 + - platform: gpio + name: "hub2_in13" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 13 + mode: INPUT + inverted: True + id: hub2_in13 + #Nie podpięte! + - platform: gpio + name: "hub2_in14" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 14 + mode: INPUT + inverted: True + id: hub2_in14 + - platform: gpio + name: "hub2_in15" + pin: + mcp23xxx: mcp23xxx_hub2_IN + number: 15 + mode: INPUT + inverted: True + id: hub2_in15 + ################## + #mcp23xxx_hub3_IN# + ################## + #Garderoba Duża Lewy + - platform: gpio + name: "hub3_in0" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 0 + mode: INPUT + inverted: True + id: hub3_in0 + #Garderoba Duża Prawy + - platform: gpio + name: "hub3_in1" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 1 + mode: INPUT + inverted: True + id: hub3_in1 + #SPA Lewy + - platform: gpio + name: "hub3_in2" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 2 + mode: INPUT + inverted: True + id: hub3_in2 + #SPA Prawy + - platform: gpio + name: "hub3_in3" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 3 + mode: INPUT + inverted: True + id: hub3_in3 + #Biała Łazienka Ściana + - platform: gpio + name: "hub3_in4" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 4 + mode: INPUT + inverted: True + id: hub3_in4 + #Małe WC Lustro Prawy + - platform: gpio + name: "hub3_in5" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 5 + mode: INPUT + inverted: True + id: hub3_in5 + #Małe WC Lustro Lewy + - platform: gpio + name: "hub3_in6" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 6 + mode: INPUT + inverted: True + id: hub3_in6 + #Biała Łazienka Skos + - platform: gpio + name: "hub3_in7" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 7 + mode: INPUT + inverted: True + id: hub3_in7 + #SPA Lustro Lewy + - platform: gpio + name: "hub3_in8" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 8 + mode: INPUT + inverted: True + id: hub3_in8 + #SPA Lustro Prawy + - platform: gpio + name: "hub3_in9" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 9 + mode: INPUT + inverted: True + id: hub3_in9 + #Biuro Skos + - platform: gpio + name: "hub3_in10" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 10 + mode: INPUT + inverted: True + id: hub3_in10 + #Serwer Prawy + - platform: gpio + name: "hub3_in11" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 11 + mode: INPUT + inverted: True + id: hub3_in11 + #Serwer Lewy + - platform: gpio + name: "hub3_in12" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 12 + mode: INPUT + inverted: True + id: hub3_in12 +#Nie podpięte + - platform: gpio + name: "hub3_in13" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 13 + mode: INPUT + inverted: True + id: hub3_in13 + - platform: gpio + name: "hub3_in14" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 14 + mode: INPUT + inverted: True + id: hub3_in14 + - platform: gpio + name: "hub3_in15" + pin: + mcp23xxx: mcp23xxx_hub3_IN + number: 15 + mode: INPUT + inverted: True + id: hub3_in15 + +switch: + #mcp23xxx_hub1_OUT + - platform: gpio + name: "hub1_out0" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 0 + mode: OUTPUT + inverted: False + id: hub1_out0 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out1" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 1 + mode: OUTPUT + inverted: False + id: hub1_out1 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out2" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 2 + mode: OUTPUT + inverted: False + id: hub1_out2 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out3" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 3 + mode: OUTPUT + inverted: False + id: hub1_out3 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out4" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 4 + mode: OUTPUT + inverted: False + id: hub1_out4 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out5" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 5 + mode: OUTPUT + inverted: False + id: hub1_out5 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out6" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 6 + mode: OUTPUT + inverted: False + id: hub1_out6 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out7" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 7 + mode: OUTPUT + inverted: False + id: hub1_out7 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out8" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 8 + mode: OUTPUT + inverted: False + id: hub1_out8 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out9" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 9 + mode: OUTPUT + inverted: False + id: hub1_out9 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out10" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 10 + mode: OUTPUT + inverted: False + id: hub1_out10 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out11" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 11 + mode: OUTPUT + inverted: False + id: hub1_out11 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out12" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 12 + mode: OUTPUT + inverted: False + id: hub1_out12 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out13" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 13 + mode: OUTPUT + inverted: False + id: hub1_out13 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out14" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 14 + mode: OUTPUT + inverted: False + id: hub1_out14 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub1_out15" + pin: + mcp23xxx: mcp23xxx_hub1_OUT + number: 15 + mode: OUTPUT + inverted: False + id: hub1_out15 + restore_mode: ALWAYS_OFF + #mcp23xxx_hub2_OUT + - platform: gpio + name: "hub2_out0" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 0 + mode: OUTPUT + inverted: False + id: hub2_out0 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out1" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 1 + mode: OUTPUT + inverted: False + id: hub2_out1 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out2" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 2 + mode: OUTPUT + inverted: False + id: hub2_out2 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out3" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 3 + mode: OUTPUT + inverted: False + id: hub2_out3 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out4" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 4 + mode: OUTPUT + inverted: False + id: hub2_out4 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out5" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 5 + mode: OUTPUT + inverted: False + id: hub2_out5 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out6" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 6 + mode: OUTPUT + inverted: False + id: hub2_out6 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out7" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 7 + mode: OUTPUT + inverted: False + id: hub2_out7 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out8" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 8 + mode: OUTPUT + inverted: False + id: hub2_out8 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out9" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 9 + mode: OUTPUT + inverted: False + id: hub2_out9 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out10" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 10 + mode: OUTPUT + inverted: False + id: hub2_out10 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out11" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 11 + mode: OUTPUT + inverted: False + id: hub2_out11 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out12" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 12 + mode: OUTPUT + inverted: False + id: hub2_out12 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out13" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 13 + mode: OUTPUT + inverted: False + id: hub2_out13 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out14" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 14 + mode: OUTPUT + inverted: False + id: hub2_out14 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub2_out15" + pin: + mcp23xxx: mcp23xxx_hub2_OUT + number: 15 + mode: OUTPUT + inverted: False + id: hub2_out15 + restore_mode: ALWAYS_OFF + #mcp23xxx_hub3_OUT + - platform: gpio + name: "hub3_out0" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 0 + mode: OUTPUT + inverted: False + id: hub3_out0 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out1" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 1 + mode: OUTPUT + inverted: False + id: hub3_out1 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out2" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 2 + mode: OUTPUT + inverted: False + id: hub3_out2 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out3" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 3 + mode: OUTPUT + inverted: False + id: hub3_out3 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out4" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 4 + mode: OUTPUT + inverted: False + id: hub3_out4 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out5" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 5 + mode: OUTPUT + inverted: False + id: hub3_out5 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out6" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 6 + mode: OUTPUT + inverted: False + id: hub3_out6 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out7" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 7 + mode: OUTPUT + inverted: False + id: hub3_out7 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out8" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 8 + mode: OUTPUT + inverted: False + id: hub3_out8 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out9" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 9 + mode: OUTPUT + inverted: False + id: hub3_out9 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out10" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 10 + mode: OUTPUT + inverted: False + id: hub3_out10 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out11" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 11 + mode: OUTPUT + inverted: False + id: hub3_out11 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out12" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 12 + mode: OUTPUT + inverted: False + id: hub3_out12 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out13" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 13 + mode: OUTPUT + inverted: False + id: hub3_out13 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out14" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 14 + mode: OUTPUT + inverted: False + id: hub3_out14 + restore_mode: ALWAYS_OFF + - platform: gpio + name: "hub3_out15" + pin: + mcp23xxx: mcp23xxx_hub3_OUT + number: 15 + mode: OUTPUT + inverted: False + id: hub3_out15 + restore_mode: ALWAYS_OFF + +sensor: + - platform: uptime + type: seconds + name: Uptime Sensor + - platform: atc_mithermometer + mac_address: "A4:C1:38:C5:11:58" + temperature: + name: "Biuro Temperatura" + humidity: + name: "Biuro Nawilżenie" + battery_level: + name: "Biuro Bateria" + - platform: atc_mithermometer + mac_address: "A4:C1:38:5C:4F:38" + temperature: + name: "Serwer Temperatura" + humidity: + name: "Serwer Nawilżenie" + battery_level: + name: "Serwer Bateria" + - platform: atc_mithermometer + mac_address: "A4:C1:38:67:6B:94" + temperature: + name: "Kuchnia Temperatura" + humidity: + name: "Kuchnia Nawilżenie" + battery_level: + name: "Kuchnia Bateria" + - platform: atc_mithermometer + mac_address: "A4:C1:38:C9:FE:CA" + temperature: + name: "WC Temperatura" + humidity: + name: "WC Nawilżenie" + battery_level: + name: "WC Bateria" + - platform: atc_mithermometer + mac_address: "A4:C1:38:63:6D:DB" + temperature: + name: "Łazienka Temperatura" + humidity: + name: "Łazienka Nawilżenie" + battery_level: + name: "Łazienka Bateria" \ No newline at end of file diff --git a/main-hub.yaml b/main-hub.yaml index dfd5af4..7153cfc 100644 --- a/main-hub.yaml +++ b/main-hub.yaml @@ -31,10 +31,6 @@ ethernet: phy_addr: 0 power_pin: GPIO12 -dashboard_import: - package_import_url: github://gitea.domowyasystent.com/jkocon/ESP32-Hub/main-hub.yaml@main - import_full_config: true - logger: api: @@ -174,49 +170,87 @@ packages: ] -esp32_ble_tracker: +# ── Nazwane oświetlenie LED PWM (PCA9685) ──────────────────────────────────── +# Zdefiniuj tu nazwane światła mapujące kanały PCA9685 na logiczne ID. +# Platformy: monochromatic (1 kanał), cwww (2), rgb (3), rgbww (5). +# Odkomentuj i uzupełnij wg okablowania. +# +# light: +# - platform: monochromatic +# name: "Nazwa Światła" +# id: nazwa_swiatla +# output: pca_0x40_ch0 # kanał PCA9685 +# +# - platform: cwww +# name: "Nazwa Światła CW" +# id: nazwa_swiatla_cw +# cold_white: pca_0x40_ch1 +# warm_white: pca_0x40_ch2 +# cold_white_color_temperature: 6000K +# warm_white_color_temperature: 2700K + +# ── Wejścia cyfrowe (MCP23017 INPUTS) ──────────────────────────────────────── +# Zdefiniuj tu sensory mapujące piny MCP23017 na logiczne przyciski. +# Dla pojedynczego kliknięcia użyj on_click, dla wielu gestów on_multi_click. +# +# binary_sensor: +# - platform: gpio +# name: "Nazwa Przycisku" +# id: przycisk_id +# pin: +# mcp23xxx: mcp23xxx_0x20 # ID chipu z packages/main_hub/mcp23017/inputs/ +# number: 0 +# mode: INPUT +# inverted: True +# on_click: +# then: +# - light.toggle: nazwa_swiatla +# +# - platform: gpio +# name: "Przycisk Multi" +# id: przycisk_multi_id +# pin: +# mcp23xxx: mcp23xxx_0x20 +# number: 1 +# mode: INPUT +# inverted: True +# on_multi_click: +# - timing: # single click +# - ON for at most 350ms +# - OFF for at least 350ms +# then: +# - light.toggle: nazwa_swiatla +# - timing: # double click +# - ON for at most 350ms +# - OFF for at most 350ms +# - ON for at most 350ms +# - OFF for at least 350ms +# then: +# - script.execute: off_all_lights +# - timing: # long press +# - ON for at least 350ms +# then: +# - script.execute: off_all_fans + +# ── Czujniki BLE ATC MiThermometer ─────────────────────────────────────────── +# Odkomentuj esp32_ble_tracker oraz sensory jeśli używasz czujników BLE. +# +# esp32_ble_tracker: +# +# sensor: +# - platform: uptime +# type: seconds +# name: Uptime Sensor +# - platform: atc_mithermometer +# mac_address: "AA:BB:CC:DD:EE:FF" # TODO: wpisz MAC z etykiety czujnika +# temperature: +# name: "Pokój Temperatura" +# humidity: +# name: "Pokój Nawilzenie" +# battery_level: +# name: "Pokój Bateria" sensor: - platform: uptime type: seconds name: Uptime Sensor - - platform: atc_mithermometer - mac_address: "A4:C1:38:C5:11:58" - temperature: - name: "Biuro Temperatura" - humidity: - name: "Biuro Nawilzenie" - battery_level: - name: "Biuro Bateria" - - platform: atc_mithermometer - mac_address: "A4:C1:38:5C:4F:38" - temperature: - name: "Serwer Temperatura" - humidity: - name: "Serwer Nawilzenie" - battery_level: - name: "Serwer Bateria" - - platform: atc_mithermometer - mac_address: "A4:C1:38:67:6B:94" - temperature: - name: "Kuchnia Temperatura" - humidity: - name: "Kuchnia Nawilzenie" - battery_level: - name: "Kuchnia Bateria" - - platform: atc_mithermometer - mac_address: "A4:C1:38:C9:FE:CA" - temperature: - name: "WC Temperatura" - humidity: - name: "WC Nawilzenie" - battery_level: - name: "WC Bateria" - - platform: atc_mithermometer - mac_address: "A4:C1:38:63:6D:DB" - temperature: - name: "Lazienka Temperatura" - humidity: - name: "Lazienka Nawilzenie" - battery_level: - name: "Lazienka Bateria" \ No newline at end of file