script: # ── Wyłącz wszystkie lampy ─────────────────────────────────────────────── # Odkomentuj bloki odpowiadające aktywnym adresom z main-hub.yaml - id: off_all_lights then: # ── PCA9685 PWM ────────────────────────────────────────────────────────── # Odkomentuj i uzupełnij ID świateł zdefiniowanych w pca9685.yaml # PCA9685 0x40 (A0=0 A1=0 A2=0 A3=0 A4=0 A5=0) # - light.turn_off: # pca_0x40_ch0 # - light.turn_off: # pca_0x40_ch1..15 # PCA9685 0x41 (A0=1 A1=0 A2=0 A3=0 A4=0 A5=0) # - light.turn_off: # pca_0x41_ch0 # - light.turn_off: # pca_0x41_ch1..15 # PCA9685 0x42 (A0=0 A1=1 A2=0 A3=0 A4=0 A5=0) # - light.turn_off: # pca_0x42_ch0 # - light.turn_off: # pca_0x42_ch1..15 # PCA9685 0x43 (A0=1 A1=1 A2=0 A3=0 A4=0 A5=0) # - light.turn_off: # pca_0x43_ch0 # - light.turn_off: # pca_0x43_ch1..15 # PCA9685 0x44 (A0=0 A1=0 A2=1 A3=0 A4=0 A5=0) # - light.turn_off: # pca_0x44_ch0 # - light.turn_off: # pca_0x44_ch1..15 # PCA9685 0x45 (A0=1 A1=0 A2=1 A3=0 A4=0 A5=0) # - light.turn_off: # pca_0x45_ch0 # - light.turn_off: # pca_0x45_ch1..15 # PCA9685 0x46 (A0=0 A1=1 A2=1 A3=0 A4=0 A5=0) # - light.turn_off: # pca_0x46_ch0 # - light.turn_off: # pca_0x46_ch1..15 # PCA9685 0x47 (A0=1 A1=1 A2=1 A3=0 A4=0 A5=0) # - light.turn_off: # pca_0x47_ch0 # - light.turn_off: # pca_0x47_ch1..15 # PCA9685 0x48 (A0=0 A1=0 A2=0 A3=1 A4=0 A5=0) # - light.turn_off: # pca_0x48_ch0 # - light.turn_off: # pca_0x48_ch1..15 # PCA9685 0x49 (A0=1 A1=0 A2=0 A3=1 A4=0 A5=0) # - light.turn_off: # pca_0x49_ch0 # - light.turn_off: # pca_0x49_ch1..15 # PCA9685 0x4a (A0=0 A1=1 A2=0 A3=1 A4=0 A5=0) # - light.turn_off: # pca_0x4a_ch0 # - light.turn_off: # pca_0x4a_ch1..15 # PCA9685 0x4b (A0=1 A1=1 A2=0 A3=1 A4=0 A5=0) # - light.turn_off: # pca_0x4b_ch0 # - light.turn_off: # pca_0x4b_ch1..15 # PCA9685 0x4c (A0=0 A1=0 A2=1 A3=1 A4=0 A5=0) # - light.turn_off: # pca_0x4c_ch0 # - light.turn_off: # pca_0x4c_ch1..15 # PCA9685 0x4d (A0=1 A1=0 A2=1 A3=1 A4=0 A5=0) # - light.turn_off: # pca_0x4d_ch0 # - light.turn_off: # pca_0x4d_ch1..15 # PCA9685 0x4e (A0=0 A1=1 A2=1 A3=1 A4=0 A5=0) # - light.turn_off: # pca_0x4e_ch0 # - light.turn_off: # pca_0x4e_ch1..15 # PCA9685 0x4f (A0=1 A1=1 A2=1 A3=1 A4=0 A5=0) # - light.turn_off: # pca_0x4f_ch0 # - light.turn_off: # pca_0x4f_ch1..15 # PCA9685 0x50 (A0=0 A1=0 A2=0 A3=0 A4=1 A5=0) # - light.turn_off: # pca_0x50_ch0 # - light.turn_off: # pca_0x50_ch1..15 # PCA9685 0x51 (A0=1 A1=0 A2=0 A3=0 A4=1 A5=0) # - light.turn_off: # pca_0x51_ch0 # - light.turn_off: # pca_0x51_ch1..15 # PCA9685 0x52 (A0=0 A1=1 A2=0 A3=0 A4=1 A5=0) # - light.turn_off: # pca_0x52_ch0 # - light.turn_off: # pca_0x52_ch1..15 # PCA9685 0x53 (A0=1 A1=1 A2=0 A3=0 A4=1 A5=0) # - light.turn_off: # pca_0x53_ch0 # - light.turn_off: # pca_0x53_ch1..15 # PCA9685 0x54 (A0=0 A1=0 A2=1 A3=0 A4=1 A5=0) # - light.turn_off: # pca_0x54_ch0 # - light.turn_off: # pca_0x54_ch1..15 # PCA9685 0x55 (A0=1 A1=0 A2=1 A3=0 A4=1 A5=0) # - light.turn_off: # pca_0x55_ch0 # - light.turn_off: # pca_0x55_ch1..15 # PCA9685 0x56 (A0=0 A1=1 A2=1 A3=0 A4=1 A5=0) # - light.turn_off: # pca_0x56_ch0 # - light.turn_off: # pca_0x56_ch1..15 # PCA9685 0x57 (A0=1 A1=1 A2=1 A3=0 A4=1 A5=0) # - light.turn_off: # pca_0x57_ch0 # - light.turn_off: # pca_0x57_ch1..15 # PCA9685 0x58 (A0=0 A1=0 A2=0 A3=1 A4=1 A5=0) # - light.turn_off: # pca_0x58_ch0 # - light.turn_off: # pca_0x58_ch1..15 # PCA9685 0x59 (A0=1 A1=0 A2=0 A3=1 A4=1 A5=0) # - light.turn_off: # pca_0x59_ch0 # - light.turn_off: # pca_0x59_ch1..15 # PCA9685 0x5a (A0=0 A1=1 A2=0 A3=1 A4=1 A5=0) # - light.turn_off: # pca_0x5a_ch0 # - light.turn_off: # pca_0x5a_ch1..15 # PCA9685 0x5b (A0=1 A1=1 A2=0 A3=1 A4=1 A5=0) # - light.turn_off: # pca_0x5b_ch0 # - light.turn_off: # pca_0x5b_ch1..15 # PCA9685 0x5c (A0=0 A1=0 A2=1 A3=1 A4=1 A5=0) # - light.turn_off: # pca_0x5c_ch0 # - light.turn_off: # pca_0x5c_ch1..15 # PCA9685 0x5d (A0=1 A1=0 A2=1 A3=1 A4=1 A5=0) # - light.turn_off: # pca_0x5d_ch0 # - light.turn_off: # pca_0x5d_ch1..15 # PCA9685 0x5e (A0=0 A1=1 A2=1 A3=1 A4=1 A5=0) # - light.turn_off: # pca_0x5e_ch0 # - light.turn_off: # pca_0x5e_ch1..15 # PCA9685 0x5f (A0=1 A1=1 A2=1 A3=1 A4=1 A5=0) # - light.turn_off: # pca_0x5f_ch0 # - light.turn_off: # pca_0x5f_ch1..15 # PCA9685 0x60 (A0=0 A1=0 A2=0 A3=0 A4=0 A5=1) # - light.turn_off: # pca_0x60_ch0 # - light.turn_off: # pca_0x60_ch1..15 # PCA9685 0x61 (A0=1 A1=0 A2=0 A3=0 A4=0 A5=1) # - light.turn_off: # pca_0x61_ch0 # - light.turn_off: # pca_0x61_ch1..15 # PCA9685 0x62 (A0=0 A1=1 A2=0 A3=0 A4=0 A5=1) # - light.turn_off: # pca_0x62_ch0 # - light.turn_off: # pca_0x62_ch1..15 # PCA9685 0x63 (A0=1 A1=1 A2=0 A3=0 A4=0 A5=1) # - light.turn_off: # pca_0x63_ch0 # - light.turn_off: # pca_0x63_ch1..15 # PCA9685 0x64 (A0=0 A1=0 A2=1 A3=0 A4=0 A5=1) # - light.turn_off: # pca_0x64_ch0 # - light.turn_off: # pca_0x64_ch1..15 # PCA9685 0x65 (A0=1 A1=0 A2=1 A3=0 A4=0 A5=1) # - light.turn_off: # pca_0x65_ch0 # - light.turn_off: # pca_0x65_ch1..15 # PCA9685 0x66 (A0=0 A1=1 A2=1 A3=0 A4=0 A5=1) # - light.turn_off: # pca_0x66_ch0 # - light.turn_off: # pca_0x66_ch1..15 # PCA9685 0x67 (A0=1 A1=1 A2=1 A3=0 A4=0 A5=1) # - light.turn_off: # pca_0x67_ch0 # - light.turn_off: # pca_0x67_ch1..15 # PCA9685 0x68 (A0=0 A1=0 A2=0 A3=1 A4=0 A5=1) # - light.turn_off: # pca_0x68_ch0 # - light.turn_off: # pca_0x68_ch1..15 # PCA9685 0x69 (A0=1 A1=0 A2=0 A3=1 A4=0 A5=1) # - light.turn_off: # pca_0x69_ch0 # - light.turn_off: # pca_0x69_ch1..15 # PCA9685 0x6a (A0=0 A1=1 A2=0 A3=1 A4=0 A5=1) # - light.turn_off: # pca_0x6a_ch0 # - light.turn_off: # pca_0x6a_ch1..15 # PCA9685 0x6b (A0=1 A1=1 A2=0 A3=1 A4=0 A5=1) # - light.turn_off: # pca_0x6b_ch0 # - light.turn_off: # pca_0x6b_ch1..15 # PCA9685 0x6c (A0=0 A1=0 A2=1 A3=1 A4=0 A5=1) # - light.turn_off: # pca_0x6c_ch0 # - light.turn_off: # pca_0x6c_ch1..15 # PCA9685 0x6d (A0=1 A1=0 A2=1 A3=1 A4=0 A5=1) # - light.turn_off: # pca_0x6d_ch0 # - light.turn_off: # pca_0x6d_ch1..15 # PCA9685 0x6e (A0=0 A1=1 A2=1 A3=1 A4=0 A5=1) # - light.turn_off: # pca_0x6e_ch0 # - light.turn_off: # pca_0x6e_ch1..15 # PCA9685 0x6f (A0=1 A1=1 A2=1 A3=1 A4=0 A5=1) # - light.turn_off: # pca_0x6f_ch0 # - light.turn_off: # pca_0x6f_ch1..15 # PCA9685 0x70 (A0=0 A1=0 A2=0 A3=0 A4=1 A5=1) # ZAREZERWOWANY (All Call) # - light.turn_off: # pca_0x70_ch0 # - light.turn_off: # pca_0x70_ch1..15 # PCA9685 0x71 (A0=1 A1=0 A2=0 A3=0 A4=1 A5=1) # ZAREZERWOWANY (Sub Call) # - light.turn_off: # pca_0x71_ch0 # - light.turn_off: # pca_0x71_ch1..15 # PCA9685 0x72 (A0=0 A1=1 A2=0 A3=0 A4=1 A5=1) # ZAREZERWOWANY (Sub Call) # - light.turn_off: # pca_0x72_ch0 # - light.turn_off: # pca_0x72_ch1..15 # PCA9685 0x73 (A0=1 A1=1 A2=0 A3=0 A4=1 A5=1) # ZAREZERWOWANY (Sub Call) # - light.turn_off: # pca_0x73_ch0 # - light.turn_off: # pca_0x73_ch1..15 # PCA9685 0x74 (A0=0 A1=0 A2=1 A3=0 A4=1 A5=1) # - light.turn_off: # pca_0x74_ch0 # - light.turn_off: # pca_0x74_ch1..15 # PCA9685 0x75 (A0=1 A1=0 A2=1 A3=0 A4=1 A5=1) # - light.turn_off: # pca_0x75_ch0 # - light.turn_off: # pca_0x75_ch1..15 # PCA9685 0x76 (A0=0 A1=1 A2=1 A3=0 A4=1 A5=1) # - light.turn_off: # pca_0x76_ch0 # - light.turn_off: # pca_0x76_ch1..15 # PCA9685 0x77 (A0=1 A1=1 A2=1 A3=0 A4=1 A5=1) # - light.turn_off: # pca_0x77_ch0 # - light.turn_off: # pca_0x77_ch1..15 # PCA9685 0x78 (A0=0 A1=0 A2=0 A3=1 A4=1 A5=1) # - light.turn_off: # pca_0x78_ch0 # - light.turn_off: # pca_0x78_ch1..15 # PCA9685 0x79 (A0=1 A1=0 A2=0 A3=1 A4=1 A5=1) # - light.turn_off: # pca_0x79_ch0 # - light.turn_off: # pca_0x79_ch1..15 # PCA9685 0x7a (A0=0 A1=1 A2=0 A3=1 A4=1 A5=1) # - light.turn_off: # pca_0x7a_ch0 # - light.turn_off: # pca_0x7a_ch1..15 # PCA9685 0x7b (A0=1 A1=1 A2=0 A3=1 A4=1 A5=1) # - light.turn_off: # pca_0x7b_ch0 # - light.turn_off: # pca_0x7b_ch1..15 # PCA9685 0x7c (A0=0 A1=0 A2=1 A3=1 A4=1 A5=1) # - light.turn_off: # pca_0x7c_ch0 # - light.turn_off: # pca_0x7c_ch1..15 # PCA9685 0x7d (A0=1 A1=0 A2=1 A3=1 A4=1 A5=1) # - light.turn_off: # pca_0x7d_ch0 # - light.turn_off: # pca_0x7d_ch1..15 # PCA9685 0x7e (A0=0 A1=1 A2=1 A3=1 A4=1 A5=1) # - light.turn_off: # pca_0x7e_ch0 # - light.turn_off: # pca_0x7e_ch1..15 # PCA9685 0x7f (A0=1 A1=1 A2=1 A3=1 A4=1 A5=1) # - light.turn_off: # pca_0x7f_ch0 # - light.turn_off: # pca_0x7f_ch1..15 # MCP23017 OUTPUT 0x20 (A2=0 A1=0 A0=0) # - light.turn_off: mcp_0x20_out0 # - light.turn_off: mcp_0x20_out1 # - light.turn_off: mcp_0x20_out2 # - light.turn_off: mcp_0x20_out3 # - light.turn_off: mcp_0x20_out4 # - light.turn_off: mcp_0x20_out5 # - light.turn_off: mcp_0x20_out6 # - light.turn_off: mcp_0x20_out7 # - light.turn_off: mcp_0x20_out8 # - light.turn_off: mcp_0x20_out9 # - light.turn_off: mcp_0x20_out10 # - light.turn_off: mcp_0x20_out11 # - light.turn_off: mcp_0x20_out12 # - light.turn_off: mcp_0x20_out13 # - light.turn_off: mcp_0x20_out14 # - light.turn_off: mcp_0x20_out15 # MCP23017 OUTPUT 0x21 (A2=0 A1=0 A0=1) # - light.turn_off: mcp_0x21_out0 # - light.turn_off: mcp_0x21_out1 # - light.turn_off: mcp_0x21_out2 # - light.turn_off: mcp_0x21_out3 # - light.turn_off: mcp_0x21_out4 # - light.turn_off: mcp_0x21_out5 # - light.turn_off: mcp_0x21_out6 # - light.turn_off: mcp_0x21_out7 # - light.turn_off: mcp_0x21_out8 # - light.turn_off: mcp_0x21_out9 # - light.turn_off: mcp_0x21_out10 # - light.turn_off: mcp_0x21_out11 # - light.turn_off: mcp_0x21_out12 # - light.turn_off: mcp_0x21_out13 # - light.turn_off: mcp_0x21_out14 # - light.turn_off: mcp_0x21_out15 # MCP23017 OUTPUT 0x22 (A2=0 A1=1 A0=0) # - light.turn_off: mcp_0x22_out0 # - light.turn_off: mcp_0x22_out1 # - light.turn_off: mcp_0x22_out2 # - light.turn_off: mcp_0x22_out3 # - light.turn_off: mcp_0x22_out4 # - light.turn_off: mcp_0x22_out5 # - light.turn_off: mcp_0x22_out6 # - light.turn_off: mcp_0x22_out7 # - light.turn_off: mcp_0x22_out8 # - light.turn_off: mcp_0x22_out9 # - light.turn_off: mcp_0x22_out10 # - light.turn_off: mcp_0x22_out11 # - light.turn_off: mcp_0x22_out12 # - light.turn_off: mcp_0x22_out13 # - light.turn_off: mcp_0x22_out14 # - light.turn_off: mcp_0x22_out15 # MCP23017 OUTPUT 0x23 (A2=0 A1=1 A0=1) # - light.turn_off: mcp_0x23_out0 # - light.turn_off: mcp_0x23_out1 # - light.turn_off: mcp_0x23_out2 # - light.turn_off: mcp_0x23_out3 # - light.turn_off: mcp_0x23_out4 # - light.turn_off: mcp_0x23_out5 # - light.turn_off: mcp_0x23_out6 # - light.turn_off: mcp_0x23_out7 # - light.turn_off: mcp_0x23_out8 # - light.turn_off: mcp_0x23_out9 # - light.turn_off: mcp_0x23_out10 # - light.turn_off: mcp_0x23_out11 # - light.turn_off: mcp_0x23_out12 # - light.turn_off: mcp_0x23_out13 # - light.turn_off: mcp_0x23_out14 # - light.turn_off: mcp_0x23_out15 # MCP23017 OUTPUT 0x24 (A2=1 A1=0 A0=0) # - light.turn_off: mcp_0x24_out0 # - light.turn_off: mcp_0x24_out1 # - light.turn_off: mcp_0x24_out2 # - light.turn_off: mcp_0x24_out3 # - light.turn_off: mcp_0x24_out4 # - light.turn_off: mcp_0x24_out5 # - light.turn_off: mcp_0x24_out6 # - light.turn_off: mcp_0x24_out7 # - light.turn_off: mcp_0x24_out8 # - light.turn_off: mcp_0x24_out9 # - light.turn_off: mcp_0x24_out10 # - light.turn_off: mcp_0x24_out11 # - light.turn_off: mcp_0x24_out12 # - light.turn_off: mcp_0x24_out13 # - light.turn_off: mcp_0x24_out14 # - light.turn_off: mcp_0x24_out15 # MCP23017 OUTPUT 0x25 (A2=1 A1=0 A0=1) # - light.turn_off: mcp_0x25_out0 # - light.turn_off: mcp_0x25_out1 # - light.turn_off: mcp_0x25_out2 # - light.turn_off: mcp_0x25_out3 # - light.turn_off: mcp_0x25_out4 # - light.turn_off: mcp_0x25_out5 # - light.turn_off: mcp_0x25_out6 # - light.turn_off: mcp_0x25_out7 # - light.turn_off: mcp_0x25_out8 # - light.turn_off: mcp_0x25_out9 # - light.turn_off: mcp_0x25_out10 # - light.turn_off: mcp_0x25_out11 # - light.turn_off: mcp_0x25_out12 # - light.turn_off: mcp_0x25_out13 # - light.turn_off: mcp_0x25_out14 # - light.turn_off: mcp_0x25_out15 # MCP23017 OUTPUT 0x26 (A2=1 A1=1 A0=0) # - light.turn_off: mcp_0x26_out0 # - light.turn_off: mcp_0x26_out1 # - light.turn_off: mcp_0x26_out2 # - light.turn_off: mcp_0x26_out3 # - light.turn_off: mcp_0x26_out4 # - light.turn_off: mcp_0x26_out5 # - light.turn_off: mcp_0x26_out6 # - light.turn_off: mcp_0x26_out7 # - light.turn_off: mcp_0x26_out8 # - light.turn_off: mcp_0x26_out9 # - light.turn_off: mcp_0x26_out10 # - light.turn_off: mcp_0x26_out11 # - light.turn_off: mcp_0x26_out12 # - light.turn_off: mcp_0x26_out13 # - light.turn_off: mcp_0x26_out14 # - light.turn_off: mcp_0x26_out15 # MCP23017 OUTPUT 0x27 (A2=1 A1=1 A0=1) # - light.turn_off: mcp_0x27_out0 # - light.turn_off: mcp_0x27_out1 # - light.turn_off: mcp_0x27_out2 # - light.turn_off: mcp_0x27_out3 # - light.turn_off: mcp_0x27_out4 # - light.turn_off: mcp_0x27_out5 # - light.turn_off: mcp_0x27_out6 # - light.turn_off: mcp_0x27_out7 # - light.turn_off: mcp_0x27_out8 # - light.turn_off: mcp_0x27_out9 # - light.turn_off: mcp_0x27_out10 # - light.turn_off: mcp_0x27_out11 # - light.turn_off: mcp_0x27_out12 # - light.turn_off: mcp_0x27_out13 # - light.turn_off: mcp_0x27_out14 # - light.turn_off: mcp_0x27_out15 - logger.log: level: INFO format: "off_all_lights executed" # ── Wyłącz wszystkie wentylatory ───────────────────────────────────────── # Wentylatory to konkretne wyjścia MCP — odkomentuj i uzupełnij adresy - id: off_all_fans then: # - light.turn_off: mcp_0x??_out? # Fan: # - light.turn_off: mcp_0x??_out? # Fan: - logger.log: level: INFO format: "off_all_fans executed" # ── WLED — Korytarz kinkiety ───────────────────────────────────────────── # TODO: Zastąp logger rzeczywistym sterowaniem WLED przez MQTT lub HA - id: wled_korytarz_kinkiety_toggle then: - logger.log: level: INFO format: "wled_korytarz_kinkiety_toggle — TODO" # ── WLED — Komin (toggle) ──────────────────────────────────────────────── - id: wled_komin_toggle then: - logger.log: level: INFO format: "wled_komin_toggle — TODO" # ── WLED — Komin (on) ─────────────────────────────────────────────────── - id: wled_komin_on then: - logger.log: level: INFO format: "wled_komin_on — TODO" # ── WLED — Salon kinkiety (toggle) ────────────────────────────────────── - id: wled_salon_kinkiety_toggle then: - logger.log: level: INFO format: "wled_salon_kinkiety_toggle — TODO" # ── WLED — Salon kinkiety (off) ───────────────────────────────────────── - id: wled_salon_kinkiety_off then: - logger.log: level: INFO format: "wled_salon_kinkiety_off — TODO" # ── WLED — Schody wszystkie ────────────────────────────────────────────── - id: wled_schody_all_toggle then: - logger.log: level: INFO format: "wled_schody_all_toggle — TODO" # ── WLED — WC LED ──────────────────────────────────────────────────────── - id: wled_wc_led_toggle then: - logger.log: level: INFO format: "wled_wc_led_toggle — TODO" # ── WLED — Salon wentylator ────────────────────────────────────────────── - id: wled_salon_wentylator_toggle then: - logger.log: level: INFO format: "wled_salon_wentylator_toggle — TODO"