Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: olimex-status
- platform: ESP32
- board: esp32-poe-iso
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- password: "123456789123456789"
- ethernet:
- type: LAN8720
- mdc_pin: GPIO23
- mdio_pin: GPIO18
- clk_mode: GPIO17_OUT
- phy_addr: 0
- power_pin: GPIO12
- manual_ip:
- static_ip: 192.168.1.20
- gateway: 192.168.1.1
- subnet: 255.0.0.0
- i2c:
- sda: 13
- scl: 16
- scan: True
- id: bus_a
- mcp23017:
- - id: 'mcp23017_hub'
- address: 0x27
- - id: 'mcp23017_hub1'
- address: 0x26
- - id: 'mcp23017_hub2'
- address: 0x25
- binary_sensor:
- # HUB 1
- # H1-1
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 0
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d1"
- device_class: light
- # H1-2
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 1
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d2"
- device_class: light
- # H1-3
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 2
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d3"
- device_class: light
- # H1-4
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 3
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d4"
- device_class: light
- # H1-5
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 4
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d5"
- device_class: light
- # H1-6
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 5
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d6"
- device_class: light
- # H1-7
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 6
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d7"
- device_class: light
- # H1-8
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 7
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d8"
- device_class: light
- # H1-9
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 8
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d9"
- device_class: light
- # H1-10
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 9
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d10"
- device_class: light
- # H1-11
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 10
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d11"
- device_class: light
- # H1-12
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 11
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d12"
- device_class: light
- # H1-13
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 12
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d13"
- device_class: light
- # H1-14
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 13
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d14"
- device_class: light
- # H1-15
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 14
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d15"
- device_class: light
- # H1-16
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub
- number: 15
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d16"
- device_class: light
- #
- # HUB 2
- # H2-1
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 0
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d1"
- device_class: light
- # H2-2
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 1
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d2"
- device_class: light
- # H2-3
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 2
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d3"
- device_class: light
- # H2-4
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 3
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d4"
- device_class: light
- # H2-5
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 4
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d5"
- device_class: light
- # H2-6
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 5
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d6"
- device_class: light
- # H2-7
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 6
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d7"
- device_class: light
- # H2-8
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 7
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d8"
- device_class: light
- # H2-9
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 8
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d9"
- device_class: light
- # H2-10
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 9
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d10"
- device_class: light
- # H2-11
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 10
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d11"
- device_class: light
- # H2-12
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 11
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d12"
- device_class: light
- # H2-13
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 12
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d13"
- device_class: light
- # H2-14
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 13
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d14"
- device_class: light
- # H2-15
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 14
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d15"
- device_class: light
- # H2-16
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub1
- number: 15
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 2-d16"
- device_class: light
- # HUB 1
- # H3-1
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 0
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d1"
- device_class: light
- # H3-2
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 1
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d2"
- device_class: light
- # H3-3
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 2
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d3"
- device_class: light
- # H3-4
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 3
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d4"
- device_class: light
- # H3-5
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 4
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d5"
- device_class: light
- # H3-6
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 5
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d6"
- device_class: light
- # H3-7
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 6
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d7"
- device_class: light
- # H3-8
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 7
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d8"
- device_class: light
- # H3-9
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 8
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d9"
- device_class: light
- # H3-10
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 9
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d10"
- device_class: light
- # H3-11
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 10
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d11"
- device_class: light
- # H3-12
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 11
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d12"
- device_class: light
- # H3-13
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 12
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d13"
- device_class: light
- # H3-14
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 13
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d14"
- device_class: light
- # H3-15
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 14
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d15"
- device_class: light
- # H3-16
- - platform: gpio
- pin:
- mcp23xxx: mcp23017_hub2
- number: 15
- mode: INPUT_PULLUP
- inverted: True
- name: "Status 1-d16"
- device_class: light
Add Comment
Please, Sign In to add comment