408 lines
12 KiB
YAML
408 lines
12 KiB
YAML
mcp23017:
|
|
- id: "mcp23xxx_hub1_OUT"
|
|
address: 0x21
|
|
- id: "mcp23xxx_hub2_OUT"
|
|
address: 0x23
|
|
- id: "mcp23xxx_hub3_OUT"
|
|
address: 0x25
|
|
|
|
|
|
output:
|
|
# MCP23017 GPIO outputs — hub1
|
|
- platform: gpio
|
|
id: hub1_out0_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 0, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out1_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 1, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out2_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 2, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out3_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 3, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out4_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 4, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out5_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 5, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out6_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 6, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out7_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 7, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out8_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 8, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out9_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 9, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out10_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 10, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out11_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 11, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out12_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 12, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out13_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 13, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out14_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 14, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub1_out15_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub1_OUT, number: 15, mode: OUTPUT, inverted: False}
|
|
|
|
# MCP23017 GPIO outputs — hub2
|
|
- platform: gpio
|
|
id: hub2_out0_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 0, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out1_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 1, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out2_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 2, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out3_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 3, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out4_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 4, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out5_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 5, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out6_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 6, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out7_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 7, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out8_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 8, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out9_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 9, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out10_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 10, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out11_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 11, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out12_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 12, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out13_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 13, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out14_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 14, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub2_out15_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub2_OUT, number: 15, mode: OUTPUT, inverted: False}
|
|
|
|
# MCP23017 GPIO outputs — hub3
|
|
- platform: gpio
|
|
id: hub3_out0_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 0, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out1_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 1, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out2_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 2, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out3_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 3, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out4_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 4, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out5_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 5, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out6_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 6, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out7_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 7, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out8_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 8, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out9_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 9, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out10_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 10, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out11_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 11, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out12_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 12, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out13_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 13, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out14_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 14, mode: OUTPUT, inverted: False}
|
|
- platform: gpio
|
|
id: hub3_out15_gpio
|
|
pin: {mcp23xxx: mcp23xxx_hub3_OUT, number: 15, mode: OUTPUT, inverted: False}
|
|
|
|
|
|
light:
|
|
# hub1 outputs
|
|
- platform: binary
|
|
name: "hub1_out0"
|
|
id: hub1_out0
|
|
output: hub1_out0_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out1"
|
|
id: hub1_out1
|
|
output: hub1_out1_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out2"
|
|
id: hub1_out2
|
|
output: hub1_out2_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out3"
|
|
id: hub1_out3
|
|
output: hub1_out3_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out4" # Fan: SPA/Łazienka
|
|
id: hub1_out4
|
|
output: hub1_out4_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out5"
|
|
id: hub1_out5
|
|
output: hub1_out5_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out6"
|
|
id: hub1_out6
|
|
output: hub1_out6_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out7"
|
|
id: hub1_out7
|
|
output: hub1_out7_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out8"
|
|
id: hub1_out8
|
|
output: hub1_out8_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out9"
|
|
id: hub1_out9
|
|
output: hub1_out9_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out10"
|
|
id: hub1_out10
|
|
output: hub1_out10_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out11"
|
|
id: hub1_out11
|
|
output: hub1_out11_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out12"
|
|
id: hub1_out12
|
|
output: hub1_out12_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out13"
|
|
id: hub1_out13
|
|
output: hub1_out13_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out14"
|
|
id: hub1_out14
|
|
output: hub1_out14_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub1_out15"
|
|
id: hub1_out15
|
|
output: hub1_out15_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
|
|
# hub2 outputs
|
|
- platform: binary
|
|
name: "hub2_out0"
|
|
id: hub2_out0
|
|
output: hub2_out0_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out1"
|
|
id: hub2_out1
|
|
output: hub2_out1_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out2"
|
|
id: hub2_out2
|
|
output: hub2_out2_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out3"
|
|
id: hub2_out3
|
|
output: hub2_out3_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out4"
|
|
id: hub2_out4
|
|
output: hub2_out4_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out5" # Fan: Małe WC
|
|
id: hub2_out5
|
|
output: hub2_out5_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out6"
|
|
id: hub2_out6
|
|
output: hub2_out6_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out7"
|
|
id: hub2_out7
|
|
output: hub2_out7_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out8" # Fan: Biała Łazienka
|
|
id: hub2_out8
|
|
output: hub2_out8_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out9"
|
|
id: hub2_out9
|
|
output: hub2_out9_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out10"
|
|
id: hub2_out10
|
|
output: hub2_out10_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out11"
|
|
id: hub2_out11
|
|
output: hub2_out11_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out12"
|
|
id: hub2_out12
|
|
output: hub2_out12_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out13"
|
|
id: hub2_out13
|
|
output: hub2_out13_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out14"
|
|
id: hub2_out14
|
|
output: hub2_out14_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub2_out15"
|
|
id: hub2_out15
|
|
output: hub2_out15_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
|
|
# hub3 outputs
|
|
- platform: binary
|
|
name: "hub3_out0"
|
|
id: hub3_out0
|
|
output: hub3_out0_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out1"
|
|
id: hub3_out1
|
|
output: hub3_out1_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out2" # Fan: Biuro/Serwer
|
|
id: hub3_out2
|
|
output: hub3_out2_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out3"
|
|
id: hub3_out3
|
|
output: hub3_out3_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out4"
|
|
id: hub3_out4
|
|
output: hub3_out4_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out5"
|
|
id: hub3_out5
|
|
output: hub3_out5_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out6"
|
|
id: hub3_out6
|
|
output: hub3_out6_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out7"
|
|
id: hub3_out7
|
|
output: hub3_out7_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out8"
|
|
id: hub3_out8
|
|
output: hub3_out8_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out9"
|
|
id: hub3_out9
|
|
output: hub3_out9_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out10"
|
|
id: hub3_out10
|
|
output: hub3_out10_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out11"
|
|
id: hub3_out11
|
|
output: hub3_out11_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out12"
|
|
id: hub3_out12
|
|
output: hub3_out12_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out13"
|
|
id: hub3_out13
|
|
output: hub3_out13_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out14"
|
|
id: hub3_out14
|
|
output: hub3_out14_gpio
|
|
restore_mode: ALWAYS_OFF
|
|
- platform: binary
|
|
name: "hub3_out15"
|
|
id: hub3_out15
|
|
output: hub3_out15_gpio
|
|
restore_mode: ALWAYS_OFF
|