115 lines
3.7 KiB
YAML
115 lines
3.7 KiB
YAML
script:
|
|
# ── Wyłącz wszystkie lampy ───────────────────────────────────────────────
|
|
- id: off_all_lights
|
|
then:
|
|
- light.turn_off: serwer_led
|
|
- light.turn_off: jadalnia_led
|
|
- light.turn_off: biala_lazienka_wanna_led
|
|
- light.turn_off: kuchnia_lezka_led
|
|
- light.turn_off: spa_ledy
|
|
- light.turn_off: pokoj_dla_gosci_led
|
|
- light.turn_off: test_led_1
|
|
- light.turn_off: test_led_2
|
|
- light.turn_off: sypialnia_led
|
|
- light.turn_off: hub1_out0
|
|
- light.turn_off: hub1_out1
|
|
- light.turn_off: hub1_out2
|
|
- light.turn_off: hub1_out3
|
|
- light.turn_off: hub1_out5
|
|
- light.turn_off: hub1_out6
|
|
- light.turn_off: hub1_out7
|
|
- light.turn_off: hub1_out8
|
|
- light.turn_off: hub1_out9
|
|
- light.turn_off: hub1_out10
|
|
- light.turn_off: hub1_out11
|
|
- light.turn_off: hub1_out12
|
|
- light.turn_off: hub1_out13
|
|
- light.turn_off: hub1_out14
|
|
- light.turn_off: hub1_out15
|
|
- light.turn_off: hub2_out0
|
|
- light.turn_off: hub2_out1
|
|
- light.turn_off: hub2_out2
|
|
- light.turn_off: hub2_out3
|
|
- light.turn_off: hub2_out4
|
|
- light.turn_off: hub2_out6
|
|
- light.turn_off: hub2_out7
|
|
- light.turn_off: hub2_out9
|
|
- light.turn_off: hub2_out10
|
|
- light.turn_off: hub2_out11
|
|
- light.turn_off: hub2_out12
|
|
- light.turn_off: hub2_out13
|
|
- light.turn_off: hub2_out14
|
|
- light.turn_off: hub2_out15
|
|
- light.turn_off: hub3_out0
|
|
- light.turn_off: hub3_out1
|
|
- light.turn_off: hub3_out3
|
|
- light.turn_off: hub3_out4
|
|
- light.turn_off: hub3_out5
|
|
- light.turn_off: hub3_out6
|
|
- light.turn_off: hub3_out7
|
|
- light.turn_off: hub3_out8
|
|
- light.turn_off: hub3_out9
|
|
- light.turn_off: hub3_out10
|
|
- light.turn_off: hub3_out11
|
|
- light.turn_off: hub3_out12
|
|
- light.turn_off: hub3_out13
|
|
- light.turn_off: hub3_out14
|
|
- light.turn_off: hub3_out15
|
|
|
|
# ── Wyłącz wszystkie wentylatory ─────────────────────────────────────────
|
|
- id: off_all_fans
|
|
then:
|
|
- light.turn_off: hub3_out2 # Fan: Biuro/Serwer
|
|
- light.turn_off: hub1_out4 # Fan: SPA/Łazienka
|
|
- light.turn_off: hub2_out5 # Fan: Małe WC
|
|
- light.turn_off: hub2_out8 # Fan: Biała Łazienka
|
|
|
|
# ── WLED placeholders (TODO: zastąpić sterowaniem WLED przez HA/MQTT) ───
|
|
- id: wled_korytarz_kinkiety_toggle
|
|
then:
|
|
- logger.log:
|
|
level: INFO
|
|
format: "WLED PLACEHOLDER: korytarz_kinkiety toggle"
|
|
|
|
- id: wled_komin_toggle
|
|
then:
|
|
- logger.log:
|
|
level: INFO
|
|
format: "WLED PLACEHOLDER: komin_led toggle"
|
|
|
|
- id: wled_komin_on
|
|
then:
|
|
- logger.log:
|
|
level: INFO
|
|
format: "WLED PLACEHOLDER: komin_led turn_on"
|
|
|
|
- id: wled_salon_kinkiety_toggle
|
|
then:
|
|
- logger.log:
|
|
level: INFO
|
|
format: "WLED PLACEHOLDER: salon_kinkiety_led toggle"
|
|
|
|
- id: wled_salon_kinkiety_off
|
|
then:
|
|
- logger.log:
|
|
level: INFO
|
|
format: "WLED PLACEHOLDER: salon_kinkiety_led turn_off"
|
|
|
|
- id: wled_schody_all_toggle
|
|
then:
|
|
- logger.log:
|
|
level: INFO
|
|
format: "WLED PLACEHOLDER: oczka_taras + skrzynia + tunel + zwis_schody toggle"
|
|
|
|
- id: wled_wc_led_toggle
|
|
then:
|
|
- logger.log:
|
|
level: INFO
|
|
format: "WLED PLACEHOLDER: wc_led toggle"
|
|
|
|
- id: wled_salon_wentylator_toggle
|
|
then:
|
|
- logger.log:
|
|
level: INFO
|
|
format: "WLED PLACEHOLDER: salon_wentylator toggle"
|