Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: olimex-sw
- esp32:
- board: esp32-poe-iso
- # Enable logging
- logger:
- # Enable Home Assistant API
- #api:
- mqtt:
- broker: 192.168.1.9
- username: homeassistant
- password: zxc
- ota:
- password: "zxc"
- ethernet:
- type: LAN8720
- mdc_pin: GPIO23
- mdio_pin: GPIO18
- clk_mode: GPIO17_OUT
- phy_addr: 0
- power_pin: GPIO12
- # Optional manual IP
- manual_ip:
- static_ip: 192.168.1.102
- gateway: 192.168.1.1
- subnet: 255.255.255.0
- i2c:
- sda: 13
- scl: 16
- scan: False
- # id: bus_a
- mcp23017:
- - id: 'mcp23017_hub'
- address: 0x27
- - id: 'mcp23017_hub1'
- address: 0x26
- - id: 'mcp23017_hub2'
- address: 0x25
- # statusy
- - id: 'mcp23017_hub3'
- address: 0x20
- - id: 'mcp23017_hub4'
- address: 0x21
- - id: 'mcp23017_hub5'
- address: 0x22
- # - id: 'mcp23017_hub6'
- # address: 0x23
- binary_sensor:
- # HUB 1
- # H1-1
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 0
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Łazienka Góra Środek"
- id: a1
- filters:
- - delayed_on_off: 50ms
- # H1-2
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 1
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Łazienka Góra Prawa"
- id: a2
- filters:
- - delayed_on_off: 50ms
- # H1-3
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 2
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Łazienka Dół lustro 2"
- id: a3
- filters:
- - delayed_on_off: 50ms
- # H1-4
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 3
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Podbitka"
- id: a4
- filters:
- - delayed_on_off: 50ms
- # H1-5
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 4
- mode: INPUT_PULLUP
- # inverted: True
- name: "Status Pokój Prawy 2"
- id: a5
- filters:
- - delayed_on_off: 50ms
- # H1-6
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 5
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Pokój Prawy 1"
- id: a6
- filters:
- - delayed_on_off: 50ms
- # H1-7
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 6
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Łazienka Dół lustro 1"
- id: a7
- filters:
- - delayed_on_off: 50ms
- # H1-8
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 7
- mode: INPUT_PULLUP
- # inverted: True
- name: "Status Przedpokój Góra Korytarz "
- id: a8
- filters:
- - delayed_on_off: 50ms
- # H1-9
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 8
- mode: INPUT_PULLUP
- # inverted: True
- name: "Status Salon Halogen 1 - stare?"
- id: a9
- filters:
- - delayed_on_off: 50ms
- # H1-10
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 9
- # mode: INPUT_PULLUP
- inverted: True
- name: "Status Salon Halogen 2 - stare?"
- id: a10
- filters:
- - delayed_on_off: 50ms
- # H1-11
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 10
- mode: INPUT_PULLUP
- # inverted: True
- name: "Status 1-d11"
- id: a11
- filters:
- - delayed_on_off: 50ms
- # H1-12
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 11
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d12"
- id: a12
- filters:
- - delayed_on_off: 50ms
- # H1-13
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 12
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d13"
- id: a13
- filters:
- - delayed_on_off: 50ms
- # H1-14
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 13
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Pierdolnik / Biuro"
- id: a14
- filters:
- - delayed_on_off: 50ms
- # H1-15
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 14
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d15"
- id: a15
- filters:
- - delayed_on_off: 50ms
- # H1-16
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub3
- number: 15
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d16"
- id: a16
- filters:
- - delayed_on_off: 50ms
- #
- # HUB 2
- # H2-1
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 0
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Schody Led Góra"
- id: b1
- filters:
- - delayed_on_off: 50ms
- # H2-2
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 1
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Schody Led Dół"
- id: b2
- filters:
- - delayed_on_off: 50ms
- # H2-3
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 2
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Schody Zewnętrzne Przód"
- id: b3
- filters:
- - delayed_on_off: 50ms
- # H2-4
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 3
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Elewacja Tył"
- id: b4
- filters:
- - delayed_on_off: 50ms
- # H2-5
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 4
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Elewacja Przód"
- id: b5
- filters:
- - delayed_on_off: 50ms
- # H2-6
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 5
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Kuchnia Środek"
- id: b6
- filters:
- - delayed_on_off: 50ms
- # H2-7
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 6
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d7"
- id: b7
- filters:
- - delayed_on_off: 50ms
- # H2-8
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 7
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d8"
- id: b8
- filters:
- - delayed_on_off: 50ms
- # H2-9
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 8
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Sypialnia Rodziców 1"
- id: b9
- filters:
- - delayed_on_off: 50ms
- # H2-10
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 9
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Gościnny 2"
- id: b10
- filters:
- - delayed_on_off: 50ms
- # H2-11
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 10
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Garderoba"
- id: b11
- filters:
- - delayed_on_off: 50ms
- # H2-12
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 11
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Salon 4"
- id: b12
- filters:
- - delayed_on_off: 50ms
- # H2-13
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 12
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Sypialnia Rodziców 2"
- id: b13
- filters:
- - delayed_on_off: 50ms
- # H2-14
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 13
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Gościnny 1"
- id: b14
- filters:
- - delayed_on_off: 50ms
- # H2-15
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 14
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Salon 3"
- id: b15
- filters:
- - delayed_on_off: 50ms
- # H2-16
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub4
- number: 15
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Łazienka Góra Lewa"
- id: b16
- filters:
- - delayed_on_off: 50ms
- # HUB 3
- # H3-1
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 0
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Salon 1"
- id: c1
- filters:
- - delayed_on_off: 50ms
- # H3-2
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 1
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Kotłownia"
- id: c2
- filters:
- - delayed_on_off: 50ms
- # H3-3
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 2
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Łazienka Dół 2"
- id: c3
- filters:
- - delayed_on_off: 50ms
- # H3-4
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 3
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Salon 2"
- id: c4
- filters:
- - delayed_on_off: 50ms
- # H3-5
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 4
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Pokój Lewy 2"
- id: c5
- filters:
- - delayed_on_off: 50ms
- # H3-6
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 5
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Łazienka Dół 1"
- id: c6
- filters:
- - delayed_on_off: 50ms
- # H3-7
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 6
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Pokój Lewy 1"
- id: c7
- filters:
- - delayed_on_off: 50ms
- # H3-8
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 7
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Wiatrołap"
- id: c8
- filters:
- - delayed_on_off: 50ms
- # H3-9
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 8
- mode: INPUT_PULLUP
- inverted: True
- name: "Status WC"
- id: c9
- filters:
- - delayed_on_off: 50ms
- # H3-10
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 9
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Kuchnia Halogen 1"
- id: c10
- filters:
- - delayed_on_off: 50ms
- # H3-11
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 10
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Nocne Dół"
- id: c11
- filters:
- - delayed_on_off: 50ms
- # H3-12
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 11
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Nocne Góra"
- id: c12
- filters:
- - delayed_on_off: 50ms
- # H3-13
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 12
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Kuchnia Halogen 2"
- id: c13
- filters:
- - delayed_on_off: 50ms
- # H3-14
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 13
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Hol"
- id: c14
- filters:
- - delayed_on_off: 50ms
- # H3-15
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 14
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Spiżarka"
- id: c15
- filters:
- - delayed_on_off: 50ms
- # H3-16
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub5
- number: 15
- mode: INPUT_PULLUP
- inverted: True
- name: "Status Schody Wiszące"
- id: c16
- filters:
- - delayed_on_off: 50ms
- ###
- ##
- switch:
- - platform: restart
- name: Olimex Restart
- # ##################################
- ### Switche Hub
- # H1-1
- - platform: gpio
- name: "SW Spizarka"
- pin:
- mcp23xxx: mcp23017_hub
- number: 0
- mode: OUTPUT
- inverted: False
- id: spizarka
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: spizarka
- # H1-2
- - platform: gpio
- name: "SW Nocne Dol"
- pin:
- mcp23xxx: mcp23017_hub
- number: 1
- mode: OUTPUT
- inverted: False
- id: Nocnedol
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Nocnedol
- # H1-3
- - platform: gpio
- name: "SW Nad schodami"
- pin:
- mcp23xxx: mcp23017_hub
- number: 2
- mode: OUTPUT
- inverted: False
- id: Nadschodami
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Nadschodami
- # H1-4
- - platform: gpio
- name: "SW Kuchnia Halogen"
- pin:
- mcp23xxx: mcp23017_hub
- number: 3
- mode: OUTPUT
- inverted: False
- id: Kuchnia_halogen
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Kuchnia_halogen
- # H1-5
- - platform: gpio
- name: "SW Prawy 1"
- pin:
- mcp23xxx: mcp23017_hub
- number: 4
- mode: OUTPUT
- inverted: False
- id: Prawy_1
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Prawy_1
- # H1-6
- - platform: gpio
- name: "SW Nocne gora"
- pin:
- mcp23xxx: mcp23017_hub
- number: 5
- mode: OUTPUT
- inverted: False
- id: Nocne_gora
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Nocne_gora
- # H1-7
- - platform: gpio
- name: "SW Lampa 7"
- pin:
- mcp23xxx: mcp23017_hub
- number: 6
- mode: OUTPUT
- inverted: False
- id: Lampa_7
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Lampa_7
- # H1-8
- - platform: gpio
- name: "SW WC"
- pin:
- mcp23xxx: mcp23017_hub
- number: 7
- mode: OUTPUT
- inverted: False
- id: Wc
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Wc
- # H1-9
- - platform: gpio
- name: "SW Schody Led 1"
- pin:
- mcp23xxx: mcp23017_hub
- number: 8
- mode: OUTPUT
- inverted: False
- id: Lampa_9
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Lampa_9
- # H1-10
- - platform: gpio
- name: "SW Elewacja 1"
- pin:
- mcp23xxx: mcp23017_hub
- number: 9
- mode: OUTPUT
- inverted: False
- id: Lampa_10
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Lampa_10
- # H1-11
- - platform: gpio
- name: "SW Lazienka lustro 2"
- pin:
- mcp23xxx: mcp23017_hub
- number: 10
- mode: OUTPUT
- inverted: False
- id: Lampa_11
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Lampa_11
- # H1-12
- - platform: gpio
- name: "SW Nad schodami 2"
- pin:
- mcp23xxx: mcp23017_hub
- number: 11
- mode: OUTPUT
- inverted: False
- id: Lampa_12
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Lampa_12
- # H1-13
- - platform: gpio
- name: "SW Korytaz dol"
- pin:
- mcp23xxx: mcp23017_hub
- number: 12
- mode: OUTPUT
- inverted: False
- id: Lampa_13
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Lampa_13
- # H1-14
- - platform: gpio
- name: "SW Kuchnia Halogen 2"
- pin:
- mcp23xxx: mcp23017_hub
- number: 13
- mode: OUTPUT
- inverted: False
- id: Lampa_14
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Lampa_14
- # H1-15
- - platform: gpio
- name: "SW Prawy 2"
- pin:
- mcp23xxx: mcp23017_hub
- number: 14
- mode: OUTPUT
- inverted: False
- id: Lampa_15
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Lampa_15
- # H1-16
- - platform: gpio
- name: "SW Lazienka lustro 1"
- pin:
- mcp23xxx: mcp23017_hub
- number: 15
- mode: OUTPUT
- inverted: False
- id: Lampa_16
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: Lampa_16
- # ##################################
- # HUB 2 swicze
- # H2-1
- - platform: gpio
- name: "SW Sypialnia gora 1"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 0
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_1
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_1
- # H2-2
- - platform: gpio
- name: "SW Sypialnia doł 1"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 1
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_2
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_2
- # H2-3
- - platform: gpio
- name: "SW Schody Led 2"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 2
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_3
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_3
- # H2-4
- - platform: gpio
- name: "SW Elewacja 2"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 3
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_4
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_4
- # H2-5
- - platform: gpio
- name: "SW Salon Halogen 1"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 4
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_5
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_5
- # H2-6
- - platform: gpio
- name: "SW Salon Prawa 1"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 5
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_6
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_6
- # H2-7
- - platform: gpio
- name: "SW Garderoba"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 6
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_7
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_7
- # H2-8
- - platform: gpio
- name: "SW Kuchnia"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 7
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_8
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_8
- # H2-9
- - platform: gpio
- name: "SW Lamp 9"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 8
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_9
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_9
- # H2-10
- - platform: gpio
- name: "SW Lamp 10"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 9
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_10
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_10
- # H2-11
- - platform: gpio
- name: "SW Salon Prawa 2"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 10
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_11
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_11
- # H2-12
- - platform: gpio
- name: "SW Zewnetrzne Schody"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 11
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_12
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_12
- # H2-13
- - platform: gpio
- name: "SW Biuro"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 12
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_13
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_13
- # H2-14
- - platform: gpio
- name: "SW Salon Halogen 2"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 13
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_14
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_14
- # H2-15
- - platform: gpio
- name: "SW Sypialnia doł 2"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 14
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_15
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_15
- # H2-16
- - platform: gpio
- name: "SW Sypialnia Gora 2"
- pin:
- mcp23xxx: mcp23017_hub1
- number: 15
- mode: OUTPUT
- inverted: False
- id: H1_Lamp_16
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H1_Lamp_16
- # ##################################
- # HUB 3 swicze
- # H3-1
- - platform: gpio
- name: "SW 1Lamp 1"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 0
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_1
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_1
- # H3-2
- - platform: gpio
- name: "SW Kotlownia"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 1
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_2
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_2
- # H3-3
- - platform: gpio
- name: "SW Korytarz gora"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 2
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_3
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_3
- # H3-4
- - platform: gpio
- name: "SW Lazienka gora srodek"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 3
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_4
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_4
- # H3-5
- - platform: gpio
- name: "SW Lazienka doł 1"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 4
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_5
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_5
- # H3-6
- - platform: gpio
- name: "SW Lazienka dol 2"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 5
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_6
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_6
- # H3-7
- - platform: gpio
- name: "SW Salon 1"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 6
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_7
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_7
- # H3-8
- - platform: gpio
- name: "SW Lazienka gora lewa"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 7
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_8
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_8
- # H3-9
- - platform: gpio
- name: "SW Salon 2"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 8
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_9
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_9
- # H3-10
- - platform: gpio
- name: "SW 1Lamp 10"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 9
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_10
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_10
- # H3-11
- - platform: gpio
- name: "SW Wiatrolap"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 10
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_11
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_11
- # H3-12
- - platform: gpio
- name: "SW Pokoj Lili"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 11
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_12
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_12
- # H3-13
- - platform: gpio
- name: "SW Pokoj lili 2 - NU"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 12
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_13
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_13
- # H3-14
- - platform: gpio
- name: "SW Lazienka Gora prawa"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 13
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_14
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_14
- # H3-15
- - platform: gpio
- name: "SW SWX2"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 14
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_15
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_15
- # H3-16
- - platform: gpio
- name: "SW 1Lamp 16"
- pin:
- mcp23xxx: mcp23017_hub2
- number: 15
- mode: OUTPUT
- inverted: False
- id: H2_Lamp_16
- on_turn_on:
- - delay: 50ms
- - switch.turn_off: H2_Lamp_16
- #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement