esphome: name: kc-868-a64 platform: ESP32 board: esp32dev # Enable logging logger: # Enable Home Assistant API api: encryption: key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ota: platform: esphome password: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # I2C definitions i2c: - id: bus_a sda: 5 scl: 16 scan: true frequency: 400kHz - id: bus_b sda: 15 scl: 4 scan: true frequency: 400kHz # Ethernet definitions ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO17_OUT phy_addr: 0 # Manual IP manual_ip: static_ip: xxx.xxx.xxx.xxx gateway: xxx.xxx.xxx.xxx subnet: xxx.xxx.xxx.xxx # I2C configuration entries pcf8574: - id: 'pcf8574_hub_out_1' # for output channel 1-16 i2c_id: bus_a address: 0x24 pcf8575: true - id: 'pcf8574_hub_out_2' # for output channel 17-32 i2c_id: bus_a address: 0x25 pcf8575: true - id: 'pcf8574_hub_out_3' # for output channel 33-48 i2c_id: bus_a address: 0x21 pcf8575: true - id: 'pcf8574_hub_out_4' # for output channel 49-64 i2c_id: bus_a address: 0x22 pcf8575: true - id: 'pcf8574_hub_in_1' # for kc-868-a64-input channel 1-16 i2c_id: bus_b address: 0x24 pcf8575: true - id: 'pcf8574_hub_in_2' # for kc-868-a64-input channel 17-32 i2c_id: bus_b address: 0x25 pcf8575: true - id: 'pcf8574_hub_in_3' # for kc-868-a64-input channel 33-48 i2c_id: bus_b address: 0x21 pcf8575: true - id: 'pcf8574_hub_in_4' # for kc-868-a64-input channel 49-64 i2c_id: bus_b address: 0x22 pcf8575: true # Individual output configuration switch: - platform: gpio name: "xxxx" id: output_1 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_1 pin: pcf8574: pcf8574_hub_out_1 number: 0 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_2 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_2 pin: pcf8574: pcf8574_hub_out_1 number: 1 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_3 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_3 pin: pcf8574: pcf8574_hub_out_1 number: 2 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_4 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_4 pin: pcf8574: pcf8574_hub_out_1 number: 3 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_5 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_5 pin: pcf8574: pcf8574_hub_out_1 number: 4 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_6 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_6 pin: pcf8574: pcf8574_hub_out_1 number: 5 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_7 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_7 pin: pcf8574: pcf8574_hub_out_1 number: 6 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_8 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_8 pin: pcf8574: pcf8574_hub_out_1 number: 7 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_9 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_9 pin: pcf8574: pcf8574_hub_out_1 number: 8 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_10 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_10 pin: pcf8574: pcf8574_hub_out_1 number: 9 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_11 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_11 pin: pcf8574: pcf8574_hub_out_1 number: 10 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_12 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_12 pin: pcf8574: pcf8574_hub_out_1 number: 11 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_13 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_13 pin: pcf8574: pcf8574_hub_out_1 number: 12 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_14 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_14 pin: pcf8574: pcf8574_hub_out_1 number: 13 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_15 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_15 pin: pcf8574: pcf8574_hub_out_1 number: 14 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_16 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_16 pin: pcf8574: pcf8574_hub_out_1 number: 15 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_17 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_17 pin: pcf8574: pcf8574_hub_out_2 number: 0 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_18 icon: mdi:fan on_turn_on: - delay: 100ms - switch.turn_off: output_18 pin: pcf8574: pcf8574_hub_out_2 number: 1 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_19 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_19 pin: pcf8574: pcf8574_hub_out_2 number: 2 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_20 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_20 pin: pcf8574: pcf8574_hub_out_2 number: 3 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_21 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_21 pin: pcf8574: pcf8574_hub_out_2 number: 4 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_22 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_22 pin: pcf8574: pcf8574_hub_out_2 number: 5 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_23 icon: mdi:lightbulb on_turn_on: then: - delay: 100ms - switch.turn_off: output_23 pin: pcf8574: pcf8574_hub_out_2 number: 6 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_24 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_24 pin: pcf8574: pcf8574_hub_out_2 number: 7 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_25 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_25 pin: pcf8574: pcf8574_hub_out_2 number: 8 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_26 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_26 pin: pcf8574: pcf8574_hub_out_2 number: 9 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_27 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_27 pin: pcf8574: pcf8574_hub_out_2 number: 10 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_28 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_28 pin: pcf8574: pcf8574_hub_out_2 number: 11 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_29 icon: mdi:window-shutter interlock: [output_30] pin: pcf8574: pcf8574_hub_out_2 number: 12 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_30 icon: mdi:window-shutter interlock: [output_29] pin: pcf8574: pcf8574_hub_out_2 number: 13 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_31 icon: mdi:window-shutter interlock: [output_32] pin: pcf8574: pcf8574_hub_out_2 number: 14 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_32 icon: mdi:window-shutter interlock: [output_31] pin: pcf8574: pcf8574_hub_out_2 number: 15 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_33 icon: mdi:window-shutter interlock: [output_34] pin: pcf8574: pcf8574_hub_out_3 number: 0 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_34 icon: mdi:window-shutter interlock: [output_33] pin: pcf8574: pcf8574_hub_out_3 number: 1 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_35 icon: mdi:window-shutter interlock: [output_36] pin: pcf8574: pcf8574_hub_out_3 number: 2 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_36 icon: mdi:window-shutter interlock: [output_35] pin: pcf8574: pcf8574_hub_out_3 number: 3 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_37 icon: mdi:window-shutter interlock: [output_38] pin: pcf8574: pcf8574_hub_out_3 number: 4 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_38 icon: mdi:window-shutter interlock: [output_37] pin: pcf8574: pcf8574_hub_out_3 number: 5 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_39 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_39 pin: pcf8574: pcf8574_hub_out_3 number: 6 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_40 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_40 pin: pcf8574: pcf8574_hub_out_3 number: 7 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_41 icon: mdi:garage on_turn_on: - delay: 100ms - switch.turn_off: output_41 pin: pcf8574: pcf8574_hub_out_3 number: 8 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_42 icon: mdi:garage on_turn_on: - delay: 100ms - switch.turn_off: output_42 pin: pcf8574: pcf8574_hub_out_3 number: 9 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_43 icon: mdi:fan on_turn_on: - delay: 100ms - switch.turn_off: output_43 pin: pcf8574: pcf8574_hub_out_3 number: 10 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_44 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_44 pin: pcf8574: pcf8574_hub_out_3 number: 11 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_45 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_45 pin: pcf8574: pcf8574_hub_out_3 number: 12 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_46 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_46 pin: pcf8574: pcf8574_hub_out_3 number: 13 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_47 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_47 pin: pcf8574: pcf8574_hub_out_3 number: 14 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_48 icon: mdi:lightbulb on_turn_on: - delay: 100ms - switch.turn_off: output_48 pin: pcf8574: pcf8574_hub_out_3 number: 15 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_49 icon: mdi:roller-shade interlock: [output_50] pin: pcf8574: pcf8574_hub_out_4 number: 0 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_50 icon: mdi:roller-shade interlock: [output_49] pin: pcf8574: pcf8574_hub_out_4 number: 1 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_51 icon: mdi:roller-shade interlock: [output_52] pin: pcf8574: pcf8574_hub_out_4 number: 2 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_52 icon: mdi:roller-shade interlock: [output_51] pin: pcf8574: pcf8574_hub_out_4 number: 3 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_53 icon: mdi:roller-shade interlock: [output_54] pin: pcf8574: pcf8574_hub_out_4 number: 4 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_54 icon: mdi:roller-shade interlock: [output_53] pin: pcf8574: pcf8574_hub_out_4 number: 5 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_55 icon: mdi:roller-shade interlock: [output_56] pin: pcf8574: pcf8574_hub_out_4 number: 6 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: output_56 icon: mdi:roller-shade interlock: [output_55] pin: pcf8574: pcf8574_hub_out_4 number: 7 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" pin: pcf8574: pcf8574_hub_out_4 number: 8 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" pin: pcf8574: pcf8574_hub_out_4 number: 9 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" pin: pcf8574: pcf8574_hub_out_4 number: 10 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" pin: pcf8574: pcf8574_hub_out_4 number: 11 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" pin: pcf8574: pcf8574_hub_out_4 number: 12 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" pin: pcf8574: pcf8574_hub_out_4 number: 13 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" pin: pcf8574: pcf8574_hub_out_4 number: 14 mode: OUTPUT inverted: true - platform: gpio name: "xxxx" id: light64 pin: pcf8574: pcf8574_hub_out_4 number: 15 mode: OUTPUT inverted: true # Individual inputs binary_sensor: - platform: gpio name: "xxxx" id: "input_1" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_16 pin: pcf8574: pcf8574_hub_in_1 number: 0 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_2" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_1 pin: pcf8574: pcf8574_hub_in_1 number: 1 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_3" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_19 pin: pcf8574: pcf8574_hub_in_1 number: 2 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_4" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_2 pin: pcf8574: pcf8574_hub_in_1 number: 3 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_5" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_4 pin: pcf8574: pcf8574_hub_in_1 number: 4 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_6" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_45 pin: pcf8574: pcf8574_hub_in_1 number: 5 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_7" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_19 pin: pcf8574: pcf8574_hub_in_1 number: 6 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_8" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: pin: pcf8574: pcf8574_hub_in_1 number: 7 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_9" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_20 pin: pcf8574: pcf8574_hub_in_1 number: 8 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_10" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_22 pin: pcf8574: pcf8574_hub_in_1 number: 9 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_11" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_22 pin: pcf8574: pcf8574_hub_in_1 number: 10 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_12" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_23 pin: pcf8574: pcf8574_hub_in_1 number: 11 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_13" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_20 pin: pcf8574: pcf8574_hub_in_1 number: 12 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_14" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_2 pin: pcf8574: pcf8574_hub_in_1 number: 13 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_15" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_22 pin: pcf8574: pcf8574_hub_in_1 number: 14 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_16" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_1 pin: pcf8574: pcf8574_hub_in_1 number: 15 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_17" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_2 pin: pcf8574: pcf8574_hub_in_2 number: 0 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_18" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_14 pin: pcf8574: pcf8574_hub_in_2 number: 1 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_19" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_1 pin: pcf8574: pcf8574_hub_in_2 number: 2 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_20" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_15 - switch.turn_on: output_17 pin: pcf8574: pcf8574_hub_in_2 number: 3 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_21" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_9 pin: pcf8574: pcf8574_hub_in_2 number: 4 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_22" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_8 pin: pcf8574: pcf8574_hub_in_2 number: 5 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_23" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_6 pin: pcf8574: pcf8574_hub_in_2 number: 6 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_24" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_8 pin: pcf8574: pcf8574_hub_in_2 number: 7 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_25" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_9 pin: pcf8574: pcf8574_hub_in_2 number: 8 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_26" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_7 pin: pcf8574: pcf8574_hub_in_2 number: 9 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_27" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_6 pin: pcf8574: pcf8574_hub_in_2 number: 10 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_28" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_10 - switch.turn_on: output_11 pin: pcf8574: pcf8574_hub_in_2 number: 11 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_29" filters: - delayed_on_off: time_on: 20ms time_off: 200ms on_press: then: - switch.turn_on: output_3 pin: pcf8574: pcf8574_hub_in_2 number: 12 mode: INPUT inverted: true - platform: gpio id: "input_30" filters: - delayed_on_off: time_on: 10ms time_off: 100ms name: "xxxx" on_press: then: - switch.turn_on: output_12 pin: pcf8574: pcf8574_hub_in_2 number: 13 mode: INPUT inverted: true - platform: gpio id: "input_31" filters: - delayed_on_off: time_on: 10ms time_off: 100ms name: "xxxx" on_press: then: - switch.turn_on: output_44 pin: pcf8574: pcf8574_hub_in_2 number: 14 mode: INPUT inverted: true - platform: gpio id: "input_32" filters: - delayed_on_off: time_on: 10ms time_off: 100ms name: "xxxx" on_press: then: - switch.turn_on: output_10 - switch.turn_on: output_11 pin: pcf8574: pcf8574_hub_in_2 number: 15 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_33" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_6 pin: pcf8574: pcf8574_hub_in_3 number: 0 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_34" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_25 pin: pcf8574: pcf8574_hub_in_3 number: 1 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_35" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_13 pin: pcf8574: pcf8574_hub_in_3 number: 2 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_36" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_25 pin: pcf8574: pcf8574_hub_in_3 number: 3 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_37" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_5 pin: pcf8574: pcf8574_hub_in_3 number: 4 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_38" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_46 pin: pcf8574: pcf8574_hub_in_3 number: 5 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_39" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_9 pin: pcf8574: pcf8574_hub_in_3 number: 6 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_40" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_22 pin: pcf8574: pcf8574_hub_in_3 number: 7 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_41" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_27 pin: pcf8574: pcf8574_hub_in_3 number: 8 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_42" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_33 on_release: then: - switch.turn_off: output_33 pin: pcf8574: pcf8574_hub_in_3 number: 9 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_43" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_25 pin: pcf8574: pcf8574_hub_in_3 number: 10 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_44" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_34 on_release: then: - switch.turn_off: output_34 pin: pcf8574: pcf8574_hub_in_3 number: 11 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_45" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_41 pin: pcf8574: pcf8574_hub_in_3 number: 12 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_46" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_36 - switch.turn_on: output_38 on_release: then: - switch.turn_off: output_36 - switch.turn_off: output_38 pin: pcf8574: pcf8574_hub_in_3 number: 13 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_47" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_42 pin: pcf8574: pcf8574_hub_in_3 number: 14 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_48" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_35 - switch.turn_on: output_37 on_release: then: - switch.turn_off: output_35 - switch.turn_off: output_37 pin: pcf8574: pcf8574_hub_in_3 number: 15 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_49" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_49 - switch.turn_on: output_51 - switch.turn_on: output_53 on_release: then: - switch.turn_off: output_49 - switch.turn_off: output_51 - switch.turn_off: output_53 pin: pcf8574: pcf8574_hub_in_4 number: 0 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_50" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_46 pin: pcf8574: pcf8574_hub_in_4 number: 1 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_51" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_50 - switch.turn_on: output_52 - switch.turn_on: output_54 on_release: then: - switch.turn_off: output_50 - switch.turn_off: output_52 - switch.turn_off: output_54 pin: pcf8574: pcf8574_hub_in_4 number: 2 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_52" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_22 pin: pcf8574: pcf8574_hub_in_4 number: 3 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_53" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_55 on_release: then: - switch.turn_off: output_55 pin: pcf8574: pcf8574_hub_in_4 number: 4 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_54" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_26 pin: pcf8574: pcf8574_hub_in_4 number: 5 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_55" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_56 on_release: then: - switch.turn_off: output_56 pin: pcf8574: pcf8574_hub_in_4 number: 6 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_56" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_25 pin: pcf8574: pcf8574_hub_in_4 number: 7 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_57" filters: - delayed_on_off: time_on: 10ms time_off: 100ms pin: pcf8574: pcf8574_hub_in_4 number: 8 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_58" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_26 pin: pcf8574: pcf8574_hub_in_4 number: 9 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_59" filters: - delayed_on_off: time_on: 10ms time_off: 100ms pin: pcf8574: pcf8574_hub_in_4 number: 10 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_60" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_25 pin: pcf8574: pcf8574_hub_in_4 number: 11 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_61" filters: - delayed_on_off: time_on: 10ms time_off: 100ms pin: pcf8574: pcf8574_hub_in_4 number: 12 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_62" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_6 pin: pcf8574: pcf8574_hub_in_4 number: 13 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_63" filters: - delayed_on_off: time_on: 10ms time_off: 100ms pin: pcf8574: pcf8574_hub_in_4 number: 14 mode: INPUT inverted: true - platform: gpio name: "xxxx" id: "input_64" filters: - delayed_on_off: time_on: 10ms time_off: 100ms on_press: then: - switch.turn_on: output_9 pin: pcf8574: pcf8574_hub_in_4 number: 15 mode: INPUT inverted: true