<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Smart Home Automation Forum - KC868-A128]]></title>
		<link>https://www.kincony.com/forum/</link>
		<description><![CDATA[Smart Home Automation Forum - https://www.kincony.com/forum]]></description>
		<pubDate>Mon, 27 Apr 2026 21:44:03 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[No Ethernet, No WiFi, No serial]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=8831</link>
			<pubDate>Sat, 20 Dec 2025 18:08:17 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=8213">Toper</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=8831</guid>
			<description><![CDATA[<span style="font-size: large;" class="mycode_size"><span style="font-family: Arial;" class="mycode_font">Hi,</span></span><br />
<span style="font-size: large;" class="mycode_size"><span style="font-family: Arial;" class="mycode_font">After receiving the KC868-A128, I flashed it with <span style="font-style: italic;" class="mycode_i">KC868-A128-HA-input-toggle-output.yaml</span> and everything was working. I powered it off and put it aside because I didn’t have time to install it at the target location.<br />
Today I wanted to continue, but only the red LED next to the power supply is on. The LEDs at the Ethernet connector are not flash, and there are no lights on the switch either. I connected a USB cable, but no serial port is detected on either Windows or macOS. What should I do?</span></span><br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-family: Arial;" class="mycode_font">regards,</span></span><br />
<span style="font-size: large;" class="mycode_size"><span style="font-family: Arial;" class="mycode_font">Toper</span></span>]]></description>
			<content:encoded><![CDATA[<span style="font-size: large;" class="mycode_size"><span style="font-family: Arial;" class="mycode_font">Hi,</span></span><br />
<span style="font-size: large;" class="mycode_size"><span style="font-family: Arial;" class="mycode_font">After receiving the KC868-A128, I flashed it with <span style="font-style: italic;" class="mycode_i">KC868-A128-HA-input-toggle-output.yaml</span> and everything was working. I powered it off and put it aside because I didn’t have time to install it at the target location.<br />
Today I wanted to continue, but only the red LED next to the power supply is on. The LEDs at the Ethernet connector are not flash, and there are no lights on the switch either. I connected a USB cable, but no serial port is detected on either Windows or macOS. What should I do?</span></span><br />
<br />
<span style="font-size: large;" class="mycode_size"><span style="font-family: Arial;" class="mycode_font">regards,</span></span><br />
<span style="font-size: large;" class="mycode_size"><span style="font-family: Arial;" class="mycode_font">Toper</span></span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[KC868-A128 INPUT toggle OUTPUT ESPhome yaml]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=8168</link>
			<pubDate>Mon, 09 Jun 2025 16:52:24 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=1">admin</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=8168</guid>
			<description><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7739" target="_blank" title="">A128-input-toggle-output.jpg</a> (Size: 404.96 KB / Downloads: 375)
<!-- end: postbit_attachments_attachment --><br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7740" target="_blank" title="">A128-esphome-automation.png</a> (Size: 135.48 KB / Downloads: 392)
<!-- end: postbit_attachments_attachment --><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>esphome:<br />
  name: a128<br />
  friendly_name: a128<br />
<br />
esp32:<br />
  board: esp32dev<br />
  framework:<br />
    type: arduino<br />
<br />
# Enable logging<br />
logger:<br />
<br />
# Enable Home Assistant API<br />
api:<br />
<br />
<br />
 # Example configuration entry<br />
i2c:<br />
 &nbsp;&nbsp;- id: bus_a<br />
   &nbsp;&nbsp;sda: 5<br />
   &nbsp;&nbsp;scl: 16<br />
   &nbsp;&nbsp;scan: true<br />
   &nbsp;&nbsp;frequency: 400kHz<br />
 &nbsp;&nbsp;- id: bus_b<br />
   &nbsp;&nbsp;sda: 15<br />
   &nbsp;&nbsp;scl: 4<br />
   &nbsp;&nbsp;scan: true<br />
   &nbsp;&nbsp;frequency: 400kHz<br />
   &nbsp;&nbsp;<br />
<br />
# Example configuration entry<br />
ethernet:<br />
 &nbsp;&nbsp;type: LAN8720<br />
 &nbsp;&nbsp;mdc_pin: GPIO23<br />
 &nbsp;&nbsp;mdio_pin: GPIO18<br />
 &nbsp;&nbsp;clk_mode: GPIO17_OUT<br />
 &nbsp;&nbsp;phy_addr: 0<br />
<br />
  # Optional manual IP<br />
  # manual_ip:<br />
  # &nbsp;&nbsp;static_ip: 192.168.1.198<br />
  # &nbsp;&nbsp;gateway: 192.168.1.1<br />
  # &nbsp;&nbsp;subnet: 255.255.255.0  <br />
<br />
<br />
<br />
# Example configuration entry<br />
pcf8574:<br />
  - id: 'pcf8574_hub_out_1'  # for output channel 1-16<br />
    i2c_id: bus_a<br />
    address: 0x24<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_out_2'  # for output channel 17-32<br />
    i2c_id: bus_a<br />
    address: 0x25<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_out_3'  # for output channel 33-48<br />
    i2c_id: bus_a<br />
    address: 0x21<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_out_4'  # for output channel 49-64<br />
    i2c_id: bus_a<br />
    address: 0x22<br />
    pcf8575: true<br />
    <br />
  - id: 'pcf8574_hub_out_5'  # for output channel 65-80<br />
    i2c_id: bus_a<br />
    address: 0x26<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_out_6'  # for output channel 81-96<br />
    i2c_id: bus_a<br />
    address: 0x27<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_out_7'  # for output channel 97-112<br />
    i2c_id: bus_a<br />
    address: 0x20<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_out_8'  # for output channel 113-128<br />
    i2c_id: bus_a<br />
    address: 0x23<br />
    pcf8575: true<br />
<br />
<br />
<br />
  - id: 'pcf8574_hub_in_1'  # for a128-input channel 1-16<br />
    i2c_id: bus_b<br />
    address: 0x24<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_in_2'  # for a128-input channel 17-32<br />
    i2c_id: bus_b<br />
    address: 0x25<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_in_3'  # for a128-input channel 33-48<br />
    i2c_id: bus_b<br />
    address: 0x21<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_in_4'  # for a128-input channel 49-64<br />
    i2c_id: bus_b<br />
    address: 0x22<br />
    pcf8575: true &nbsp;&nbsp;<br />
<br />
  - id: 'pcf8574_hub_in_5'  # for a128-input channel 65-80<br />
    i2c_id: bus_b<br />
    address: 0x26<br />
    pcf8575: true &nbsp;&nbsp;<br />
<br />
  - id: 'pcf8574_hub_in_6'  # for a128-input channel 81-96<br />
    i2c_id: bus_b<br />
    address: 0x27<br />
    pcf8575: true &nbsp;&nbsp;<br />
<br />
  - id: 'pcf8574_hub_in_7'  # for a128-input channel 97-112<br />
    i2c_id: bus_b<br />
    address: 0x20<br />
    pcf8575: true &nbsp;&nbsp;<br />
<br />
  - id: 'pcf8574_hub_in_8'  # for a128-input channel 113-128<br />
    i2c_id: bus_b<br />
    address: 0x23<br />
    pcf8575: true &nbsp;&nbsp;<br />
<br />
    <br />
# Individual outputs<br />
switch:<br />
  - platform: gpio<br />
    name: "a128-light1"<br />
    id: light1<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light2"<br />
    id: light2<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light3"<br />
    id: light3<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light4"<br />
    id: light4<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light5"<br />
    id: light5<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light6"<br />
    id: light6<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light7"<br />
    id: light7<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light8"<br />
    id: light8<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light9"<br />
    id: light9<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light10"<br />
    id: light10<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light11"<br />
    id: light11<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light12"<br />
    id: light12<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light13"<br />
    id: light13<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light14"<br />
    id: light14<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light15"<br />
    id: light15<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light16"<br />
    id: light16<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light17"<br />
    id: light17<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light18"<br />
    id: light18<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light19"<br />
    id: light19<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light20"<br />
    id: light20<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light21"<br />
    id: light21<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light22"<br />
    id: light22<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light23"<br />
    id: light23<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light24"<br />
    id: light24<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light25"<br />
    id: light25<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light26"<br />
    id: light26<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light27"<br />
    id: light27<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light28"<br />
    id: light28<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light29"<br />
    id: light29<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light30"<br />
    id: light30<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light31"<br />
    id: light31<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light32"<br />
    id: light32<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light33"<br />
    id: light33<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light34"<br />
    id: light34<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light35"<br />
    id: light35<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light36"<br />
    id: light36<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light37"<br />
    id: light37<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light38"<br />
    id: light38<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light39"<br />
    id: light39<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light40"<br />
    id: light40<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light41"<br />
    id: light41<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light42"<br />
    id: light42<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light43"<br />
    id: light43<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light44"<br />
    id: light44<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light45"<br />
    id: light45<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light46"<br />
    id: light46<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light47"<br />
    id: light47<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light48"<br />
    id: light48<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light49"<br />
    id: light49<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light50"<br />
    id: light50<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light51"<br />
    id: light51<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light52"<br />
    id: light52<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light53"<br />
    id: light53<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light54"<br />
    id: light54<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light55"<br />
    id: light55<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light56"<br />
    id: light56<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light57"<br />
    id: light57<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light58"<br />
    id: light58<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light59"<br />
    id: light59<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light60"<br />
    id: light60<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light61"<br />
    id: light61<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light62"<br />
    id: light62<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light63"<br />
    id: light63<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light64"<br />
    id: light64<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light65"<br />
    id: light65<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light66"<br />
    id: light66<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light67"<br />
    id: light67<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light68"<br />
    id: light68<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light69"<br />
    id: light69<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light70"<br />
    id: light70<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light71"<br />
    id: light71<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light72"<br />
    id: light72<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light73"<br />
    id: light73<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light74"<br />
    id: light74<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light75"<br />
    id: light75<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light76"<br />
    id: light76<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light77"<br />
    id: light77<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light78"<br />
    id: light78<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light79"<br />
    id: light79<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light80"<br />
    id: light80<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light81"<br />
    id: light81<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light82"<br />
    id: light82<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light83"<br />
    id: light83<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light84"<br />
    id: light84<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light85"<br />
    id: light85<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light86"<br />
    id: light86<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light87"<br />
    id: light87<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light88"<br />
    id: light88<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light89"<br />
    id: light89<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light90"<br />
    id: light90<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light91"<br />
    id: light91<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light92"<br />
    id: light92<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light93"<br />
    id: light93<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light94"<br />
    id: light94<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light95"<br />
    id: light95<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light96"<br />
    id: light96<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light97"<br />
    id: light97<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light98"<br />
    id: light98<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light99"<br />
    id: light99<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light100"<br />
    id: light100<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light101"<br />
    id: light101<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light102"<br />
    id: light102<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light103"<br />
    id: light103<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light104"<br />
    id: light104<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light105"<br />
    id: light105<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light106"<br />
    id: light106<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light107"<br />
    id: light107<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light108"<br />
    id: light108<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light109"<br />
    id: light109<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light110"<br />
    id: light110<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light111"<br />
    id: light111<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light112"<br />
    id: light112<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light113"<br />
    id: light113<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light114"<br />
    id: light114<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light115"<br />
    id: light115<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light116"<br />
    id: light116<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light117"<br />
    id: light117<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light118"<br />
    id: light118<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light119"<br />
    id: light119<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light120"<br />
    id: light120<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light121"<br />
    id: light121<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light122"<br />
    id: light122<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light123"<br />
    id: light123<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light124"<br />
    id: light124<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light125"<br />
    id: light125<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light126"<br />
    id: light126<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light127"<br />
    id: light127<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light128"<br />
    id: light128<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
<br />
      <br />
# Individual inputs<br />
binary_sensor:<br />
  - platform: gpio<br />
    name: "a128-input1"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light1<br />
<br />
  - platform: gpio<br />
    name: "a128-input2"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light2<br />
<br />
  - platform: gpio<br />
    name: "a128-input3"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light3<br />
<br />
  - platform: gpio<br />
    name: "a128-input4"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light4<br />
<br />
  - platform: gpio<br />
    name: "a128-input5"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light5<br />
<br />
  - platform: gpio<br />
    name: "a128-input6"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light6<br />
<br />
  - platform: gpio<br />
    name: "a128-input7"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light7<br />
<br />
  - platform: gpio<br />
    name: "a128-input8"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light8<br />
<br />
  - platform: gpio<br />
    name: "a128-input9"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light9<br />
<br />
  - platform: gpio<br />
    name: "a128-input10"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light10<br />
<br />
  - platform: gpio<br />
    name: "a128-input11"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light11<br />
<br />
  - platform: gpio<br />
    name: "a128-input12"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light12<br />
<br />
  - platform: gpio<br />
    name: "a128-input13"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light13<br />
<br />
  - platform: gpio<br />
    name: "a128-input14"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light14<br />
<br />
  - platform: gpio<br />
    name: "a128-input15"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light15<br />
<br />
  - platform: gpio<br />
    name: "a128-input16"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light16<br />
<br />
  - platform: gpio<br />
    name: "a128-input17"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light17<br />
<br />
  - platform: gpio<br />
    name: "a128-input18"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light18<br />
<br />
  - platform: gpio<br />
    name: "a128-input19"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light19<br />
<br />
  - platform: gpio<br />
    name: "a128-input20"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light20<br />
<br />
  - platform: gpio<br />
    name: "a128-input21"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light21<br />
<br />
  - platform: gpio<br />
    name: "a128-input22"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light22<br />
<br />
  - platform: gpio<br />
    name: "a128-input23"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light23<br />
<br />
  - platform: gpio<br />
    name: "a128-input24"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light24<br />
<br />
  - platform: gpio<br />
    name: "a128-input25"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light25<br />
<br />
  - platform: gpio<br />
    name: "a128-input26"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light26<br />
<br />
  - platform: gpio<br />
    name: "a128-input27"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light27<br />
<br />
  - platform: gpio<br />
    name: "a128-input28"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light28<br />
<br />
  - platform: gpio<br />
    name: "a128-input29"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light29<br />
<br />
  - platform: gpio<br />
    name: "a128-input30"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light30<br />
<br />
  - platform: gpio<br />
    name: "a128-input31"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light31<br />
<br />
  - platform: gpio<br />
    name: "a128-input32"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light32<br />
<br />
  - platform: gpio<br />
    name: "a128-input33"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light33<br />
<br />
  - platform: gpio<br />
    name: "a128-input34"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light34<br />
<br />
  - platform: gpio<br />
    name: "a128-input35"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light35<br />
<br />
  - platform: gpio<br />
    name: "a128-input36"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light36<br />
<br />
  - platform: gpio<br />
    name: "a128-input37"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light37<br />
<br />
  - platform: gpio<br />
    name: "a128-input38"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light38<br />
<br />
  - platform: gpio<br />
    name: "a128-input39"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light39<br />
<br />
  - platform: gpio<br />
    name: "a128-input40"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light40<br />
<br />
  - platform: gpio<br />
    name: "a128-input41"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light41<br />
<br />
  - platform: gpio<br />
    name: "a128-input42"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light42<br />
<br />
  - platform: gpio<br />
    name: "a128-input43"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light43<br />
<br />
  - platform: gpio<br />
    name: "a128-input44"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light44<br />
<br />
  - platform: gpio<br />
    name: "a128-input45"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light45<br />
<br />
  - platform: gpio<br />
    name: "a128-input46"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light46<br />
<br />
  - platform: gpio<br />
    name: "a128-input47"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light47<br />
<br />
  - platform: gpio<br />
    name: "a128-input48"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light48<br />
<br />
  - platform: gpio<br />
    name: "a128-input49"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light49<br />
<br />
  - platform: gpio<br />
    name: "a128-input50"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light50<br />
<br />
  - platform: gpio<br />
    name: "a128-input51"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light51<br />
<br />
  - platform: gpio<br />
    name: "a128-input52"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light52<br />
<br />
  - platform: gpio<br />
    name: "a128-input53"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light53<br />
<br />
  - platform: gpio<br />
    name: "a128-input54"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light54<br />
<br />
  - platform: gpio<br />
    name: "a128-input55"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light55<br />
<br />
  - platform: gpio<br />
    name: "a128-input56"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light56<br />
<br />
  - platform: gpio<br />
    name: "a128-input57"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light57<br />
<br />
  - platform: gpio<br />
    name: "a128-input58"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light58<br />
<br />
  - platform: gpio<br />
    name: "a128-input59"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light59<br />
<br />
  - platform: gpio<br />
    name: "a128-input60"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light60<br />
<br />
  - platform: gpio<br />
    name: "a128-input61"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light61<br />
<br />
  - platform: gpio<br />
    name: "a128-input62"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light62<br />
<br />
  - platform: gpio<br />
    name: "a128-input63"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light63<br />
<br />
  - platform: gpio<br />
    name: "a128-input64"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light64<br />
<br />
  - platform: gpio<br />
    name: "a128-input65"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light65<br />
<br />
  - platform: gpio<br />
    name: "a128-input66"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light66<br />
<br />
  - platform: gpio<br />
    name: "a128-input67"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light67<br />
<br />
  - platform: gpio<br />
    name: "a128-input68"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light68<br />
<br />
  - platform: gpio<br />
    name: "a128-input69"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light69<br />
<br />
  - platform: gpio<br />
    name: "a128-input70"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light70<br />
<br />
  - platform: gpio<br />
    name: "a128-input71"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light71<br />
<br />
  - platform: gpio<br />
    name: "a128-input72"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light72<br />
<br />
  - platform: gpio<br />
    name: "a128-input73"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light73<br />
<br />
  - platform: gpio<br />
    name: "a128-input74"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light74<br />
<br />
  - platform: gpio<br />
    name: "a128-input75"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light75<br />
<br />
  - platform: gpio<br />
    name: "a128-input76"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light76<br />
<br />
  - platform: gpio<br />
    name: "a128-input77"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light77<br />
<br />
  - platform: gpio<br />
    name: "a128-input78"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light78<br />
<br />
  - platform: gpio<br />
    name: "a128-input79"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light79<br />
<br />
  - platform: gpio<br />
    name: "a128-input80"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light80<br />
<br />
  - platform: gpio<br />
    name: "a128-input81"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light81<br />
<br />
  - platform: gpio<br />
    name: "a128-input82"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light82<br />
<br />
  - platform: gpio<br />
    name: "a128-input83"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light83<br />
<br />
  - platform: gpio<br />
    name: "a128-input84"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light84<br />
<br />
  - platform: gpio<br />
    name: "a128-input85"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light85<br />
<br />
  - platform: gpio<br />
    name: "a128-input86"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light86<br />
<br />
  - platform: gpio<br />
    name: "a128-input87"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light87<br />
<br />
  - platform: gpio<br />
    name: "a128-input88"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light88<br />
<br />
  - platform: gpio<br />
    name: "a128-input89"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light89<br />
<br />
  - platform: gpio<br />
    name: "a128-input90"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light90<br />
<br />
  - platform: gpio<br />
    name: "a128-input91"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light91<br />
<br />
  - platform: gpio<br />
    name: "a128-input92"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light92<br />
<br />
  - platform: gpio<br />
    name: "a128-input93"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light93<br />
<br />
  - platform: gpio<br />
    name: "a128-input94"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light94<br />
<br />
  - platform: gpio<br />
    name: "a128-input95"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light95<br />
<br />
  - platform: gpio<br />
    name: "a128-input96"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light96<br />
<br />
  - platform: gpio<br />
    name: "a128-input97"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light97<br />
<br />
  - platform: gpio<br />
    name: "a128-input98"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light98<br />
<br />
  - platform: gpio<br />
    name: "a128-input99"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light99<br />
<br />
  - platform: gpio<br />
    name: "a128-input100"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light100<br />
<br />
  - platform: gpio<br />
    name: "a128-input101"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light101<br />
<br />
  - platform: gpio<br />
    name: "a128-input102"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light102<br />
<br />
  - platform: gpio<br />
    name: "a128-input103"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light103<br />
<br />
  - platform: gpio<br />
    name: "a128-input104"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light104<br />
<br />
  - platform: gpio<br />
    name: "a128-input105"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light105<br />
<br />
  - platform: gpio<br />
    name: "a128-input106"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light106<br />
<br />
  - platform: gpio<br />
    name: "a128-input107"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light107<br />
<br />
  - platform: gpio<br />
    name: "a128-input108"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light108<br />
<br />
  - platform: gpio<br />
    name: "a128-input109"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light109<br />
<br />
  - platform: gpio<br />
    name: "a128-input110"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light110<br />
<br />
  - platform: gpio<br />
    name: "a128-input111"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light111<br />
<br />
  - platform: gpio<br />
    name: "a128-input112"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light112<br />
<br />
  - platform: gpio<br />
    name: "a128-input113"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light113<br />
<br />
  - platform: gpio<br />
    name: "a128-input114"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light114<br />
<br />
  - platform: gpio<br />
    name: "a128-input115"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light115<br />
<br />
  - platform: gpio<br />
    name: "a128-input116"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light116<br />
<br />
  - platform: gpio<br />
    name: "a128-input117"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light117<br />
<br />
  - platform: gpio<br />
    name: "a128-input118"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light118<br />
<br />
  - platform: gpio<br />
    name: "a128-input119"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light119<br />
<br />
  - platform: gpio<br />
    name: "a128-input120"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light120<br />
<br />
  - platform: gpio<br />
    name: "a128-input121"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light121<br />
<br />
  - platform: gpio<br />
    name: "a128-input122"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light122<br />
<br />
  - platform: gpio<br />
    name: "a128-input123"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light123<br />
<br />
  - platform: gpio<br />
    name: "a128-input124"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light124<br />
<br />
  - platform: gpio<br />
    name: "a128-input125"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light125<br />
<br />
  - platform: gpio<br />
    name: "a128-input126"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light126<br />
<br />
  - platform: gpio<br />
    name: "a128-input127"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light127<br />
<br />
  - platform: gpio<br />
    name: "a128-input128"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light128<br />
<br />
<br />
web_server:<br />
  port: 80</code></div></div>yaml file download:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7741" target="_blank" title="">KC868-A128-HA-input-toggle-output.txt</a> (Size: 50.21 KB / Downloads: 237)
<!-- end: postbit_attachments_attachment --><br />
<br />
firmware BIN file download (download at 0x0 address , directly to use): <br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7742" target="_blank" title="">a128-input-toggle-output.zip</a> (Size: 418.19 KB / Downloads: 420)
<!-- end: postbit_attachments_attachment --><br />
<br />
after download firmware, ethernet will work as DHCP mode. find the IP address from your router, then use IP address login by web browser.]]></description>
			<content:encoded><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7739" target="_blank" title="">A128-input-toggle-output.jpg</a> (Size: 404.96 KB / Downloads: 375)
<!-- end: postbit_attachments_attachment --><br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7740" target="_blank" title="">A128-esphome-automation.png</a> (Size: 135.48 KB / Downloads: 392)
<!-- end: postbit_attachments_attachment --><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>esphome:<br />
  name: a128<br />
  friendly_name: a128<br />
<br />
esp32:<br />
  board: esp32dev<br />
  framework:<br />
    type: arduino<br />
<br />
# Enable logging<br />
logger:<br />
<br />
# Enable Home Assistant API<br />
api:<br />
<br />
<br />
 # Example configuration entry<br />
i2c:<br />
 &nbsp;&nbsp;- id: bus_a<br />
   &nbsp;&nbsp;sda: 5<br />
   &nbsp;&nbsp;scl: 16<br />
   &nbsp;&nbsp;scan: true<br />
   &nbsp;&nbsp;frequency: 400kHz<br />
 &nbsp;&nbsp;- id: bus_b<br />
   &nbsp;&nbsp;sda: 15<br />
   &nbsp;&nbsp;scl: 4<br />
   &nbsp;&nbsp;scan: true<br />
   &nbsp;&nbsp;frequency: 400kHz<br />
   &nbsp;&nbsp;<br />
<br />
# Example configuration entry<br />
ethernet:<br />
 &nbsp;&nbsp;type: LAN8720<br />
 &nbsp;&nbsp;mdc_pin: GPIO23<br />
 &nbsp;&nbsp;mdio_pin: GPIO18<br />
 &nbsp;&nbsp;clk_mode: GPIO17_OUT<br />
 &nbsp;&nbsp;phy_addr: 0<br />
<br />
  # Optional manual IP<br />
  # manual_ip:<br />
  # &nbsp;&nbsp;static_ip: 192.168.1.198<br />
  # &nbsp;&nbsp;gateway: 192.168.1.1<br />
  # &nbsp;&nbsp;subnet: 255.255.255.0  <br />
<br />
<br />
<br />
# Example configuration entry<br />
pcf8574:<br />
  - id: 'pcf8574_hub_out_1'  # for output channel 1-16<br />
    i2c_id: bus_a<br />
    address: 0x24<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_out_2'  # for output channel 17-32<br />
    i2c_id: bus_a<br />
    address: 0x25<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_out_3'  # for output channel 33-48<br />
    i2c_id: bus_a<br />
    address: 0x21<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_out_4'  # for output channel 49-64<br />
    i2c_id: bus_a<br />
    address: 0x22<br />
    pcf8575: true<br />
    <br />
  - id: 'pcf8574_hub_out_5'  # for output channel 65-80<br />
    i2c_id: bus_a<br />
    address: 0x26<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_out_6'  # for output channel 81-96<br />
    i2c_id: bus_a<br />
    address: 0x27<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_out_7'  # for output channel 97-112<br />
    i2c_id: bus_a<br />
    address: 0x20<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_out_8'  # for output channel 113-128<br />
    i2c_id: bus_a<br />
    address: 0x23<br />
    pcf8575: true<br />
<br />
<br />
<br />
  - id: 'pcf8574_hub_in_1'  # for a128-input channel 1-16<br />
    i2c_id: bus_b<br />
    address: 0x24<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_in_2'  # for a128-input channel 17-32<br />
    i2c_id: bus_b<br />
    address: 0x25<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_in_3'  # for a128-input channel 33-48<br />
    i2c_id: bus_b<br />
    address: 0x21<br />
    pcf8575: true<br />
<br />
  - id: 'pcf8574_hub_in_4'  # for a128-input channel 49-64<br />
    i2c_id: bus_b<br />
    address: 0x22<br />
    pcf8575: true &nbsp;&nbsp;<br />
<br />
  - id: 'pcf8574_hub_in_5'  # for a128-input channel 65-80<br />
    i2c_id: bus_b<br />
    address: 0x26<br />
    pcf8575: true &nbsp;&nbsp;<br />
<br />
  - id: 'pcf8574_hub_in_6'  # for a128-input channel 81-96<br />
    i2c_id: bus_b<br />
    address: 0x27<br />
    pcf8575: true &nbsp;&nbsp;<br />
<br />
  - id: 'pcf8574_hub_in_7'  # for a128-input channel 97-112<br />
    i2c_id: bus_b<br />
    address: 0x20<br />
    pcf8575: true &nbsp;&nbsp;<br />
<br />
  - id: 'pcf8574_hub_in_8'  # for a128-input channel 113-128<br />
    i2c_id: bus_b<br />
    address: 0x23<br />
    pcf8575: true &nbsp;&nbsp;<br />
<br />
    <br />
# Individual outputs<br />
switch:<br />
  - platform: gpio<br />
    name: "a128-light1"<br />
    id: light1<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light2"<br />
    id: light2<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light3"<br />
    id: light3<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light4"<br />
    id: light4<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light5"<br />
    id: light5<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light6"<br />
    id: light6<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light7"<br />
    id: light7<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light8"<br />
    id: light8<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light9"<br />
    id: light9<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light10"<br />
    id: light10<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light11"<br />
    id: light11<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light12"<br />
    id: light12<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light13"<br />
    id: light13<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light14"<br />
    id: light14<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light15"<br />
    id: light15<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light16"<br />
    id: light16<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light17"<br />
    id: light17<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light18"<br />
    id: light18<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light19"<br />
    id: light19<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light20"<br />
    id: light20<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light21"<br />
    id: light21<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light22"<br />
    id: light22<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light23"<br />
    id: light23<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light24"<br />
    id: light24<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light25"<br />
    id: light25<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light26"<br />
    id: light26<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light27"<br />
    id: light27<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light28"<br />
    id: light28<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light29"<br />
    id: light29<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light30"<br />
    id: light30<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light31"<br />
    id: light31<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light32"<br />
    id: light32<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_2<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light33"<br />
    id: light33<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light34"<br />
    id: light34<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light35"<br />
    id: light35<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light36"<br />
    id: light36<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light37"<br />
    id: light37<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light38"<br />
    id: light38<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light39"<br />
    id: light39<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light40"<br />
    id: light40<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light41"<br />
    id: light41<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light42"<br />
    id: light42<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light43"<br />
    id: light43<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light44"<br />
    id: light44<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light45"<br />
    id: light45<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light46"<br />
    id: light46<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light47"<br />
    id: light47<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light48"<br />
    id: light48<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_3<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light49"<br />
    id: light49<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light50"<br />
    id: light50<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light51"<br />
    id: light51<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light52"<br />
    id: light52<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light53"<br />
    id: light53<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light54"<br />
    id: light54<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light55"<br />
    id: light55<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light56"<br />
    id: light56<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light57"<br />
    id: light57<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light58"<br />
    id: light58<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light59"<br />
    id: light59<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light60"<br />
    id: light60<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light61"<br />
    id: light61<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light62"<br />
    id: light62<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light63"<br />
    id: light63<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light64"<br />
    id: light64<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_4<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light65"<br />
    id: light65<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light66"<br />
    id: light66<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light67"<br />
    id: light67<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light68"<br />
    id: light68<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light69"<br />
    id: light69<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light70"<br />
    id: light70<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light71"<br />
    id: light71<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light72"<br />
    id: light72<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light73"<br />
    id: light73<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light74"<br />
    id: light74<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light75"<br />
    id: light75<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light76"<br />
    id: light76<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light77"<br />
    id: light77<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light78"<br />
    id: light78<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light79"<br />
    id: light79<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light80"<br />
    id: light80<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_5<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light81"<br />
    id: light81<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light82"<br />
    id: light82<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light83"<br />
    id: light83<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light84"<br />
    id: light84<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light85"<br />
    id: light85<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light86"<br />
    id: light86<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light87"<br />
    id: light87<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light88"<br />
    id: light88<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light89"<br />
    id: light89<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light90"<br />
    id: light90<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light91"<br />
    id: light91<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light92"<br />
    id: light92<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light93"<br />
    id: light93<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light94"<br />
    id: light94<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light95"<br />
    id: light95<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light96"<br />
    id: light96<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_6<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light97"<br />
    id: light97<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light98"<br />
    id: light98<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light99"<br />
    id: light99<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light100"<br />
    id: light100<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light101"<br />
    id: light101<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light102"<br />
    id: light102<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light103"<br />
    id: light103<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light104"<br />
    id: light104<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light105"<br />
    id: light105<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light106"<br />
    id: light106<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light107"<br />
    id: light107<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light108"<br />
    id: light108<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light109"<br />
    id: light109<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light110"<br />
    id: light110<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light111"<br />
    id: light111<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light112"<br />
    id: light112<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_7<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light113"<br />
    id: light113<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light114"<br />
    id: light114<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light115"<br />
    id: light115<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light116"<br />
    id: light116<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light117"<br />
    id: light117<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light118"<br />
    id: light118<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light119"<br />
    id: light119<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light120"<br />
    id: light120<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light121"<br />
    id: light121<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 8<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light122"<br />
    id: light122<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 9<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light123"<br />
    id: light123<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 10<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light124"<br />
    id: light124<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 11<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light125"<br />
    id: light125<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 12<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light126"<br />
    id: light126<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 13<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light127"<br />
    id: light127<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 14<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a128-light128"<br />
    id: light128<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_8<br />
      number: 15<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
<br />
      <br />
# Individual inputs<br />
binary_sensor:<br />
  - platform: gpio<br />
    name: "a128-input1"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light1<br />
<br />
  - platform: gpio<br />
    name: "a128-input2"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light2<br />
<br />
  - platform: gpio<br />
    name: "a128-input3"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light3<br />
<br />
  - platform: gpio<br />
    name: "a128-input4"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light4<br />
<br />
  - platform: gpio<br />
    name: "a128-input5"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light5<br />
<br />
  - platform: gpio<br />
    name: "a128-input6"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light6<br />
<br />
  - platform: gpio<br />
    name: "a128-input7"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light7<br />
<br />
  - platform: gpio<br />
    name: "a128-input8"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light8<br />
<br />
  - platform: gpio<br />
    name: "a128-input9"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light9<br />
<br />
  - platform: gpio<br />
    name: "a128-input10"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light10<br />
<br />
  - platform: gpio<br />
    name: "a128-input11"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light11<br />
<br />
  - platform: gpio<br />
    name: "a128-input12"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light12<br />
<br />
  - platform: gpio<br />
    name: "a128-input13"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light13<br />
<br />
  - platform: gpio<br />
    name: "a128-input14"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light14<br />
<br />
  - platform: gpio<br />
    name: "a128-input15"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light15<br />
<br />
  - platform: gpio<br />
    name: "a128-input16"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light16<br />
<br />
  - platform: gpio<br />
    name: "a128-input17"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light17<br />
<br />
  - platform: gpio<br />
    name: "a128-input18"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light18<br />
<br />
  - platform: gpio<br />
    name: "a128-input19"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light19<br />
<br />
  - platform: gpio<br />
    name: "a128-input20"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light20<br />
<br />
  - platform: gpio<br />
    name: "a128-input21"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light21<br />
<br />
  - platform: gpio<br />
    name: "a128-input22"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light22<br />
<br />
  - platform: gpio<br />
    name: "a128-input23"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light23<br />
<br />
  - platform: gpio<br />
    name: "a128-input24"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light24<br />
<br />
  - platform: gpio<br />
    name: "a128-input25"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light25<br />
<br />
  - platform: gpio<br />
    name: "a128-input26"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light26<br />
<br />
  - platform: gpio<br />
    name: "a128-input27"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light27<br />
<br />
  - platform: gpio<br />
    name: "a128-input28"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light28<br />
<br />
  - platform: gpio<br />
    name: "a128-input29"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light29<br />
<br />
  - platform: gpio<br />
    name: "a128-input30"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light30<br />
<br />
  - platform: gpio<br />
    name: "a128-input31"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light31<br />
<br />
  - platform: gpio<br />
    name: "a128-input32"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_2<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light32<br />
<br />
  - platform: gpio<br />
    name: "a128-input33"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light33<br />
<br />
  - platform: gpio<br />
    name: "a128-input34"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light34<br />
<br />
  - platform: gpio<br />
    name: "a128-input35"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light35<br />
<br />
  - platform: gpio<br />
    name: "a128-input36"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light36<br />
<br />
  - platform: gpio<br />
    name: "a128-input37"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light37<br />
<br />
  - platform: gpio<br />
    name: "a128-input38"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light38<br />
<br />
  - platform: gpio<br />
    name: "a128-input39"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light39<br />
<br />
  - platform: gpio<br />
    name: "a128-input40"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light40<br />
<br />
  - platform: gpio<br />
    name: "a128-input41"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light41<br />
<br />
  - platform: gpio<br />
    name: "a128-input42"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light42<br />
<br />
  - platform: gpio<br />
    name: "a128-input43"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light43<br />
<br />
  - platform: gpio<br />
    name: "a128-input44"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light44<br />
<br />
  - platform: gpio<br />
    name: "a128-input45"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light45<br />
<br />
  - platform: gpio<br />
    name: "a128-input46"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light46<br />
<br />
  - platform: gpio<br />
    name: "a128-input47"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light47<br />
<br />
  - platform: gpio<br />
    name: "a128-input48"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_3<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light48<br />
<br />
  - platform: gpio<br />
    name: "a128-input49"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light49<br />
<br />
  - platform: gpio<br />
    name: "a128-input50"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light50<br />
<br />
  - platform: gpio<br />
    name: "a128-input51"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light51<br />
<br />
  - platform: gpio<br />
    name: "a128-input52"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light52<br />
<br />
  - platform: gpio<br />
    name: "a128-input53"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light53<br />
<br />
  - platform: gpio<br />
    name: "a128-input54"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light54<br />
<br />
  - platform: gpio<br />
    name: "a128-input55"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light55<br />
<br />
  - platform: gpio<br />
    name: "a128-input56"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light56<br />
<br />
  - platform: gpio<br />
    name: "a128-input57"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light57<br />
<br />
  - platform: gpio<br />
    name: "a128-input58"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light58<br />
<br />
  - platform: gpio<br />
    name: "a128-input59"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light59<br />
<br />
  - platform: gpio<br />
    name: "a128-input60"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light60<br />
<br />
  - platform: gpio<br />
    name: "a128-input61"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light61<br />
<br />
  - platform: gpio<br />
    name: "a128-input62"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light62<br />
<br />
  - platform: gpio<br />
    name: "a128-input63"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light63<br />
<br />
  - platform: gpio<br />
    name: "a128-input64"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_4<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light64<br />
<br />
  - platform: gpio<br />
    name: "a128-input65"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light65<br />
<br />
  - platform: gpio<br />
    name: "a128-input66"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light66<br />
<br />
  - platform: gpio<br />
    name: "a128-input67"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light67<br />
<br />
  - platform: gpio<br />
    name: "a128-input68"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light68<br />
<br />
  - platform: gpio<br />
    name: "a128-input69"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light69<br />
<br />
  - platform: gpio<br />
    name: "a128-input70"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light70<br />
<br />
  - platform: gpio<br />
    name: "a128-input71"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light71<br />
<br />
  - platform: gpio<br />
    name: "a128-input72"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light72<br />
<br />
  - platform: gpio<br />
    name: "a128-input73"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light73<br />
<br />
  - platform: gpio<br />
    name: "a128-input74"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light74<br />
<br />
  - platform: gpio<br />
    name: "a128-input75"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light75<br />
<br />
  - platform: gpio<br />
    name: "a128-input76"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light76<br />
<br />
  - platform: gpio<br />
    name: "a128-input77"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light77<br />
<br />
  - platform: gpio<br />
    name: "a128-input78"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light78<br />
<br />
  - platform: gpio<br />
    name: "a128-input79"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light79<br />
<br />
  - platform: gpio<br />
    name: "a128-input80"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_5<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light80<br />
<br />
  - platform: gpio<br />
    name: "a128-input81"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light81<br />
<br />
  - platform: gpio<br />
    name: "a128-input82"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light82<br />
<br />
  - platform: gpio<br />
    name: "a128-input83"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light83<br />
<br />
  - platform: gpio<br />
    name: "a128-input84"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light84<br />
<br />
  - platform: gpio<br />
    name: "a128-input85"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light85<br />
<br />
  - platform: gpio<br />
    name: "a128-input86"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light86<br />
<br />
  - platform: gpio<br />
    name: "a128-input87"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light87<br />
<br />
  - platform: gpio<br />
    name: "a128-input88"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light88<br />
<br />
  - platform: gpio<br />
    name: "a128-input89"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light89<br />
<br />
  - platform: gpio<br />
    name: "a128-input90"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light90<br />
<br />
  - platform: gpio<br />
    name: "a128-input91"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light91<br />
<br />
  - platform: gpio<br />
    name: "a128-input92"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light92<br />
<br />
  - platform: gpio<br />
    name: "a128-input93"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light93<br />
<br />
  - platform: gpio<br />
    name: "a128-input94"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light94<br />
<br />
  - platform: gpio<br />
    name: "a128-input95"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light95<br />
<br />
  - platform: gpio<br />
    name: "a128-input96"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_6<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light96<br />
<br />
  - platform: gpio<br />
    name: "a128-input97"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light97<br />
<br />
  - platform: gpio<br />
    name: "a128-input98"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light98<br />
<br />
  - platform: gpio<br />
    name: "a128-input99"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light99<br />
<br />
  - platform: gpio<br />
    name: "a128-input100"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light100<br />
<br />
  - platform: gpio<br />
    name: "a128-input101"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light101<br />
<br />
  - platform: gpio<br />
    name: "a128-input102"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light102<br />
<br />
  - platform: gpio<br />
    name: "a128-input103"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light103<br />
<br />
  - platform: gpio<br />
    name: "a128-input104"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light104<br />
<br />
  - platform: gpio<br />
    name: "a128-input105"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light105<br />
<br />
  - platform: gpio<br />
    name: "a128-input106"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light106<br />
<br />
  - platform: gpio<br />
    name: "a128-input107"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light107<br />
<br />
  - platform: gpio<br />
    name: "a128-input108"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light108<br />
<br />
  - platform: gpio<br />
    name: "a128-input109"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light109<br />
<br />
  - platform: gpio<br />
    name: "a128-input110"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light110<br />
<br />
  - platform: gpio<br />
    name: "a128-input111"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light111<br />
<br />
  - platform: gpio<br />
    name: "a128-input112"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_7<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light112<br />
<br />
  - platform: gpio<br />
    name: "a128-input113"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light113<br />
<br />
  - platform: gpio<br />
    name: "a128-input114"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light114<br />
<br />
  - platform: gpio<br />
    name: "a128-input115"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light115<br />
<br />
  - platform: gpio<br />
    name: "a128-input116"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light116<br />
<br />
  - platform: gpio<br />
    name: "a128-input117"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light117<br />
<br />
  - platform: gpio<br />
    name: "a128-input118"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light118<br />
<br />
  - platform: gpio<br />
    name: "a128-input119"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light119<br />
<br />
  - platform: gpio<br />
    name: "a128-input120"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light120<br />
<br />
  - platform: gpio<br />
    name: "a128-input121"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 8<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light121<br />
<br />
  - platform: gpio<br />
    name: "a128-input122"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 9<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light122<br />
<br />
  - platform: gpio<br />
    name: "a128-input123"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 10<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light123<br />
<br />
  - platform: gpio<br />
    name: "a128-input124"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 11<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light124<br />
<br />
  - platform: gpio<br />
    name: "a128-input125"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 12<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light125<br />
<br />
  - platform: gpio<br />
    name: "a128-input126"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 13<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light126<br />
<br />
  - platform: gpio<br />
    name: "a128-input127"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 14<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light127<br />
<br />
  - platform: gpio<br />
    name: "a128-input128"<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_8<br />
      number: 15<br />
      mode: INPUT<br />
      inverted: true<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light128<br />
<br />
<br />
web_server:<br />
  port: 80</code></div></div>yaml file download:<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7741" target="_blank" title="">KC868-A128-HA-input-toggle-output.txt</a> (Size: 50.21 KB / Downloads: 237)
<!-- end: postbit_attachments_attachment --><br />
<br />
firmware BIN file download (download at 0x0 address , directly to use): <br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7742" target="_blank" title="">a128-input-toggle-output.zip</a> (Size: 418.19 KB / Downloads: 420)
<!-- end: postbit_attachments_attachment --><br />
<br />
after download firmware, ethernet will work as DHCP mode. find the IP address from your router, then use IP address login by web browser.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Custom protocols limitation]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=8108</link>
			<pubDate>Sat, 24 May 2025 07:00:08 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=8714">gabi_jackass@yahoo.com</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=8108</guid>
			<description><![CDATA[Hello,<br />
<br />
I see that the number of custom protocols is limited at 64. This is not enough for a board with 128 inputs and 128 outputs.<br />
<br />
I need at least 4 protocols per digital input (click, double click, hold ...)<br />
<br />
Please advice,<br />
Gabi]]></description>
			<content:encoded><![CDATA[Hello,<br />
<br />
I see that the number of custom protocols is limited at 64. This is not enough for a board with 128 inputs and 128 outputs.<br />
<br />
I need at least 4 protocols per digital input (click, double click, hold ...)<br />
<br />
Please advice,<br />
Gabi]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Problems wifi / ESPHome?]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=8029</link>
			<pubDate>Tue, 29 Apr 2025 18:59:42 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=1591">S.Krans</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=8029</guid>
			<description><![CDATA[Can somebody test my code my wifi is dropping and cant connect to it after the update esphome<br />
<br />
<br />
ESPHome Device Builder <br />
Current version: 2025.4.1<br />
<br />
Home Assistant<br />
Core 2025.4.4<br />
Supervisor 2025.04.1<br />
Operating System 15.2<br />
Frontend 20250411.0<br />
<br />
Network <br />
UniFi OS 4.2.9<br />
Network 9.0.114<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7602" target="_blank" title="">koi-rk-kincony-kc868-a128_logs.txt</a> (Size: 12.57 KB / Downloads: 301)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7603" target="_blank" title="">default-code.txt</a> (Size: 618 bytes / Downloads: 273)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7604" target="_blank" title="">full code.txt</a> (Size: 40.64 KB / Downloads: 275)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Can somebody test my code my wifi is dropping and cant connect to it after the update esphome<br />
<br />
<br />
ESPHome Device Builder <br />
Current version: 2025.4.1<br />
<br />
Home Assistant<br />
Core 2025.4.4<br />
Supervisor 2025.04.1<br />
Operating System 15.2<br />
Frontend 20250411.0<br />
<br />
Network <br />
UniFi OS 4.2.9<br />
Network 9.0.114<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7602" target="_blank" title="">koi-rk-kincony-kc868-a128_logs.txt</a> (Size: 12.57 KB / Downloads: 301)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7603" target="_blank" title="">default-code.txt</a> (Size: 618 bytes / Downloads: 273)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7604" target="_blank" title="">full code.txt</a> (Size: 40.64 KB / Downloads: 275)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[RF TX and RX for KC868-A128]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=7838</link>
			<pubDate>Thu, 20 Mar 2025 06:06:55 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=8213">Toper</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=7838</guid>
			<description><![CDATA[Hi,<br />
I bought KC868-A16 version for testing. With an RF transmitter and receiver. Can this transmitter and receiver be connected to KC868-A128?<br />
<br />
regards,<br />
Toper]]></description>
			<content:encoded><![CDATA[Hi,<br />
I bought KC868-A16 version for testing. With an RF transmitter and receiver. Can this transmitter and receiver be connected to KC868-A128?<br />
<br />
regards,<br />
Toper]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[error when update KC868-A128]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=7625</link>
			<pubDate>Sun, 16 Feb 2025 00:52:58 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=1253">Almhlws</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=7625</guid>
			<description><![CDATA[i get error when update KC868-A128<br />
<br />
<br />
see the attach<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7135" target="_blank" title="">eooeo.png</a> (Size: 46.27 KB / Downloads: 232)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[i get error when update KC868-A128<br />
<br />
<br />
see the attach<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=7135" target="_blank" title="">eooeo.png</a> (Size: 46.27 KB / Downloads: 232)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[KC868-A128 integration with MQTT]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=5083</link>
			<pubDate>Sun, 10 Mar 2024 02:30:47 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=2825">kkabuu</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=5083</guid>
			<description><![CDATA[Hello!<br />
<br />
The KC868-A128 can be integrated with MQTT in Home Assistant?<br />
I'm using this firmware version for  KC868-A128:  v1.0.27.<br />
If yes, what are the steps and the configuration lines in the "configuration.yaml" file in Home Assistant?<br />
<br />
Thank you!]]></description>
			<content:encoded><![CDATA[Hello!<br />
<br />
The KC868-A128 can be integrated with MQTT in Home Assistant?<br />
I'm using this firmware version for  KC868-A128:  v1.0.27.<br />
If yes, what are the steps and the configuration lines in the "configuration.yaml" file in Home Assistant?<br />
<br />
Thank you!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[A128 circuit diagram]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=4214</link>
			<pubDate>Thu, 01 Feb 2024 15:31:50 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=194">KinCony Support</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=4214</guid>
			<description><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=3982" target="_blank" title="">A128.jpg</a> (Size: 3.89 MB / Downloads: 712)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=3982" target="_blank" title="">A128.jpg</a> (Size: 3.89 MB / Downloads: 712)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[I tried to install KC868-A128 but I got an error!]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=4093</link>
			<pubDate>Sat, 06 Jan 2024 12:28:26 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=2714">soethu</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=4093</guid>
			<description><![CDATA[INFO ESPHome 2023.12.5<br />
INFO Reading configuration /config/esphome/a128.yaml...<br />
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.<br />
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.<br />
See <a href="https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins" target="_blank" rel="noopener" class="mycode_url">https://esphome.io/guides/faq.html#why-a...pping-pins</a><br />
WARNING GPIO15 is a strapping PIN and should only be used for I/O with care.<br />
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.<br />
See <a href="https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins" target="_blank" rel="noopener" class="mycode_url">https://esphome.io/guides/faq.html#why-a...pping-pins</a><br />
Failed config<br />
<br />
switch.gpio: [source &lt;unicode string&gt;:516]<br />
  <br />
  Pin 0 is used in multiple places.<br />
  platform: gpio<br />
  name: a128-light49<br />
  pin: <br />
    pcf8574: pcf8574_hub_out_4<br />
    number: 0<br />
    mode: <br />
      output: True<br />
      input: False<br />
    inverted: True<br />
  disabled_by_default: False<br />
  restore_mode: ALWAYS_OFF<br />
  interlock_wait_time: 0ms<br />
switch.gpio: [source &lt;unicode string&gt;:644]<br />
  <br />
  Pin 0 is used in multiple places.<br />
  platform: gpio<br />
  name: a128-light65<br />
  pin: <br />
    pcf8574: pcf8574_hub_out_4<br />
    number: 0<br />
    mode: <br />
      output: True<br />
      input: False<br />
    inverted: True<br />
  disabled_by_default: False<br />
  restore_mode: ALWAYS_OFF<br />
  interlock_wait_time: 0ms]]></description>
			<content:encoded><![CDATA[INFO ESPHome 2023.12.5<br />
INFO Reading configuration /config/esphome/a128.yaml...<br />
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.<br />
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.<br />
See <a href="https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins" target="_blank" rel="noopener" class="mycode_url">https://esphome.io/guides/faq.html#why-a...pping-pins</a><br />
WARNING GPIO15 is a strapping PIN and should only be used for I/O with care.<br />
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.<br />
See <a href="https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins" target="_blank" rel="noopener" class="mycode_url">https://esphome.io/guides/faq.html#why-a...pping-pins</a><br />
Failed config<br />
<br />
switch.gpio: [source &lt;unicode string&gt;:516]<br />
  <br />
  Pin 0 is used in multiple places.<br />
  platform: gpio<br />
  name: a128-light49<br />
  pin: <br />
    pcf8574: pcf8574_hub_out_4<br />
    number: 0<br />
    mode: <br />
      output: True<br />
      input: False<br />
    inverted: True<br />
  disabled_by_default: False<br />
  restore_mode: ALWAYS_OFF<br />
  interlock_wait_time: 0ms<br />
switch.gpio: [source &lt;unicode string&gt;:644]<br />
  <br />
  Pin 0 is used in multiple places.<br />
  platform: gpio<br />
  name: a128-light65<br />
  pin: <br />
    pcf8574: pcf8574_hub_out_4<br />
    number: 0<br />
    mode: <br />
      output: True<br />
      input: False<br />
    inverted: True<br />
  disabled_by_default: False<br />
  restore_mode: ALWAYS_OFF<br />
  interlock_wait_time: 0ms]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[temperature sensor]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=4010</link>
			<pubDate>Sat, 23 Dec 2023 05:55:40 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=2773">ahmedwizza1</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=4010</guid>
			<description><![CDATA[hello engineer<br />
<br />
<br />
I want to know how to connect humidity and temperature sensor to the A128  or kc868 server <br />
<br />
<br />
<br />
<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPEG Image" border="0" alt=".jpeg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=3797" target="_blank" title="">2ee37104-2fcb-46f4-9770-81d08532c4b3.jpeg</a> (Size: 108.68 KB / Downloads: 733)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[hello engineer<br />
<br />
<br />
I want to know how to connect humidity and temperature sensor to the A128  or kc868 server <br />
<br />
<br />
<br />
<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPEG Image" border="0" alt=".jpeg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=3797" target="_blank" title="">2ee37104-2fcb-46f4-9770-81d08532c4b3.jpeg</a> (Size: 108.68 KB / Downloads: 733)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[how to wire OUTPUT voltage from power supply for KC868-A128]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=3389</link>
			<pubDate>Fri, 13 Oct 2023 08:31:35 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=1">admin</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=3389</guid>
			<description><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=3253" target="_blank" title="">KC868-A128-Vin.JPG</a> (Size: 373.07 KB / Downloads: 777)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=3253" target="_blank" title="">KC868-A128-Vin.JPG</a> (Size: 373.07 KB / Downloads: 777)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[The network not working]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=3241</link>
			<pubDate>Thu, 07 Sep 2023 14:12:26 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=1253">Almhlws</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=3241</guid>
			<description><![CDATA[Hi <br />
<br />
I have  KC868-A128 REV 1.5 <br />
<br />
I contacted to 12 v the light for power working but the network light not give me any light <br />
even when I connected to home assistant using ESP HOME  ( No serial devices found  ) by USB <!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2993" target="_blank" title="">unnamed (1).jpg</a> (Size: 1.59 MB / Downloads: 1197)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Hi <br />
<br />
I have  KC868-A128 REV 1.5 <br />
<br />
I contacted to 12 v the light for power working but the network light not give me any light <br />
even when I connected to home assistant using ESP HOME  ( No serial devices found  ) by USB <!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2993" target="_blank" title="">unnamed (1).jpg</a> (Size: 1.59 MB / Downloads: 1197)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[KC868-A128 PCB size details]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=2817</link>
			<pubDate>Thu, 20 Apr 2023 09:14:10 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=1">admin</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=2817</guid>
			<description><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/pdf.png" title="Adobe Acrobat PDF" border="0" alt=".pdf" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2338" target="_blank" title="">KC868-A128_PCB_size_2.pdf</a> (Size: 528.27 KB / Downloads: 727)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/pdf.png" title="Adobe Acrobat PDF" border="0" alt=".pdf" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2338" target="_blank" title="">KC868-A128_PCB_size_2.pdf</a> (Size: 528.27 KB / Downloads: 727)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[(SOLVED) Strange behavor ESPHome]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=2641</link>
			<pubDate>Thu, 02 Mar 2023 22:55:41 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=1591">S.Krans</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=2641</guid>
			<description><![CDATA[Hi i got a KC868-A128 with ESPHome on it code from this forum<br />
<br />
<br />
My problem is if i enable Switch (switch.kincony_kc868_a128_a128_light65) the (switch.kincony_kc868_a128_a128_light49) goes on and if i switch (switch.kincony_kc868_a128_a128_light49) does the same switch on and off<br />
<br />
<br />
if i enable all switches everything goes on except D132 on the board no light<br />
<br />
i have attached the code and the log<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2024" target="_blank" title="">ESPHOME LOG.txt</a> (Size: 46.57 KB / Downloads: 484)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2025" target="_blank" title="">ESPHOME CODE.txt</a> (Size: 43.25 KB / Downloads: 442)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2027" target="_blank" title="">20230302_155718.jpg</a> (Size: 233.25 KB / Downloads: 1082)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Hi i got a KC868-A128 with ESPHome on it code from this forum<br />
<br />
<br />
My problem is if i enable Switch (switch.kincony_kc868_a128_a128_light65) the (switch.kincony_kc868_a128_a128_light49) goes on and if i switch (switch.kincony_kc868_a128_a128_light49) does the same switch on and off<br />
<br />
<br />
if i enable all switches everything goes on except D132 on the board no light<br />
<br />
i have attached the code and the log<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2024" target="_blank" title="">ESPHOME LOG.txt</a> (Size: 46.57 KB / Downloads: 484)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2025" target="_blank" title="">ESPHOME CODE.txt</a> (Size: 43.25 KB / Downloads: 442)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2027" target="_blank" title="">20230302_155718.jpg</a> (Size: 233.25 KB / Downloads: 1082)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Arduino IDE demo source code for KC868-A128]--#04--LAN8720 code]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=2119</link>
			<pubDate>Fri, 05 Aug 2022 10:13:17 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=194">KinCony Support</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=2119</guid>
			<description><![CDATA[<span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-large;" class="mycode_size">[Arduino IDE demo source code for KC868-A128]--#04--LAN8720 code</span></span><br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include &lt;ETH.h&gt; <br />
#include &lt;WiFiUdp.h&gt; <br />
<br />
#define ETH_ADDR        0<br />
#define ETH_POWER_PIN  -1<br />
#define ETH_MDC_PIN    23<br />
#define ETH_MDIO_PIN &nbsp;&nbsp;18<br />
#define ETH_TYPE     &nbsp;&nbsp;ETH_PHY_LAN8720<br />
#define ETH_CLK_MODE &nbsp;&nbsp;ETH_CLOCK_GPIO17_OUT<br />
<br />
WiFiUDP Udp;                      //Create UDP object<br />
unsigned int localUdpPort = 4196; //local port<br />
IPAddress local_ip(192, 168, 123, 200);<br />
IPAddress gateway(192, 168, 123, 1);<br />
IPAddress subnet(255, 255, 255, 0);<br />
IPAddress dns(192, 168, 123, 1);<br />
<br />
void setup()<br />
{<br />
  Serial.begin(115200);<br />
  Serial.println();<br />
 &nbsp;&nbsp;<br />
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH<br />
<br />
  // write confir for static IP, gateway,subnet,dns1,dns2<br />
  if (ETH.config(local_ip, gateway, subnet, dns, dns) == false) {<br />
    Serial.println("LAN8720 Configuration failed.");<br />
  }else{Serial.println("LAN8720 Configuration success.");}<br />
  <br />
 /* while(!((uint32_t)ETH.localIP())) //wait for IP<br />
  {<br />
<br />
  }*/<br />
  Serial.println("Connected");<br />
  Serial.print("IP Address:");<br />
  Serial.println(ETH.localIP());<br />
<br />
  Udp.begin(localUdpPort); //begin UDP listener<br />
}<br />
<br />
void loop()<br />
{<br />
  int packetSize = Udp.parsePacket(); //get package size<br />
  if (packetSize)                   &nbsp;&nbsp;//if have received data<br />
  {<br />
    char buf[packetSize];<br />
    Udp.read(buf, packetSize); //read current data<br />
<br />
    Serial.println();<br />
    Serial.print("Received: ");<br />
    Serial.println(buf);<br />
    Serial.print("From IP: ");<br />
    Serial.println(Udp.remoteIP());<br />
    Serial.print("From Port: ");<br />
    Serial.println(Udp.remotePort());<br />
<br />
    Udp.beginPacket(Udp.remoteIP(), Udp.remotePort()); //ready to send data<br />
    Udp.print("Received: ");    <br />
    Udp.write((const uint8_t*)buf, packetSize); //copy data to sender buffer<br />
    Udp.endPacket();            //send data<br />
  }<br />
}</code></div></div>]]></description>
			<content:encoded><![CDATA[<span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-large;" class="mycode_size">[Arduino IDE demo source code for KC868-A128]--#04--LAN8720 code</span></span><br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include &lt;ETH.h&gt; <br />
#include &lt;WiFiUdp.h&gt; <br />
<br />
#define ETH_ADDR        0<br />
#define ETH_POWER_PIN  -1<br />
#define ETH_MDC_PIN    23<br />
#define ETH_MDIO_PIN &nbsp;&nbsp;18<br />
#define ETH_TYPE     &nbsp;&nbsp;ETH_PHY_LAN8720<br />
#define ETH_CLK_MODE &nbsp;&nbsp;ETH_CLOCK_GPIO17_OUT<br />
<br />
WiFiUDP Udp;                      //Create UDP object<br />
unsigned int localUdpPort = 4196; //local port<br />
IPAddress local_ip(192, 168, 123, 200);<br />
IPAddress gateway(192, 168, 123, 1);<br />
IPAddress subnet(255, 255, 255, 0);<br />
IPAddress dns(192, 168, 123, 1);<br />
<br />
void setup()<br />
{<br />
  Serial.begin(115200);<br />
  Serial.println();<br />
 &nbsp;&nbsp;<br />
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH<br />
<br />
  // write confir for static IP, gateway,subnet,dns1,dns2<br />
  if (ETH.config(local_ip, gateway, subnet, dns, dns) == false) {<br />
    Serial.println("LAN8720 Configuration failed.");<br />
  }else{Serial.println("LAN8720 Configuration success.");}<br />
  <br />
 /* while(!((uint32_t)ETH.localIP())) //wait for IP<br />
  {<br />
<br />
  }*/<br />
  Serial.println("Connected");<br />
  Serial.print("IP Address:");<br />
  Serial.println(ETH.localIP());<br />
<br />
  Udp.begin(localUdpPort); //begin UDP listener<br />
}<br />
<br />
void loop()<br />
{<br />
  int packetSize = Udp.parsePacket(); //get package size<br />
  if (packetSize)                   &nbsp;&nbsp;//if have received data<br />
  {<br />
    char buf[packetSize];<br />
    Udp.read(buf, packetSize); //read current data<br />
<br />
    Serial.println();<br />
    Serial.print("Received: ");<br />
    Serial.println(buf);<br />
    Serial.print("From IP: ");<br />
    Serial.println(Udp.remoteIP());<br />
    Serial.print("From Port: ");<br />
    Serial.println(Udp.remotePort());<br />
<br />
    Udp.beginPacket(Udp.remoteIP(), Udp.remotePort()); //ready to send data<br />
    Udp.print("Received: ");    <br />
    Udp.write((const uint8_t*)buf, packetSize); //copy data to sender buffer<br />
    Udp.endPacket();            //send data<br />
  }<br />
}</code></div></div>]]></content:encoded>
		</item>
	</channel>
</rss>