From 3747c34aa37a8920f837a9e5cb5af06784750bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Koco=C5=84?= Date: Sat, 18 Apr 2026 00:33:59 +0200 Subject: [PATCH] update --- Kuba/main-hub_do zrobienia.yaml | 410 +++++++++++++++++++++++++++----- 1 file changed, 355 insertions(+), 55 deletions(-) diff --git a/Kuba/main-hub_do zrobienia.yaml b/Kuba/main-hub_do zrobienia.yaml index 99f3d8d..14afc1a 100644 --- a/Kuba/main-hub_do zrobienia.yaml +++ b/Kuba/main-hub_do zrobienia.yaml @@ -886,16 +886,22 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub1_out15 # Wejście Halogeny + - logger.log: + level: INFO + format: "Wejście 1 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Wejście 1 [1×]" - entity_id: "binary_sensor.hub1_in0" + entity_id: "switch.hub1_out15" - timing: - ON for at least 350ms then: - script.execute: off_all + - logger.log: + level: INFO + format: "Wejście 1 [długi]" - homeassistant.service: service: logbook.log data: @@ -928,16 +934,22 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub1_out14 # Korytarz Halogeny + - logger.log: + level: INFO + format: "Wejście 2 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Wejście 2 [1×]" - entity_id: "binary_sensor.hub1_in2" + entity_id: "light.korytarz_kinkiety" - timing: - ON for at least 350ms then: - script.execute: off_all + - logger.log: + level: INFO + format: "Wejście 2 [długi]" - homeassistant.service: service: logbook.log data: @@ -959,14 +971,32 @@ binary_sensor: - ON for at most 350ms - OFF for at least 350ms then: - - switch.toggle: hub2_out12 # Sypialnia Łóżko Lewa strona - - switch.toggle: hub2_out1 # Sypialnia Łóżko Prawa strona + - if: + condition: + and: + - switch.is_on: hub2_out12 + - switch.is_on: hub2_out1 + then: + - switch.turn_off: hub2_out12 # Sypialnia Łóżko Lewa strona + - switch.turn_off: hub2_out1 # Sypialnia Łóżko Prawa strona + else: + - switch.turn_on: hub2_out12 + - switch.turn_on: hub2_out1 + - logger.log: + level: INFO + format: "Sypialnia 3 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Sypialnia 3 [1×]" - entity_id: "binary_sensor.hub1_in3" + entity_id: "switch.hub2_out12" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Sypialnia 3 [1×]" + entity_id: "switch.hub2_out1" - timing: - ON for at most 350ms - OFF for at most 350ms @@ -975,12 +1005,21 @@ binary_sensor: then: - switch.turn_off: hub2_out12 # Sypialnia Łóżko Lewa strona - switch.turn_off: hub2_out1 # Sypialnia Łóżko Prawa strona + - logger.log: + level: INFO + format: "Sypialnia 3 [2×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Sypialnia 3 [2×]" - entity_id: "binary_sensor.hub1_in3" + entity_id: "switch.hub2_out12" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Sypialnia 3 [2×]" + entity_id: "switch.hub2_out1" - platform: gpio name: "hub1_in4" # Sypialnia 1 pin: @@ -997,12 +1036,15 @@ binary_sensor: - OFF for at least 350ms then: - light.toggle: sypialnia_led # Sypialnia LED + - logger.log: + level: INFO + format: "Sypialnia 1 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Sypialnia 1 [1×]" - entity_id: "binary_sensor.hub1_in4" + entity_id: "light.sypialnia_led" - platform: gpio name: "hub1_in5" # Sypialnia 2 pin: @@ -1019,12 +1061,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub2_out7 # Sypialnia Halogen + - logger.log: + level: INFO + format: "Sypialnia 2 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Sypialnia 2 [1×]" - entity_id: "binary_sensor.hub1_in5" + entity_id: "switch.hub2_out7" - platform: gpio name: "hub1_in6" # Sypialnia Łóżko Prawa Strona pin: @@ -1041,12 +1086,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub2_out1 # Sypialnia Łóżko Prawa strona + - logger.log: + level: INFO + format: "Sypialnia Łóżko Prawo [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Sypialnia Łóżko Prawo [1×]" - entity_id: "binary_sensor.hub1_in6" + entity_id: "switch.hub2_out1" - timing: - ON for at most 350ms - OFF for at most 350ms @@ -1055,16 +1103,28 @@ binary_sensor: then: - switch.toggle: hub2_out12 # Sypialnia Łóżko Lewa strona - switch.toggle: hub2_out1 # Sypialnia Łóżko Prawa strona + - logger.log: + level: INFO + format: "Sypialnia Łóżko Prawo [2×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Sypialnia Łóżko Prawo [2×]" - entity_id: "binary_sensor.hub1_in6" + entity_id: "switch.hub2_out12" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Sypialnia Łóżko Prawo [2×]" + entity_id: "switch.hub2_out1" - timing: - ON for at least 350ms then: - script.execute: off_all + - logger.log: + level: INFO + format: "Sypialnia Łóżko Prawo [długi]" - homeassistant.service: service: logbook.log data: @@ -1087,12 +1147,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub2_out12 # Sypialnia Łóżko Lewa strona + - logger.log: + level: INFO + format: "Sypialnia Łóżko Lewo [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Sypialnia Łóżko Lewo [1×]" - entity_id: "binary_sensor.hub1_in7" + entity_id: "switch.hub2_out12" - timing: - ON for at most 350ms - OFF for at most 350ms @@ -1101,16 +1164,28 @@ binary_sensor: then: - switch.toggle: hub2_out12 # Sypialnia Łóżko Lewa strona - switch.toggle: hub2_out1 # Sypialnia Łóżko Prawa strona + - logger.log: + level: INFO + format: "Sypialnia Łóżko Lewo [2×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Sypialnia Łóżko Lewo [2×]" - entity_id: "binary_sensor.hub1_in7" + entity_id: "switch.hub2_out12" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Sypialnia Łóżko Lewo [2×]" + entity_id: "switch.hub2_out1" - timing: - ON for at least 350ms then: - script.execute: off_all + - logger.log: + level: INFO + format: "Sypialnia Łóżko Lewo [długi]" - homeassistant.service: service: logbook.log data: @@ -1133,12 +1208,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub2_out10 # Pokój Gościnny Sufit + - logger.log: + level: INFO + format: "Pokój Gości Lewy [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Pokój Gości Lewy [1×]" - entity_id: "binary_sensor.hub1_in8" + entity_id: "switch.hub2_out10" - timing: - ON for at most 350ms - OFF for at most 350ms @@ -1146,12 +1224,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub1_out7 # Garderoba Duża + - logger.log: + level: INFO + format: "Pokój Gości Lewy [2×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Pokój Gości Lewy [2×]" - entity_id: "binary_sensor.hub1_in8" + entity_id: "switch.hub1_out7" - platform: gpio name: "hub1_in9" # Pokój dla Gości Prawy pin: @@ -1168,12 +1249,15 @@ binary_sensor: - OFF for at least 350ms then: - light.toggle: pokoj_dla_gosci_led # Pokój dla Gości LED + - logger.log: + level: INFO + format: "Pokój Gości Prawy [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Pokój Gości Prawy [1×]" - entity_id: "binary_sensor.hub1_in9" + entity_id: "light.pokoj_dla_gosci_led" - platform: gpio name: "hub1_in10" # (niepodpięte) pin: @@ -1253,12 +1337,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub1_out15 # Wejście Halogeny + - logger.log: + level: INFO + format: "Korytarz 2 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Korytarz 2 [1×]" - entity_id: "binary_sensor.hub2_in0" + entity_id: "switch.hub1_out15" - platform: gpio name: "hub2_in1" # Korytarz 3 pin: @@ -1278,16 +1365,22 @@ binary_sensor: service: light.toggle data: entity_id: light.korytarz_kinkiety # Korytarz Kinkiety + - logger.log: + level: INFO + format: "Korytarz 3 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Korytarz 3 [1×]" - entity_id: "binary_sensor.hub2_in1" + entity_id: "light.korytarz_kinkiety" - timing: - ON for at least 350ms then: - script.execute: off_all + - logger.log: + level: INFO + format: "Korytarz 3 [długi]" - homeassistant.service: service: logbook.log data: @@ -1310,16 +1403,22 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub1_out14 # Korytarz Halogeny + - logger.log: + level: INFO + format: "Korytarz 1 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Korytarz 1 [1×]" - entity_id: "binary_sensor.hub2_in2" + entity_id: "switch.hub1_out14" - timing: - ON for at least 350ms then: - script.execute: off_all + - logger.log: + level: INFO + format: "Korytarz 1 [długi]" - homeassistant.service: service: logbook.log data: @@ -1343,12 +1442,21 @@ binary_sensor: then: - switch.toggle: hub1_out13 # Mały Korytarz Kinkiet - switch.toggle: hub2_out3 # Mały Korytarz Sufit + - logger.log: + level: INFO + format: "Mały Korytarz [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Mały Korytarz [1×]" - entity_id: "binary_sensor.hub2_in3" + entity_id: "switch.hub1_out13" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Mały Korytarz [1×]" + entity_id: "switch.hub2_out3" - platform: gpio name: "hub2_in4" # Garderoba Mała pin: @@ -1365,12 +1473,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub2_out14 # Mała Garderoba + - logger.log: + level: INFO + format: "Garderoba Mała [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Garderoba Mała [1×]" - entity_id: "binary_sensor.hub2_in4" + entity_id: "switch.hub2_out14" - timing: - ON for at most 350ms - OFF for at most 350ms @@ -1378,12 +1489,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub3_out2 # Wentylator Główny Obieg + - logger.log: + level: INFO + format: "Garderoba Mała [2×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Garderoba Mała [2×]" - entity_id: "binary_sensor.hub2_in4" + entity_id: "switch.hub3_out2" - platform: gpio name: "hub2_in5" # Kuchnia 3_1 pin: @@ -1400,12 +1514,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub1_out8 # Jadalnia + - logger.log: + level: INFO + format: "Kuchnia Filar 3_1 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Kuchnia Filar 3_1 [1×]" - entity_id: "binary_sensor.hub2_in5" + entity_id: "switch.hub1_out8" - platform: gpio name: "hub2_in6" # Kuchnia 3_2 pin: @@ -1422,12 +1539,15 @@ binary_sensor: - OFF for at least 350ms then: - light.toggle: jadalnia_led # Jadalnia LED + - logger.log: + level: INFO + format: "Kuchnia Filar 3_2 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Kuchnia Filar 3_2 [1×]" - entity_id: "binary_sensor.hub2_in6" + entity_id: "light.jadalnia_led" - platform: gpio name: "hub2_in7" # Kuchnia 2_1 pin: @@ -1444,16 +1564,22 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub1_out3 # Kuchnia Halogen + - logger.log: + level: INFO + format: "Kuchnia Filar 2_1 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Kuchnia Filar 2_1 [1×]" - entity_id: "binary_sensor.hub2_in7" + entity_id: "switch.hub1_out3" - timing: - ON for at least 350ms then: - script.execute: off_all + - logger.log: + level: INFO + format: "Kuchnia Filar 2_1 [długi]" - homeassistant.service: service: logbook.log data: @@ -1476,12 +1602,15 @@ binary_sensor: - OFF for at least 350ms then: - light.toggle: kuchnia_lezka_led # Kuchnia Łezka LED + - logger.log: + level: INFO + format: "Kuchnia Filar 2_2 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Kuchnia Filar 2_2 [1×]" - entity_id: "binary_sensor.hub2_in8" + entity_id: "light.kuchnia_lezka_led" - platform: gpio name: "hub2_in9" # Kuchnia 1_1 pin: @@ -1498,12 +1627,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub2_out11 # Salon Plafon + - logger.log: + level: INFO + format: "Kuchnia Filar 1_1 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Kuchnia Filar 1_1 [1×]" - entity_id: "binary_sensor.hub2_in9" + entity_id: "switch.hub2_out11" - timing: - ON for at most 350ms - OFF for at most 350ms @@ -1514,12 +1646,15 @@ binary_sensor: service: switch.toggle data: entity_id: switch.salon_wentylator # Salon Wentylator + - logger.log: + level: INFO + format: "Kuchnia Filar 1_1 [2×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Kuchnia Filar 1_1 [2×]" - entity_id: "binary_sensor.hub2_in9" + entity_id: "switch.salon_wentylator" - platform: gpio name: "hub2_in10" # Kuchnia 1_2 pin: @@ -1543,12 +1678,21 @@ binary_sensor: service: light.toggle data: entity_id: light.salon_kinkiety_led # Salon Kinkiety LED + - logger.log: + level: INFO + format: "Kuchnia Filar 1_2 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Kuchnia Filar 1_2 [1×]" - entity_id: "binary_sensor.hub2_in10" + entity_id: "light.komin_led" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Kuchnia Filar 1_2 [1×]" + entity_id: "light.salon_kinkiety_led" - timing: - ON for at most 350ms - OFF for at most 350ms @@ -1559,12 +1703,15 @@ binary_sensor: service: light.toggle data: entity_id: light.komin_led # Komin LED + - logger.log: + level: INFO + format: "Kuchnia Filar 1_2 [2×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Kuchnia Filar 1_2 [2×]" - entity_id: "binary_sensor.hub2_in10" + entity_id: "light.komin_led" - timing: - ON for at least 350ms then: @@ -1572,12 +1719,15 @@ binary_sensor: service: light.toggle data: entity_id: light.komin_led # Komin LED + - logger.log: + level: INFO + format: "Kuchnia Filar 1_2 [długi]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Kuchnia Filar 1_2 [długi]" - entity_id: "binary_sensor.hub2_in10" + entity_id: "light.komin_led" - platform: gpio name: "hub2_in11" # Schody 3 pin: @@ -1609,12 +1759,33 @@ binary_sensor: service: light.toggle data: entity_id: light.zwis_schody_2 # Zwis Schody + - logger.log: + level: INFO + format: "Schody 3 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Schody 3 [1×]" - entity_id: "binary_sensor.hub2_in11" + entity_id: "light.oczka_taras_2" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Schody 3 [1×]" + entity_id: "light.skrzynia_2" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Schody 3 [1×]" + entity_id: "light.tunel_2" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Schody 3 [1×]" + entity_id: "light.zwis_schody_2" - platform: gpio name: "hub2_in12" # Schody 1 pin: @@ -1631,12 +1802,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub2_out11 # Salon Plafon + - logger.log: + level: INFO + format: "Schody 1 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Schody 1 [1×]" - entity_id: "binary_sensor.hub2_in12" + entity_id: "switch.hub2_out11" - platform: gpio name: "hub2_in13" # Schody 2 pin: @@ -1664,12 +1838,27 @@ binary_sensor: service: light.toggle data: entity_id: light.salon_kinkiet_3_led # Salon Kinkiet 3 + - logger.log: + level: INFO + format: "Schody 2 [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Schody 2 [1×]" - entity_id: "binary_sensor.hub2_in13" + entity_id: "light.salon_kinkiet_1_led" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Schody 2 [1×]" + entity_id: "light.salon_kinkiet_2_led" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Schody 2 [1×]" + entity_id: "light.salon_kinkiet_3_led" - timing: - ON for at most 350ms - OFF for at most 350ms @@ -1692,12 +1881,33 @@ binary_sensor: service: light.toggle data: entity_id: light.salon_kinkiet_3_led # Salon Kinkiet 3 + - logger.log: + level: INFO + format: "Schody 2 [2×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Schody 2 [2×]" - entity_id: "binary_sensor.hub2_in13" + entity_id: "light.salon_kinkiety_led" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Schody 2 [2×]" + entity_id: "light.salon_kinkiet_1_led" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Schody 2 [2×]" + entity_id: "light.salon_kinkiet_2_led" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Schody 2 [2×]" + entity_id: "light.salon_kinkiet_3_led" - timing: - ON for at least 350ms then: @@ -1705,12 +1915,15 @@ binary_sensor: service: light.toggle data: entity_id: light.komin_led # Komin LED + - logger.log: + level: INFO + format: "Schody 2 [długi]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Schody 2 [długi]" - entity_id: "binary_sensor.hub2_in13" + entity_id: "light.komin_led" - platform: gpio name: "hub2_in14" # (niepodpięte) pin: @@ -1750,12 +1963,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub1_out7 # Garderoba Duża + - logger.log: + level: INFO + format: "Garderoba Duża Lewy [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Garderoba Duża Lewy [1×]" - entity_id: "binary_sensor.hub3_in0" + entity_id: "switch.hub1_out7" - platform: gpio name: "hub3_in1" # Garderoba Duża Prawy pin: @@ -1782,22 +1998,28 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub2_out13 # SPA Zwisy + - logger.log: + level: INFO + format: "SPA Lewy [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "SPA Lewy [1×]" - entity_id: "binary_sensor.hub3_in2" + entity_id: "switch.hub2_out13" - timing: - ON for at least 350ms then: - switch.toggle: hub1_out4 # SPA Wentylator + - logger.log: + level: INFO + format: "SPA Lewy [długi]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "SPA Lewy [długi]" - entity_id: "binary_sensor.hub3_in2" + entity_id: "switch.hub1_out4" - platform: gpio name: "hub3_in3" # SPA Prawy pin: @@ -1815,22 +2037,34 @@ binary_sensor: then: - switch.toggle: hub1_out4 # SPA Wentylator - switch.toggle: hub1_out10 # SPA Halogeny + - logger.log: + level: INFO + format: "SPA Prawy [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "SPA Prawy [1×]" - entity_id: "binary_sensor.hub3_in3" + entity_id: "switch.hub1_out4" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "SPA Prawy [1×]" + entity_id: "switch.hub1_out10" - timing: - ON for at least 350ms then: - light.toggle: SPA_Ledy # SPA Ledy + - logger.log: + level: INFO + format: "SPA Prawy [długi]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "SPA Prawy [długi]" - entity_id: "binary_sensor.hub3_in3" + entity_id: "light.spa_ledy" - platform: gpio name: "hub3_in4" # Biała Łazienka Ściana pin: @@ -1847,12 +2081,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub2_out0 # Łazienka Sufit + - logger.log: + level: INFO + format: "Biała Łazienka [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Biała Łazienka [1×]" - entity_id: "binary_sensor.hub3_in4" + entity_id: "switch.hub2_out0" - timing: - ON for at most 350ms - OFF for at most 350ms @@ -1860,22 +2097,28 @@ binary_sensor: - OFF for at least 350ms then: - light.toggle: biala_lazienka_wanna_led # Biała Łazienka Wanna LED + - logger.log: + level: INFO + format: "Biała Łazienka [2×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Biała Łazienka [2×]" - entity_id: "binary_sensor.hub3_in4" + entity_id: "light.biala_lazienka_wanna_led" - timing: - ON for at least 350ms then: - switch.toggle: hub2_out8 # Łazienka Wentylator + - logger.log: + level: INFO + format: "Biała Łazienka [długi]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Biała Łazienka [długi]" - entity_id: "binary_sensor.hub3_in4" + entity_id: "switch.hub2_out8" - platform: gpio name: "hub3_in5" # Małe WC Lustro Prawy pin: @@ -1897,12 +2140,27 @@ binary_sensor: service: light.toggle data: entity_id: light.wc_led # WC LED + - logger.log: + level: INFO + format: "WC Prawy [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "WC Prawy [1×]" - entity_id: "binary_sensor.hub3_in5" + entity_id: "switch.hub2_out5" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "WC Prawy [1×]" + entity_id: "switch.hub2_out2" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "WC Prawy [1×]" + entity_id: "light.wc_led" - platform: gpio name: "hub3_in6" # Małe WC Lustro Lewy pin: @@ -1919,12 +2177,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub1_out9 # WC Lustro + - logger.log: + level: INFO + format: "WC Lewy [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "WC Lewy [1×]" - entity_id: "binary_sensor.hub3_in6" + entity_id: "switch.hub1_out9" - platform: gpio name: "hub3_in7" # Biała Łazienka Skos pin: @@ -1941,12 +2202,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub2_out4 # Łazienka Skos + - logger.log: + level: INFO + format: "Biała Łazienka Skos [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Biała Łazienka Skos [1×]" - entity_id: "binary_sensor.hub3_in7" + entity_id: "switch.hub2_out4" - platform: gpio name: "hub3_in8" # SPA Lustro Lewy pin: @@ -1963,12 +2227,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub1_out5 # Kanciapa pod schodami + - logger.log: + level: INFO + format: "SPA Lustro Lewy [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "SPA Lustro Lewy [1×]" - entity_id: "binary_sensor.hub3_in8" + entity_id: "switch.hub1_out5" - platform: gpio name: "hub3_in9" # SPA Lustro Prawy pin: @@ -1985,12 +2252,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub1_out1 # SPA Kinkiet Lustro + - logger.log: + level: INFO + format: "SPA Lustro Prawy [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "SPA Lustro Prawy [1×]" - entity_id: "binary_sensor.hub3_in9" + entity_id: "switch.hub1_out1" - platform: gpio name: "hub3_in10" # Biuro Skos pin: @@ -2007,12 +2277,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub1_out2 # Biuro + - logger.log: + level: INFO + format: "Biuro Skos [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Biuro Skos [1×]" - entity_id: "binary_sensor.hub3_in10" + entity_id: "switch.hub1_out2" - timing: - ON for at most 350ms - OFF for at most 350ms @@ -2020,12 +2293,15 @@ binary_sensor: - OFF for at least 350ms then: - light.toggle: serwer_led # Serwer LED + - logger.log: + level: INFO + format: "Biuro Skos [2×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Biuro Skos [2×]" - entity_id: "binary_sensor.hub3_in10" + entity_id: "light.serwer_led" - platform: gpio name: "hub3_in11" # Serwer Prawy pin: @@ -2042,12 +2318,15 @@ binary_sensor: - OFF for at least 350ms then: - light.toggle: serwer_led # Serwer LED + - logger.log: + level: INFO + format: "Serwer Prawy [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Serwer Prawy [1×]" - entity_id: "binary_sensor.hub3_in11" + entity_id: "light.serwer_led" - timing: - ON for at most 350ms - OFF for at most 350ms @@ -2055,12 +2334,15 @@ binary_sensor: - OFF for at least 350ms then: - light.toggle: test_led_2 # TEST LED 2 + - logger.log: + level: INFO + format: "Serwer Prawy [2×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Serwer Prawy [2×]" - entity_id: "binary_sensor.hub3_in11" + entity_id: "light.test_led_2" - timing: - ON for at most 350ms - OFF for at most 350ms @@ -2070,12 +2352,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub3_out2 # Wentylator Główny Obieg + - logger.log: + level: INFO + format: "Serwer Prawy [3×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Serwer Prawy [3×]" - entity_id: "binary_sensor.hub3_in11" + entity_id: "switch.hub3_out2" - platform: gpio name: "hub3_in12" # Serwer Lewy pin: @@ -2092,12 +2377,15 @@ binary_sensor: - OFF for at least 350ms then: - switch.toggle: hub1_out14 # Korytarz Halogeny + - logger.log: + level: INFO + format: "Serwer Lewy [1×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Serwer Lewy [1×]" - entity_id: "binary_sensor.hub3_in12" + entity_id: "switch.hub1_out14" - timing: - ON for at most 350ms - OFF for at most 350ms @@ -2106,16 +2394,28 @@ binary_sensor: then: - switch.toggle: hub1_out14 # Korytarz Halogeny - switch.toggle: hub1_out2 # Biuro + - logger.log: + level: INFO + format: "Serwer Lewy [2×]" - homeassistant.service: service: logbook.log data: name: "Main Hub" message: "Serwer Lewy [2×]" - entity_id: "binary_sensor.hub3_in12" + entity_id: "switch.hub1_out14" + - homeassistant.service: + service: logbook.log + data: + name: "Main Hub" + message: "Serwer Lewy [2×]" + entity_id: "switch.hub1_out2" - timing: - ON for at least 350ms then: - script.execute: off_all + - logger.log: + level: INFO + format: "Serwer Lewy [długi]" - homeassistant.service: service: logbook.log data: