<?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>Sun, 08 Nov 2026 01:38:08 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[KC868-A128 Arduino Demo: 128-Channel Billie Jean Light Show]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=9897</link>
			<pubDate>Fri, 23 Oct 2026 11:24:30 +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=9897</guid>
			<description><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/*<br />
  Made by KinCony IoT: https://www.kincony.com<br />
<br />
  KC868-A128 - 128-channel light show for YouTube Shorts.<br />
<br />
  Effects:<br />
  1. Meteor chase with an 8-channel tail.<br />
  2. Two lights collide and move apart.<br />
  3. Four synchronized chase groups.<br />
  4. Fill and empty all 128 channels.<br />
  5. Odd/even alternation and a flashing finale.<br />
<br />
  Required library:<br />
  PCF8575 by Renzo Mischianti (xreef).<br />
<br />
  I2C SDA: GPIO5<br />
  I2C SCL: GPIO16<br />
<br />
  Outputs are active LOW.<br />
  Use the onboard LEDs or suitable demonstration lights.<br />
  The sequence includes stages with all outputs ON.<br />
*/<br />
<br />
#include &lt;Arduino.h&gt;<br />
#include &lt;Wire.h&gt;<br />
#include &lt;PCF8575.h&gt;<br />
<br />
constexpr int I2C_SDA = 5;<br />
constexpr int I2C_SCL = 16;<br />
<br />
constexpr uint8_t CHIP_COUNT = 8;<br />
constexpr uint8_t PINS_PER_CHIP = 16;<br />
constexpr int CHANNEL_COUNT = 128;<br />
<br />
// Increase this value to slow down every effect.<br />
// Example: 150 means 1.5 times the original duration.<br />
constexpr uint16_t SPEED_PERCENT = 100;<br />
<br />
PCF8575 pcf1(0x24, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf2(0x25, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf3(0x21, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf4(0x22, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf5(0x26, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf6(0x27, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf7(0x20, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf8(0x23, I2C_SDA, I2C_SCL);<br />
<br />
PCF8575* const outputs[] = {<br />
  &amp;pcf1, &amp;pcf2, &amp;pcf3, &amp;pcf4,<br />
  &amp;pcf5, &amp;pcf6, &amp;pcf7, &amp;pcf8<br />
};<br />
<br />
// Store current and requested states to avoid redundant writes.<br />
bool currentState[CHANNEL_COUNT] = {};<br />
bool frame[CHANNEL_COUNT] = {};<br />
<br />
void pauseMs(uint32_t duration) {<br />
  delay(duration * SPEED_PERCENT / 100);<br />
}<br />
<br />
// Channel indexes are 0-127.<br />
void setChannel(int channel, bool on) {<br />
  if (channel &lt; 0 || channel &gt;= CHANNEL_COUNT) {<br />
    return;<br />
  }<br />
<br />
  if (currentState[channel] == on) {<br />
    return;<br />
  }<br />
<br />
  outputs[channel / PINS_PER_CHIP]-&gt;digitalWrite(<br />
    channel % PINS_PER_CHIP,<br />
    on ? LOW : HIGH<br />
  );<br />
<br />
  currentState[channel] = on;<br />
}<br />
<br />
void setAll(bool on) {<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, on);<br />
  }<br />
}<br />
<br />
void clearFrame() {<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    frame[channel] = false;<br />
  }<br />
}<br />
<br />
void addLight(int channel) {<br />
  if (channel &gt;= 0 &amp;&amp; channel &lt; CHANNEL_COUNT) {<br />
    frame[channel] = true;<br />
  }<br />
}<br />
<br />
void showFrame(uint32_t duration) {<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, frame[channel]);<br />
  }<br />
<br />
  pauseMs(duration);<br />
}<br />
<br />
// Move an 8-channel tail in both directions.<br />
void meteorShow() {<br />
  constexpr int TAIL_LENGTH = 8;<br />
<br />
  for (int head = 0;<br />
     &nbsp;&nbsp;head &lt; CHANNEL_COUNT + TAIL_LENGTH;<br />
     &nbsp;&nbsp;head++) {<br />
    clearFrame();<br />
<br />
    for (int tail = 0; tail &lt; TAIL_LENGTH; tail++) {<br />
      addLight(head - tail);<br />
    }<br />
<br />
    showFrame(18);<br />
  }<br />
<br />
  for (int head = CHANNEL_COUNT - 1;<br />
     &nbsp;&nbsp;head &gt;= -TAIL_LENGTH;<br />
     &nbsp;&nbsp;head--) {<br />
    clearFrame();<br />
<br />
    for (int tail = 0; tail &lt; TAIL_LENGTH; tail++) {<br />
      addLight(head + tail);<br />
    }<br />
<br />
    showFrame(14);<br />
  }<br />
}<br />
<br />
// Move two 4-channel beams toward the center and back.<br />
void collisionShow() {<br />
  for (int repeat = 0; repeat &lt; 2; repeat++) {<br />
    for (int position = 0; position &lt; 64; position++) {<br />
      clearFrame();<br />
<br />
      for (int tail = 0; tail &lt; 4; tail++) {<br />
        addLight(position - tail);<br />
        addLight(CHANNEL_COUNT - 1 - position + tail);<br />
      }<br />
<br />
      showFrame(18);<br />
    }<br />
<br />
    for (int position = 63; position &gt;= 0; position--) {<br />
      clearFrame();<br />
<br />
      for (int tail = 0; tail &lt; 4; tail++) {<br />
        addLight(position - tail);<br />
        addLight(CHANNEL_COUNT - 1 - position + tail);<br />
      }<br />
<br />
      showFrame(14);<br />
    }<br />
  }<br />
<br />
  setAll(false);<br />
}<br />
<br />
// Run four independent 32-channel chase groups.<br />
void fourGroupShow() {<br />
  constexpr int GROUP_SIZE = 32;<br />
  constexpr int TAIL_LENGTH = 4;<br />
<br />
  for (int repeat = 0; repeat &lt; 3; repeat++) {<br />
    for (int step = 0; step &lt; GROUP_SIZE; step++) {<br />
      clearFrame();<br />
<br />
      for (int group = 0; group &lt; 4; group++) {<br />
        for (int tail = 0; tail &lt; TAIL_LENGTH; tail++) {<br />
          int local = (step - tail + GROUP_SIZE) % GROUP_SIZE;<br />
<br />
          // Adjacent groups move in opposite directions.<br />
          if (group % 2 == 1) {<br />
            local = GROUP_SIZE - 1 - local;<br />
          }<br />
<br />
          addLight(group * GROUP_SIZE + local);<br />
        }<br />
      }<br />
<br />
      showFrame(35);<br />
    }<br />
  }<br />
<br />
  setAll(false);<br />
}<br />
<br />
// Gradually fill the board, then empty it in the same order.<br />
void fillShow() {<br />
  setAll(false);<br />
<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, true);<br />
    pauseMs(12);<br />
  }<br />
<br />
  pauseMs(350);<br />
<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, false);<br />
    pauseMs(9);<br />
  }<br />
<br />
  pauseMs(150);<br />
}<br />
<br />
// Alternate physical channels 1/3/5... and 2/4/6...<br />
void finaleShow() {<br />
  for (int step = 0; step &lt; 8; step++) {<br />
    clearFrame();<br />
<br />
    for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
      if ((channel % 2) == (step % 2)) {<br />
        addLight(channel);<br />
      }<br />
    }<br />
<br />
    showFrame(120);<br />
  }<br />
<br />
  setAll(false);<br />
  pauseMs(150);<br />
<br />
  for (int repeat = 0; repeat &lt; 2; repeat++) {<br />
    setAll(true);<br />
    pauseMs(180);<br />
<br />
    setAll(false);<br />
    pauseMs(180);<br />
  }<br />
}<br />
<br />
void setup() {<br />
  Serial.begin(115200);<br />
<br />
  // Configure every output HIGH before initializing the chips.<br />
  for (uint8_t chip = 0; chip &lt; CHIP_COUNT; chip++) {<br />
    for (uint8_t pin = 0; pin &lt; PINS_PER_CHIP; pin++) {<br />
      outputs[chip]-&gt;pinMode(pin, OUTPUT, HIGH);<br />
    }<br />
  }<br />
<br />
  for (uint8_t chip = 0; chip &lt; CHIP_COUNT; chip++) {<br />
    if (!outputs[chip]-&gt;begin()) {<br />
      Serial.printf("PCF8575 group %u initialization failed.&#92;n",<br />
                    chip + 1);<br />
<br />
      while (true) {<br />
        delay(1000);<br />
      }<br />
    }<br />
  }<br />
<br />
  Serial.println("KC868-A128 light show ready.");<br />
  pauseMs(500);<br />
}<br />
<br />
void loop() {<br />
  meteorShow();<br />
  collisionShow();<br />
  fourGroupShow();<br />
  fillShow();<br />
  finaleShow();<br />
<br />
  setAll(false);<br />
  pauseMs(500);<br />
}</code></div></div> arduino ino file download: <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=10651" target="_blank" title="">Billie-Jean.zip</a> (Size: 1.96 KB / Downloads: 50)
<!-- end: postbit_attachments_attachment --><br />
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download: <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=10652" target="_blank" title="">Billie-Jean.ino.merged.zip</a> (Size: 186.24 KB / Downloads: 48)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/*<br />
  Made by KinCony IoT: https://www.kincony.com<br />
<br />
  KC868-A128 - 128-channel light show for YouTube Shorts.<br />
<br />
  Effects:<br />
  1. Meteor chase with an 8-channel tail.<br />
  2. Two lights collide and move apart.<br />
  3. Four synchronized chase groups.<br />
  4. Fill and empty all 128 channels.<br />
  5. Odd/even alternation and a flashing finale.<br />
<br />
  Required library:<br />
  PCF8575 by Renzo Mischianti (xreef).<br />
<br />
  I2C SDA: GPIO5<br />
  I2C SCL: GPIO16<br />
<br />
  Outputs are active LOW.<br />
  Use the onboard LEDs or suitable demonstration lights.<br />
  The sequence includes stages with all outputs ON.<br />
*/<br />
<br />
#include &lt;Arduino.h&gt;<br />
#include &lt;Wire.h&gt;<br />
#include &lt;PCF8575.h&gt;<br />
<br />
constexpr int I2C_SDA = 5;<br />
constexpr int I2C_SCL = 16;<br />
<br />
constexpr uint8_t CHIP_COUNT = 8;<br />
constexpr uint8_t PINS_PER_CHIP = 16;<br />
constexpr int CHANNEL_COUNT = 128;<br />
<br />
// Increase this value to slow down every effect.<br />
// Example: 150 means 1.5 times the original duration.<br />
constexpr uint16_t SPEED_PERCENT = 100;<br />
<br />
PCF8575 pcf1(0x24, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf2(0x25, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf3(0x21, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf4(0x22, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf5(0x26, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf6(0x27, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf7(0x20, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf8(0x23, I2C_SDA, I2C_SCL);<br />
<br />
PCF8575* const outputs[] = {<br />
  &amp;pcf1, &amp;pcf2, &amp;pcf3, &amp;pcf4,<br />
  &amp;pcf5, &amp;pcf6, &amp;pcf7, &amp;pcf8<br />
};<br />
<br />
// Store current and requested states to avoid redundant writes.<br />
bool currentState[CHANNEL_COUNT] = {};<br />
bool frame[CHANNEL_COUNT] = {};<br />
<br />
void pauseMs(uint32_t duration) {<br />
  delay(duration * SPEED_PERCENT / 100);<br />
}<br />
<br />
// Channel indexes are 0-127.<br />
void setChannel(int channel, bool on) {<br />
  if (channel &lt; 0 || channel &gt;= CHANNEL_COUNT) {<br />
    return;<br />
  }<br />
<br />
  if (currentState[channel] == on) {<br />
    return;<br />
  }<br />
<br />
  outputs[channel / PINS_PER_CHIP]-&gt;digitalWrite(<br />
    channel % PINS_PER_CHIP,<br />
    on ? LOW : HIGH<br />
  );<br />
<br />
  currentState[channel] = on;<br />
}<br />
<br />
void setAll(bool on) {<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, on);<br />
  }<br />
}<br />
<br />
void clearFrame() {<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    frame[channel] = false;<br />
  }<br />
}<br />
<br />
void addLight(int channel) {<br />
  if (channel &gt;= 0 &amp;&amp; channel &lt; CHANNEL_COUNT) {<br />
    frame[channel] = true;<br />
  }<br />
}<br />
<br />
void showFrame(uint32_t duration) {<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, frame[channel]);<br />
  }<br />
<br />
  pauseMs(duration);<br />
}<br />
<br />
// Move an 8-channel tail in both directions.<br />
void meteorShow() {<br />
  constexpr int TAIL_LENGTH = 8;<br />
<br />
  for (int head = 0;<br />
     &nbsp;&nbsp;head &lt; CHANNEL_COUNT + TAIL_LENGTH;<br />
     &nbsp;&nbsp;head++) {<br />
    clearFrame();<br />
<br />
    for (int tail = 0; tail &lt; TAIL_LENGTH; tail++) {<br />
      addLight(head - tail);<br />
    }<br />
<br />
    showFrame(18);<br />
  }<br />
<br />
  for (int head = CHANNEL_COUNT - 1;<br />
     &nbsp;&nbsp;head &gt;= -TAIL_LENGTH;<br />
     &nbsp;&nbsp;head--) {<br />
    clearFrame();<br />
<br />
    for (int tail = 0; tail &lt; TAIL_LENGTH; tail++) {<br />
      addLight(head + tail);<br />
    }<br />
<br />
    showFrame(14);<br />
  }<br />
}<br />
<br />
// Move two 4-channel beams toward the center and back.<br />
void collisionShow() {<br />
  for (int repeat = 0; repeat &lt; 2; repeat++) {<br />
    for (int position = 0; position &lt; 64; position++) {<br />
      clearFrame();<br />
<br />
      for (int tail = 0; tail &lt; 4; tail++) {<br />
        addLight(position - tail);<br />
        addLight(CHANNEL_COUNT - 1 - position + tail);<br />
      }<br />
<br />
      showFrame(18);<br />
    }<br />
<br />
    for (int position = 63; position &gt;= 0; position--) {<br />
      clearFrame();<br />
<br />
      for (int tail = 0; tail &lt; 4; tail++) {<br />
        addLight(position - tail);<br />
        addLight(CHANNEL_COUNT - 1 - position + tail);<br />
      }<br />
<br />
      showFrame(14);<br />
    }<br />
  }<br />
<br />
  setAll(false);<br />
}<br />
<br />
// Run four independent 32-channel chase groups.<br />
void fourGroupShow() {<br />
  constexpr int GROUP_SIZE = 32;<br />
  constexpr int TAIL_LENGTH = 4;<br />
<br />
  for (int repeat = 0; repeat &lt; 3; repeat++) {<br />
    for (int step = 0; step &lt; GROUP_SIZE; step++) {<br />
      clearFrame();<br />
<br />
      for (int group = 0; group &lt; 4; group++) {<br />
        for (int tail = 0; tail &lt; TAIL_LENGTH; tail++) {<br />
          int local = (step - tail + GROUP_SIZE) % GROUP_SIZE;<br />
<br />
          // Adjacent groups move in opposite directions.<br />
          if (group % 2 == 1) {<br />
            local = GROUP_SIZE - 1 - local;<br />
          }<br />
<br />
          addLight(group * GROUP_SIZE + local);<br />
        }<br />
      }<br />
<br />
      showFrame(35);<br />
    }<br />
  }<br />
<br />
  setAll(false);<br />
}<br />
<br />
// Gradually fill the board, then empty it in the same order.<br />
void fillShow() {<br />
  setAll(false);<br />
<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, true);<br />
    pauseMs(12);<br />
  }<br />
<br />
  pauseMs(350);<br />
<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, false);<br />
    pauseMs(9);<br />
  }<br />
<br />
  pauseMs(150);<br />
}<br />
<br />
// Alternate physical channels 1/3/5... and 2/4/6...<br />
void finaleShow() {<br />
  for (int step = 0; step &lt; 8; step++) {<br />
    clearFrame();<br />
<br />
    for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
      if ((channel % 2) == (step % 2)) {<br />
        addLight(channel);<br />
      }<br />
    }<br />
<br />
    showFrame(120);<br />
  }<br />
<br />
  setAll(false);<br />
  pauseMs(150);<br />
<br />
  for (int repeat = 0; repeat &lt; 2; repeat++) {<br />
    setAll(true);<br />
    pauseMs(180);<br />
<br />
    setAll(false);<br />
    pauseMs(180);<br />
  }<br />
}<br />
<br />
void setup() {<br />
  Serial.begin(115200);<br />
<br />
  // Configure every output HIGH before initializing the chips.<br />
  for (uint8_t chip = 0; chip &lt; CHIP_COUNT; chip++) {<br />
    for (uint8_t pin = 0; pin &lt; PINS_PER_CHIP; pin++) {<br />
      outputs[chip]-&gt;pinMode(pin, OUTPUT, HIGH);<br />
    }<br />
  }<br />
<br />
  for (uint8_t chip = 0; chip &lt; CHIP_COUNT; chip++) {<br />
    if (!outputs[chip]-&gt;begin()) {<br />
      Serial.printf("PCF8575 group %u initialization failed.&#92;n",<br />
                    chip + 1);<br />
<br />
      while (true) {<br />
        delay(1000);<br />
      }<br />
    }<br />
  }<br />
<br />
  Serial.println("KC868-A128 light show ready.");<br />
  pauseMs(500);<br />
}<br />
<br />
void loop() {<br />
  meteorShow();<br />
  collisionShow();<br />
  fourGroupShow();<br />
  fillShow();<br />
  finaleShow();<br />
<br />
  setAll(false);<br />
  pauseMs(500);<br />
}</code></div></div> arduino ino file download: <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=10651" target="_blank" title="">Billie-Jean.zip</a> (Size: 1.96 KB / Downloads: 50)
<!-- end: postbit_attachments_attachment --><br />
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download: <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=10652" target="_blank" title="">Billie-Jean.ino.merged.zip</a> (Size: 186.24 KB / Downloads: 48)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[KC868-A128 Arduino Chasing Lights Demo – 128-Channel LED Effects]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=9896</link>
			<pubDate>Fri, 23 Oct 2026 11:23:06 +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=9896</guid>
			<description><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/*<br />
  Made by KinCony IoT: https://www.kincony.com<br />
<br />
  KC868-A128 - 128-channel light show for YouTube Shorts.<br />
<br />
  Effects:<br />
  1. Meteor chase with an 8-channel tail.<br />
  2. Two lights collide and move apart.<br />
  3. Four synchronized chase groups.<br />
  4. Fill and empty all 128 channels.<br />
  5. Odd/even alternation and a flashing finale.<br />
<br />
  Required library:<br />
  PCF8575 by Renzo Mischianti (xreef).<br />
<br />
  I2C SDA: GPIO5<br />
  I2C SCL: GPIO16<br />
<br />
  Outputs are active LOW.<br />
  Use the onboard LEDs or suitable demonstration lights.<br />
  The sequence includes stages with all outputs ON.<br />
*/<br />
<br />
#include &lt;Arduino.h&gt;<br />
#include &lt;Wire.h&gt;<br />
#include &lt;PCF8575.h&gt;<br />
<br />
constexpr int I2C_SDA = 5;<br />
constexpr int I2C_SCL = 16;<br />
<br />
constexpr uint8_t CHIP_COUNT = 8;<br />
constexpr uint8_t PINS_PER_CHIP = 16;<br />
constexpr int CHANNEL_COUNT = 128;<br />
<br />
// Increase this value to slow down every effect.<br />
// Example: 150 means 1.5 times the original duration.<br />
constexpr uint16_t SPEED_PERCENT = 100;<br />
<br />
PCF8575 pcf1(0x24, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf2(0x25, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf3(0x21, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf4(0x22, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf5(0x26, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf6(0x27, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf7(0x20, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf8(0x23, I2C_SDA, I2C_SCL);<br />
<br />
PCF8575* const outputs[] = {<br />
  &amp;pcf1, &amp;pcf2, &amp;pcf3, &amp;pcf4,<br />
  &amp;pcf5, &amp;pcf6, &amp;pcf7, &amp;pcf8<br />
};<br />
<br />
// Store current and requested states to avoid redundant writes.<br />
bool currentState[CHANNEL_COUNT] = {};<br />
bool frame[CHANNEL_COUNT] = {};<br />
<br />
void pauseMs(uint32_t duration) {<br />
  delay(duration * SPEED_PERCENT / 100);<br />
}<br />
<br />
// Channel indexes are 0-127.<br />
void setChannel(int channel, bool on) {<br />
  if (channel &lt; 0 || channel &gt;= CHANNEL_COUNT) {<br />
    return;<br />
  }<br />
<br />
  if (currentState[channel] == on) {<br />
    return;<br />
  }<br />
<br />
  outputs[channel / PINS_PER_CHIP]-&gt;digitalWrite(<br />
    channel % PINS_PER_CHIP,<br />
    on ? LOW : HIGH<br />
  );<br />
<br />
  currentState[channel] = on;<br />
}<br />
<br />
void setAll(bool on) {<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, on);<br />
  }<br />
}<br />
<br />
void clearFrame() {<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    frame[channel] = false;<br />
  }<br />
}<br />
<br />
void addLight(int channel) {<br />
  if (channel &gt;= 0 &amp;&amp; channel &lt; CHANNEL_COUNT) {<br />
    frame[channel] = true;<br />
  }<br />
}<br />
<br />
void showFrame(uint32_t duration) {<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, frame[channel]);<br />
  }<br />
<br />
  pauseMs(duration);<br />
}<br />
<br />
// Move an 8-channel tail in both directions.<br />
void meteorShow() {<br />
  constexpr int TAIL_LENGTH = 8;<br />
<br />
  for (int head = 0;<br />
     &nbsp;&nbsp;head &lt; CHANNEL_COUNT + TAIL_LENGTH;<br />
     &nbsp;&nbsp;head++) {<br />
    clearFrame();<br />
<br />
    for (int tail = 0; tail &lt; TAIL_LENGTH; tail++) {<br />
      addLight(head - tail);<br />
    }<br />
<br />
    showFrame(18);<br />
  }<br />
<br />
  for (int head = CHANNEL_COUNT - 1;<br />
     &nbsp;&nbsp;head &gt;= -TAIL_LENGTH;<br />
     &nbsp;&nbsp;head--) {<br />
    clearFrame();<br />
<br />
    for (int tail = 0; tail &lt; TAIL_LENGTH; tail++) {<br />
      addLight(head + tail);<br />
    }<br />
<br />
    showFrame(14);<br />
  }<br />
}<br />
<br />
// Move two 4-channel beams toward the center and back.<br />
void collisionShow() {<br />
  for (int repeat = 0; repeat &lt; 2; repeat++) {<br />
    for (int position = 0; position &lt; 64; position++) {<br />
      clearFrame();<br />
<br />
      for (int tail = 0; tail &lt; 4; tail++) {<br />
        addLight(position - tail);<br />
        addLight(CHANNEL_COUNT - 1 - position + tail);<br />
      }<br />
<br />
      showFrame(18);<br />
    }<br />
<br />
    for (int position = 63; position &gt;= 0; position--) {<br />
      clearFrame();<br />
<br />
      for (int tail = 0; tail &lt; 4; tail++) {<br />
        addLight(position - tail);<br />
        addLight(CHANNEL_COUNT - 1 - position + tail);<br />
      }<br />
<br />
      showFrame(14);<br />
    }<br />
  }<br />
<br />
  setAll(false);<br />
}<br />
<br />
// Run four independent 32-channel chase groups.<br />
void fourGroupShow() {<br />
  constexpr int GROUP_SIZE = 32;<br />
  constexpr int TAIL_LENGTH = 4;<br />
<br />
  for (int repeat = 0; repeat &lt; 3; repeat++) {<br />
    for (int step = 0; step &lt; GROUP_SIZE; step++) {<br />
      clearFrame();<br />
<br />
      for (int group = 0; group &lt; 4; group++) {<br />
        for (int tail = 0; tail &lt; TAIL_LENGTH; tail++) {<br />
          int local = (step - tail + GROUP_SIZE) % GROUP_SIZE;<br />
<br />
          // Adjacent groups move in opposite directions.<br />
          if (group % 2 == 1) {<br />
            local = GROUP_SIZE - 1 - local;<br />
          }<br />
<br />
          addLight(group * GROUP_SIZE + local);<br />
        }<br />
      }<br />
<br />
      showFrame(35);<br />
    }<br />
  }<br />
<br />
  setAll(false);<br />
}<br />
<br />
// Gradually fill the board, then empty it in the same order.<br />
void fillShow() {<br />
  setAll(false);<br />
<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, true);<br />
    pauseMs(12);<br />
  }<br />
<br />
  pauseMs(350);<br />
<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, false);<br />
    pauseMs(9);<br />
  }<br />
<br />
  pauseMs(150);<br />
}<br />
<br />
// Alternate physical channels 1/3/5... and 2/4/6...<br />
void finaleShow() {<br />
  for (int step = 0; step &lt; 8; step++) {<br />
    clearFrame();<br />
<br />
    for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
      if ((channel % 2) == (step % 2)) {<br />
        addLight(channel);<br />
      }<br />
    }<br />
<br />
    showFrame(120);<br />
  }<br />
<br />
  setAll(false);<br />
  pauseMs(150);<br />
<br />
  for (int repeat = 0; repeat &lt; 2; repeat++) {<br />
    setAll(true);<br />
    pauseMs(180);<br />
<br />
    setAll(false);<br />
    pauseMs(180);<br />
  }<br />
}<br />
<br />
void setup() {<br />
  Serial.begin(115200);<br />
<br />
  // Configure every output HIGH before initializing the chips.<br />
  for (uint8_t chip = 0; chip &lt; CHIP_COUNT; chip++) {<br />
    for (uint8_t pin = 0; pin &lt; PINS_PER_CHIP; pin++) {<br />
      outputs[chip]-&gt;pinMode(pin, OUTPUT, HIGH);<br />
    }<br />
  }<br />
<br />
  for (uint8_t chip = 0; chip &lt; CHIP_COUNT; chip++) {<br />
    if (!outputs[chip]-&gt;begin()) {<br />
      Serial.printf("PCF8575 group %u initialization failed.&#92;n",<br />
                    chip + 1);<br />
<br />
      while (true) {<br />
        delay(1000);<br />
      }<br />
    }<br />
  }<br />
<br />
  Serial.println("KC868-A128 light show ready.");<br />
  pauseMs(500);<br />
}<br />
<br />
void loop() {<br />
  meteorShow();<br />
  collisionShow();<br />
  fourGroupShow();<br />
  fillShow();<br />
  finaleShow();<br />
<br />
  setAll(false);<br />
  pauseMs(500);<br />
}</code></div></div> arduino ino file download: <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=10649" target="_blank" title="">LED.zip</a> (Size: 1.95 KB / Downloads: 44)
<!-- end: postbit_attachments_attachment --><br />
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download: <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=10650" target="_blank" title="">LED.ino.merged.zip</a> (Size: 186.24 KB / Downloads: 39)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/*<br />
  Made by KinCony IoT: https://www.kincony.com<br />
<br />
  KC868-A128 - 128-channel light show for YouTube Shorts.<br />
<br />
  Effects:<br />
  1. Meteor chase with an 8-channel tail.<br />
  2. Two lights collide and move apart.<br />
  3. Four synchronized chase groups.<br />
  4. Fill and empty all 128 channels.<br />
  5. Odd/even alternation and a flashing finale.<br />
<br />
  Required library:<br />
  PCF8575 by Renzo Mischianti (xreef).<br />
<br />
  I2C SDA: GPIO5<br />
  I2C SCL: GPIO16<br />
<br />
  Outputs are active LOW.<br />
  Use the onboard LEDs or suitable demonstration lights.<br />
  The sequence includes stages with all outputs ON.<br />
*/<br />
<br />
#include &lt;Arduino.h&gt;<br />
#include &lt;Wire.h&gt;<br />
#include &lt;PCF8575.h&gt;<br />
<br />
constexpr int I2C_SDA = 5;<br />
constexpr int I2C_SCL = 16;<br />
<br />
constexpr uint8_t CHIP_COUNT = 8;<br />
constexpr uint8_t PINS_PER_CHIP = 16;<br />
constexpr int CHANNEL_COUNT = 128;<br />
<br />
// Increase this value to slow down every effect.<br />
// Example: 150 means 1.5 times the original duration.<br />
constexpr uint16_t SPEED_PERCENT = 100;<br />
<br />
PCF8575 pcf1(0x24, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf2(0x25, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf3(0x21, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf4(0x22, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf5(0x26, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf6(0x27, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf7(0x20, I2C_SDA, I2C_SCL);<br />
PCF8575 pcf8(0x23, I2C_SDA, I2C_SCL);<br />
<br />
PCF8575* const outputs[] = {<br />
  &amp;pcf1, &amp;pcf2, &amp;pcf3, &amp;pcf4,<br />
  &amp;pcf5, &amp;pcf6, &amp;pcf7, &amp;pcf8<br />
};<br />
<br />
// Store current and requested states to avoid redundant writes.<br />
bool currentState[CHANNEL_COUNT] = {};<br />
bool frame[CHANNEL_COUNT] = {};<br />
<br />
void pauseMs(uint32_t duration) {<br />
  delay(duration * SPEED_PERCENT / 100);<br />
}<br />
<br />
// Channel indexes are 0-127.<br />
void setChannel(int channel, bool on) {<br />
  if (channel &lt; 0 || channel &gt;= CHANNEL_COUNT) {<br />
    return;<br />
  }<br />
<br />
  if (currentState[channel] == on) {<br />
    return;<br />
  }<br />
<br />
  outputs[channel / PINS_PER_CHIP]-&gt;digitalWrite(<br />
    channel % PINS_PER_CHIP,<br />
    on ? LOW : HIGH<br />
  );<br />
<br />
  currentState[channel] = on;<br />
}<br />
<br />
void setAll(bool on) {<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, on);<br />
  }<br />
}<br />
<br />
void clearFrame() {<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    frame[channel] = false;<br />
  }<br />
}<br />
<br />
void addLight(int channel) {<br />
  if (channel &gt;= 0 &amp;&amp; channel &lt; CHANNEL_COUNT) {<br />
    frame[channel] = true;<br />
  }<br />
}<br />
<br />
void showFrame(uint32_t duration) {<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, frame[channel]);<br />
  }<br />
<br />
  pauseMs(duration);<br />
}<br />
<br />
// Move an 8-channel tail in both directions.<br />
void meteorShow() {<br />
  constexpr int TAIL_LENGTH = 8;<br />
<br />
  for (int head = 0;<br />
     &nbsp;&nbsp;head &lt; CHANNEL_COUNT + TAIL_LENGTH;<br />
     &nbsp;&nbsp;head++) {<br />
    clearFrame();<br />
<br />
    for (int tail = 0; tail &lt; TAIL_LENGTH; tail++) {<br />
      addLight(head - tail);<br />
    }<br />
<br />
    showFrame(18);<br />
  }<br />
<br />
  for (int head = CHANNEL_COUNT - 1;<br />
     &nbsp;&nbsp;head &gt;= -TAIL_LENGTH;<br />
     &nbsp;&nbsp;head--) {<br />
    clearFrame();<br />
<br />
    for (int tail = 0; tail &lt; TAIL_LENGTH; tail++) {<br />
      addLight(head + tail);<br />
    }<br />
<br />
    showFrame(14);<br />
  }<br />
}<br />
<br />
// Move two 4-channel beams toward the center and back.<br />
void collisionShow() {<br />
  for (int repeat = 0; repeat &lt; 2; repeat++) {<br />
    for (int position = 0; position &lt; 64; position++) {<br />
      clearFrame();<br />
<br />
      for (int tail = 0; tail &lt; 4; tail++) {<br />
        addLight(position - tail);<br />
        addLight(CHANNEL_COUNT - 1 - position + tail);<br />
      }<br />
<br />
      showFrame(18);<br />
    }<br />
<br />
    for (int position = 63; position &gt;= 0; position--) {<br />
      clearFrame();<br />
<br />
      for (int tail = 0; tail &lt; 4; tail++) {<br />
        addLight(position - tail);<br />
        addLight(CHANNEL_COUNT - 1 - position + tail);<br />
      }<br />
<br />
      showFrame(14);<br />
    }<br />
  }<br />
<br />
  setAll(false);<br />
}<br />
<br />
// Run four independent 32-channel chase groups.<br />
void fourGroupShow() {<br />
  constexpr int GROUP_SIZE = 32;<br />
  constexpr int TAIL_LENGTH = 4;<br />
<br />
  for (int repeat = 0; repeat &lt; 3; repeat++) {<br />
    for (int step = 0; step &lt; GROUP_SIZE; step++) {<br />
      clearFrame();<br />
<br />
      for (int group = 0; group &lt; 4; group++) {<br />
        for (int tail = 0; tail &lt; TAIL_LENGTH; tail++) {<br />
          int local = (step - tail + GROUP_SIZE) % GROUP_SIZE;<br />
<br />
          // Adjacent groups move in opposite directions.<br />
          if (group % 2 == 1) {<br />
            local = GROUP_SIZE - 1 - local;<br />
          }<br />
<br />
          addLight(group * GROUP_SIZE + local);<br />
        }<br />
      }<br />
<br />
      showFrame(35);<br />
    }<br />
  }<br />
<br />
  setAll(false);<br />
}<br />
<br />
// Gradually fill the board, then empty it in the same order.<br />
void fillShow() {<br />
  setAll(false);<br />
<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, true);<br />
    pauseMs(12);<br />
  }<br />
<br />
  pauseMs(350);<br />
<br />
  for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
    setChannel(channel, false);<br />
    pauseMs(9);<br />
  }<br />
<br />
  pauseMs(150);<br />
}<br />
<br />
// Alternate physical channels 1/3/5... and 2/4/6...<br />
void finaleShow() {<br />
  for (int step = 0; step &lt; 8; step++) {<br />
    clearFrame();<br />
<br />
    for (int channel = 0; channel &lt; CHANNEL_COUNT; channel++) {<br />
      if ((channel % 2) == (step % 2)) {<br />
        addLight(channel);<br />
      }<br />
    }<br />
<br />
    showFrame(120);<br />
  }<br />
<br />
  setAll(false);<br />
  pauseMs(150);<br />
<br />
  for (int repeat = 0; repeat &lt; 2; repeat++) {<br />
    setAll(true);<br />
    pauseMs(180);<br />
<br />
    setAll(false);<br />
    pauseMs(180);<br />
  }<br />
}<br />
<br />
void setup() {<br />
  Serial.begin(115200);<br />
<br />
  // Configure every output HIGH before initializing the chips.<br />
  for (uint8_t chip = 0; chip &lt; CHIP_COUNT; chip++) {<br />
    for (uint8_t pin = 0; pin &lt; PINS_PER_CHIP; pin++) {<br />
      outputs[chip]-&gt;pinMode(pin, OUTPUT, HIGH);<br />
    }<br />
  }<br />
<br />
  for (uint8_t chip = 0; chip &lt; CHIP_COUNT; chip++) {<br />
    if (!outputs[chip]-&gt;begin()) {<br />
      Serial.printf("PCF8575 group %u initialization failed.&#92;n",<br />
                    chip + 1);<br />
<br />
      while (true) {<br />
        delay(1000);<br />
      }<br />
    }<br />
  }<br />
<br />
  Serial.println("KC868-A128 light show ready.");<br />
  pauseMs(500);<br />
}<br />
<br />
void loop() {<br />
  meteorShow();<br />
  collisionShow();<br />
  fourGroupShow();<br />
  fillShow();<br />
  finaleShow();<br />
<br />
  setAll(false);<br />
  pauseMs(500);<br />
}</code></div></div> arduino ino file download: <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=10649" target="_blank" title="">LED.zip</a> (Size: 1.95 KB / Downloads: 44)
<!-- end: postbit_attachments_attachment --><br />
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download: <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=10650" target="_blank" title="">LED.ino.merged.zip</a> (Size: 186.24 KB / Downloads: 39)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Arduino IDE demo source code for KC868-A128]--#05--Digital input trigger output]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=9463</link>
			<pubDate>Thu, 11 Jun 2026 13:19:22 +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=9463</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=10025" target="_blank" title="">A128-DI-DO.jpg</a> (Size: 361.83 KB / Downloads: 238)
<!-- end: postbit_attachments_attachment --><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/*<br />
  Made by KinCony IoT: https://www.kincony.com<br />
<br />
  KC868-A128<br />
  DI1 -&gt; DO1<br />
  DI2 -&gt; DO2<br />
  ...<br />
  DI128 -&gt; DO128<br />
<br />
  IIC Bus-A for relay DO:<br />
  SDA = GPIO5<br />
  SCL = GPIO16<br />
<br />
  IIC Bus-B for DI:<br />
  SDA = GPIO15<br />
  SCL = GPIO4<br />
*/<br />
<br />
#include &lt;Arduino.h&gt;<br />
#include &lt;Wire.h&gt;<br />
<br />
#define DO_SDA 5<br />
#define DO_SCL 16<br />
<br />
#define DI_SDA 15<br />
#define DI_SCL 4<br />
<br />
// PCF8575 address order<br />
uint8_t pcfAddr[8] = {<br />
  0x24, 0x25, 0x21, 0x22,<br />
  0x26, 0x27, 0x20, 0x23<br />
};<br />
<br />
// relay output state<br />
// PCF8575: 1 = OFF, 0 = ON<br />
uint16_t relayState[8];<br />
<br />
uint16_t readPCF8575(TwoWire &amp;wireBus, uint8_t addr) {<br />
  wireBus.requestFrom(addr, (uint8_t)2);<br />
<br />
  if (wireBus.available() &lt; 2) {<br />
    return 0xFFFF;<br />
  }<br />
<br />
  uint8_t lowByte = wireBus.read();<br />
  uint8_t highByte = wireBus.read();<br />
<br />
  return ((uint16_t)highByte &lt;&lt; 8) | lowByte;<br />
}<br />
<br />
void writePCF8575(TwoWire &amp;wireBus, uint8_t addr, uint16_t value) {<br />
  wireBus.beginTransmission(addr);<br />
  wireBus.write(value &amp; 0xFF);<br />
  wireBus.write((value &gt;&gt; 8) &amp; 0xFF);<br />
  wireBus.endTransmission();<br />
}<br />
<br />
void setup() {<br />
  Serial.begin(115200);<br />
  delay(1000);<br />
<br />
  Wire.begin(DO_SDA, DO_SCL);      // IIC Bus-A, relay<br />
  Wire1.begin(DI_SDA, DI_SCL);   &nbsp;&nbsp;// IIC Bus-B, digital input<br />
<br />
  // Init all relays OFF<br />
  for (int i = 0; i &lt; 8; i++) {<br />
    relayState[i] = 0xFFFF;<br />
    writePCF8575(Wire, pcfAddr[i], relayState[i]);<br />
  }<br />
<br />
  Serial.println("KC868-A128 DI trigger DO ready.");<br />
}<br />
<br />
void loop() {<br />
  for (int board = 0; board &lt; 8; board++) {<br />
    uint16_t inputState = readPCF8575(Wire1, pcfAddr[board]);<br />
<br />
    // DI low active<br />
    // DI = 0 -&gt; relay ON<br />
    // DI = 1 -&gt; relay OFF<br />
    relayState[board] = inputState;<br />
<br />
    writePCF8575(Wire, pcfAddr[board], relayState[board]);<br />
  }<br />
<br />
  delay(50);<br />
}</code></div></div> BIN file, download to ESP32 by 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=10026" target="_blank" title="">input-trigger-output.ino.merged.zip</a> (Size: 183.82 KB / Downloads: 334)
<!-- 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=10025" target="_blank" title="">A128-DI-DO.jpg</a> (Size: 361.83 KB / Downloads: 238)
<!-- end: postbit_attachments_attachment --><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/*<br />
  Made by KinCony IoT: https://www.kincony.com<br />
<br />
  KC868-A128<br />
  DI1 -&gt; DO1<br />
  DI2 -&gt; DO2<br />
  ...<br />
  DI128 -&gt; DO128<br />
<br />
  IIC Bus-A for relay DO:<br />
  SDA = GPIO5<br />
  SCL = GPIO16<br />
<br />
  IIC Bus-B for DI:<br />
  SDA = GPIO15<br />
  SCL = GPIO4<br />
*/<br />
<br />
#include &lt;Arduino.h&gt;<br />
#include &lt;Wire.h&gt;<br />
<br />
#define DO_SDA 5<br />
#define DO_SCL 16<br />
<br />
#define DI_SDA 15<br />
#define DI_SCL 4<br />
<br />
// PCF8575 address order<br />
uint8_t pcfAddr[8] = {<br />
  0x24, 0x25, 0x21, 0x22,<br />
  0x26, 0x27, 0x20, 0x23<br />
};<br />
<br />
// relay output state<br />
// PCF8575: 1 = OFF, 0 = ON<br />
uint16_t relayState[8];<br />
<br />
uint16_t readPCF8575(TwoWire &amp;wireBus, uint8_t addr) {<br />
  wireBus.requestFrom(addr, (uint8_t)2);<br />
<br />
  if (wireBus.available() &lt; 2) {<br />
    return 0xFFFF;<br />
  }<br />
<br />
  uint8_t lowByte = wireBus.read();<br />
  uint8_t highByte = wireBus.read();<br />
<br />
  return ((uint16_t)highByte &lt;&lt; 8) | lowByte;<br />
}<br />
<br />
void writePCF8575(TwoWire &amp;wireBus, uint8_t addr, uint16_t value) {<br />
  wireBus.beginTransmission(addr);<br />
  wireBus.write(value &amp; 0xFF);<br />
  wireBus.write((value &gt;&gt; 8) &amp; 0xFF);<br />
  wireBus.endTransmission();<br />
}<br />
<br />
void setup() {<br />
  Serial.begin(115200);<br />
  delay(1000);<br />
<br />
  Wire.begin(DO_SDA, DO_SCL);      // IIC Bus-A, relay<br />
  Wire1.begin(DI_SDA, DI_SCL);   &nbsp;&nbsp;// IIC Bus-B, digital input<br />
<br />
  // Init all relays OFF<br />
  for (int i = 0; i &lt; 8; i++) {<br />
    relayState[i] = 0xFFFF;<br />
    writePCF8575(Wire, pcfAddr[i], relayState[i]);<br />
  }<br />
<br />
  Serial.println("KC868-A128 DI trigger DO ready.");<br />
}<br />
<br />
void loop() {<br />
  for (int board = 0; board &lt; 8; board++) {<br />
    uint16_t inputState = readPCF8575(Wire1, pcfAddr[board]);<br />
<br />
    // DI low active<br />
    // DI = 0 -&gt; relay ON<br />
    // DI = 1 -&gt; relay OFF<br />
    relayState[board] = inputState;<br />
<br />
    writePCF8575(Wire, pcfAddr[board], relayState[board]);<br />
  }<br />
<br />
  delay(50);<br />
}</code></div></div> BIN file, download to ESP32 by 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=10026" target="_blank" title="">input-trigger-output.ino.merged.zip</a> (Size: 183.82 KB / Downloads: 334)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[How to enable 2 IIC buses at the same time?]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=9459</link>
			<pubDate>Thu, 11 Jun 2026 10:54:15 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=10998">ronpsc</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=9459</guid>
			<description><![CDATA[Dear Sir,<br />
<br />
May I know how to enable both IIC buses for DI and DO at the same time for KC868-A128 in Arduino IDE?<br />
I can only enable one each time, so that I cannot program the board to trigger outputs when inputs changed.<br />
<br />
Thanks,<br />
<br />
Ron]]></description>
			<content:encoded><![CDATA[Dear Sir,<br />
<br />
May I know how to enable both IIC buses for DI and DO at the same time for KC868-A128 in Arduino IDE?<br />
I can only enable one each time, so that I cannot program the board to trigger outputs when inputs changed.<br />
<br />
Thanks,<br />
<br />
Ron]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Enable 2 I2C buses at the same time]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=9458</link>
			<pubDate>Thu, 11 Jun 2026 10:49:04 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=10998">ronpsc</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=9458</guid>
			<description><![CDATA[Dear Sir,<br />
<br />
I would like to know how to enable both buses for DI and DO in Arduino IDE of KC868-A128 at the same time?<br />
I can only enable one bus each time, so I cannot program the board to trigger the output when input changed.<br />
<br />
Thanks,<br />
<br />
Ron]]></description>
			<content:encoded><![CDATA[Dear Sir,<br />
<br />
I would like to know how to enable both buses for DI and DO in Arduino IDE of KC868-A128 at the same time?<br />
I can only enable one bus each time, so I cannot program the board to trigger the output when input changed.<br />
<br />
Thanks,<br />
<br />
Ron]]></content:encoded>
		</item>
		<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: 673)
<!-- 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: 765)
<!-- 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: 415)
<!-- 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: 743)
<!-- 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: 673)
<!-- 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: 765)
<!-- 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: 415)
<!-- 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: 743)
<!-- 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: 520)
<!-- 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: 501)
<!-- 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: 453)
<!-- 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: 520)
<!-- 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: 501)
<!-- 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: 453)
<!-- 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: 334)
<!-- 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: 334)
<!-- 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: 1050)
<!-- 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: 1050)
<!-- 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: 1123)
<!-- 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: 1123)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
	</channel>
</rss>