<?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 - Getting Started with ESPHome and Home Assistant]]></title>
		<link>https://www.kincony.com/forum/</link>
		<description><![CDATA[Smart Home Automation Forum - https://www.kincony.com/forum]]></description>
		<pubDate>Thu, 09 Apr 2026 06:10:34 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Instal ESP HA with ethernet]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=9203</link>
			<pubDate>Fri, 03 Apr 2026 04:20:07 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=7115">kulibin</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=9203</guid>
			<description><![CDATA[Good day .<br />
 I have module ESP32 B24 with ethernet port. <br />
How I can install ESP HA ? <br />
Thanks]]></description>
			<content:encoded><![CDATA[Good day .<br />
 I have module ESP32 B24 with ethernet port. <br />
How I can install ESP HA ? <br />
Thanks]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[AS-ESP32-S3 won't initialize]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=9143</link>
			<pubDate>Fri, 20 Mar 2026 02:49:56 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=10592">scottq</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=9143</guid>
			<description><![CDATA[I just purchased a AS-ESP32-S3 device to act as a voice assistant for my Home Assistant. When I received the unit, something inside it was rattling around loosely - like something had broken inside. Not sure if that's ultimately important or not. <br />
<br />
When I plugged the device into the HA server, all of the lights turned blue and a tone built up in about 3 steps to a steady tone. The tone continued without stopping for as long as I had the device plugged it (up to 15 minutes, when I unplugged it). It doesn't seem to me that it was flashed with any new firmware as described in this YouTube video: <a href="https://www.youtube.com/watch?v=g-KsrZjFljY" target="_blank" rel="noopener" class="mycode_url">https://www.youtube.com/watch?v=g-KsrZjFljY</a><br />
<br />
While the tone was sounding, I did try to configure the device in my home assistant. I selected "Add Device", saw ESPHome and selected it, and was presented with a modal asking for the host ip address, which I provided. I got a "Unable to connect to the ESPHome device. Make sure the device's YAML configuration includes an 'api' section." as shown in the attached screenshot. I have no way to access any YAML that the device might be using since I can't access the device and can't do anything with it in Home Assistant.<br />
<br />
What do I do to get this thing working?<br />
<br />
Scott<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=9368" target="_blank" title="">ESPHome_add_device.png</a> (Size: 19.97 KB / Downloads: 82)
<!-- 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=9369" target="_blank" title="">ESPHome_unable_to_connect.png</a> (Size: 33.32 KB / Downloads: 82)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=9370" target="_blank" title="">IMG_4911.JPG</a> (Size: 3.77 MB / Downloads: 74)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[I just purchased a AS-ESP32-S3 device to act as a voice assistant for my Home Assistant. When I received the unit, something inside it was rattling around loosely - like something had broken inside. Not sure if that's ultimately important or not. <br />
<br />
When I plugged the device into the HA server, all of the lights turned blue and a tone built up in about 3 steps to a steady tone. The tone continued without stopping for as long as I had the device plugged it (up to 15 minutes, when I unplugged it). It doesn't seem to me that it was flashed with any new firmware as described in this YouTube video: <a href="https://www.youtube.com/watch?v=g-KsrZjFljY" target="_blank" rel="noopener" class="mycode_url">https://www.youtube.com/watch?v=g-KsrZjFljY</a><br />
<br />
While the tone was sounding, I did try to configure the device in my home assistant. I selected "Add Device", saw ESPHome and selected it, and was presented with a modal asking for the host ip address, which I provided. I got a "Unable to connect to the ESPHome device. Make sure the device's YAML configuration includes an 'api' section." as shown in the attached screenshot. I have no way to access any YAML that the device might be using since I can't access the device and can't do anything with it in Home Assistant.<br />
<br />
What do I do to get this thing working?<br />
<br />
Scott<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=9368" target="_blank" title="">ESPHome_add_device.png</a> (Size: 19.97 KB / Downloads: 82)
<!-- 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=9369" target="_blank" title="">ESPHome_unable_to_connect.png</a> (Size: 33.32 KB / Downloads: 82)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=9370" target="_blank" title="">IMG_4911.JPG</a> (Size: 3.77 MB / Downloads: 74)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Device change after damage]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=9105</link>
			<pubDate>Fri, 06 Mar 2026 05:09:34 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=10520">OhnsorgeSebastian</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=9105</guid>
			<description><![CDATA[Hi all. I have a question. I am using a B24M configured as MQTT with Home Assistant. After it was damaged, I bought a new device. How can I replace the device while keeping the existing integrations (so that a new device is not created, but it replaces the damaged one)?  From what I see, the device is identified using a UID in the MQTT broker, so I guess I would need to somehow replace that.]]></description>
			<content:encoded><![CDATA[Hi all. I have a question. I am using a B24M configured as MQTT with Home Assistant. After it was damaged, I bought a new device. How can I replace the device while keeping the existing integrations (so that a new device is not created, but it replaces the damaged one)?  From what I see, the device is identified using a UID in the MQTT broker, so I guess I would need to somehow replace that.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[TA with Home Assistant with Ethernet Only]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=8981</link>
			<pubDate>Tue, 03 Feb 2026 06:54:07 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=10350">upstream</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=8981</guid>
			<description><![CDATA[How do I get the Tiny Alarm System (TA) to work with Home Assistant?<br />
<br />
The yaml example at this <a href="https://www.kincony.com/forum/showthread.php?tid=7897" target="_blank" rel="noopener" class="mycode_url">post</a> is set to use wifi. I want to use ethernet / poe only.<br />
<br />
However, if I remove the wifi components, this line: <br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">platform</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">tuya_wifi_mcu&nbsp;<br /></span></code></div></div></div><br />
is located all over the place.<br />
<br />
Does anyone have a complete yaml example without any wifi (ethernet only)?]]></description>
			<content:encoded><![CDATA[How do I get the Tiny Alarm System (TA) to work with Home Assistant?<br />
<br />
The yaml example at this <a href="https://www.kincony.com/forum/showthread.php?tid=7897" target="_blank" rel="noopener" class="mycode_url">post</a> is set to use wifi. I want to use ethernet / poe only.<br />
<br />
However, if I remove the wifi components, this line: <br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">-&nbsp;</span><span style="color: #0000BB">platform</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">tuya_wifi_mcu&nbsp;<br /></span></code></div></div></div><br />
is located all over the place.<br />
<br />
Does anyone have a complete yaml example without any wifi (ethernet only)?]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Kincony KC868-A4  flashen   not work]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=8749</link>
			<pubDate>Wed, 19 Nov 2025 15:35:43 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=9873">jurgen2003</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=8749</guid>
			<description><![CDATA[Beste forum, <br />
ik heb twee Kincony KC 868 A-serie IO-boards, één A4 die werkt met ESP Home en Home Assistant, maar de andere A4 ESP kan niet worden aangesloten. Het verbindingsboard is aangesloten via USB en blijft laden, het board schakelt relais en de zoemer om zonder resultaat. Moet dit board in de flashmodus worden gezet? Zo ja, hoe werkt dat?<br />
groet jurgen]]></description>
			<content:encoded><![CDATA[Beste forum, <br />
ik heb twee Kincony KC 868 A-serie IO-boards, één A4 die werkt met ESP Home en Home Assistant, maar de andere A4 ESP kan niet worden aangesloten. Het verbindingsboard is aangesloten via USB en blijft laden, het board schakelt relais en de zoemer om zonder resultaat. Moet dit board in de flashmodus worden gezet? Zo ja, hoe werkt dat?<br />
groet jurgen]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Operating WLAN and Ethernet together]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=8520</link>
			<pubDate>Wed, 10 Sep 2025 15:53:16 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=9271">JuDie07</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=8520</guid>
			<description><![CDATA[<img src="https://www.kincony.com/forum/images/smilies/confused.png" alt="Confused" title="Confused" class="smilie smilie_13" />  When I enter WLAN and Ethernet together in ESPHome, I get the following error message:<br />
<br />
Can you please provide a code example?<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=8313" target="_blank" title="">KC868-04.png</a> (Size: 29.37 KB / Downloads: 221)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<img src="https://www.kincony.com/forum/images/smilies/confused.png" alt="Confused" title="Confused" class="smilie smilie_13" />  When I enter WLAN and Ethernet together in ESPHome, I get the following error message:<br />
<br />
Can you please provide a code example?<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=8313" target="_blank" title="">KC868-04.png</a> (Size: 29.37 KB / Downloads: 221)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Esphome + KC868-HA-V21]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=8445</link>
			<pubDate>Wed, 13 Aug 2025 16:45:42 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=9282">duranduy</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=8445</guid>
			<description><![CDATA[Hello, friends. Thank you so much for your products—I’ve been using them with great pleasure. However, I’ve encountered an issue while trying to set up your KC868-HAv21 RS485.<br />
<br />
I connected it via RS485 to the KC868-A2, using the ESPHOME firmware. I added your component from GitHub, and the settings on the HAv2 are factory defaults. Controlling the digital outputs (D1-D6) works fine, but when it comes to changes in the state of the digital inputs, the ESPHome logs only show the following messages:<br />
<br />
text<br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=1<br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=2 <br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=3 <br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=4 <br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=5 <br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=6 <br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=7 <br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=8  <br />
found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=1 (also bind output 1-8)  <br />
What am I doing wrong? Could it be due to incorrect bind_output parameters? If so, which numbers should I specify?<br />
<br />
I took the binary_sensor configuration from your GitHub and followed the instructions from your YouTube channel exactly. Thanks for your help!]]></description>
			<content:encoded><![CDATA[Hello, friends. Thank you so much for your products—I’ve been using them with great pleasure. However, I’ve encountered an issue while trying to set up your KC868-HAv21 RS485.<br />
<br />
I connected it via RS485 to the KC868-A2, using the ESPHOME firmware. I added your component from GitHub, and the settings on the HAv2 are factory defaults. Controlling the digital outputs (D1-D6) works fine, but when it comes to changes in the state of the digital inputs, the ESPHome logs only show the following messages:<br />
<br />
text<br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=1<br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=2 <br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=3 <br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=4 <br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=5 <br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=6 <br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=7 <br />
dump kc868_ha config, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=8  <br />
found a kc868_ha board, target_relay_controller_addr=1, switch_adapter_addr=10, bind_output=1 (also bind output 1-8)  <br />
What am I doing wrong? Could it be due to incorrect bind_output parameters? If so, which numbers should I specify?<br />
<br />
I took the binary_sensor configuration from your GitHub and followed the instructions from your YouTube channel exactly. Thanks for your help!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Need help choosing modules for 32-channel lighting control with Home Assistant]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=8280</link>
			<pubDate>Mon, 30 Jun 2025 20:23:40 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=8984">Karlis_LV</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=8280</guid>
			<description><![CDATA[Hello everyone,<br />
I'm new to KinCony and Home Assistant. I would really appreciate your help.<br />
I want to control my house lighting using <span style="font-weight: bold;" class="mycode_b">Home Assistant</span>, and I need to manage <span style="font-weight: bold;" class="mycode_b">32+ channels</span>. I’m looking for a solution with the <span style="font-weight: bold;" class="mycode_b">best price/performance</span>.<br />
<span style="font-weight: bold;" class="mycode_b">Important:</span><ul class="mycode_list"><li>I am <span style="font-weight: bold;" class="mycode_b">not a programmer</span>, so I need a system that works <span style="font-weight: bold;" class="mycode_b">without writing code</span>, just ready firmware like <span style="font-weight: bold;" class="mycode_b">ESPHome</span> or KinCony’s firmware.<br />
</li>
<li>I <span style="font-weight: bold;" class="mycode_b">really like KinCony devices</span>, but unfortunately I can't find <span style="font-weight: bold;" class="mycode_b">compact and complete information</span> in one place that explains how to set up a <span style="font-weight: bold;" class="mycode_b">simple lighting project</span> using a few modules.<br />
</li>
<li>I prefer using <span style="font-weight: bold;" class="mycode_b">I/O extenders</span> (relay modules) that come in a <span style="font-weight: bold;" class="mycode_b">solid metal case</span> or at least with <span style="font-weight: bold;" class="mycode_b">mechanical protection</span>, not open PCB boards.<br />
</li>
</ul>
Could you please help me with:<br />
<ol type="1" class="mycode_list"><li>Which modules do I need to build a 32+ channel Home Assistant lighting control system?<br />
</li>
<li>Is there a <span style="font-weight: bold;" class="mycode_b">video or full guide</span> that shows everything: connection, flashing (if needed), and control via Home Assistant?<br />
</li>
<li>Can this setup work <span style="font-weight: bold;" class="mycode_b">without programming knowledge</span>?<br />
</li>
<li>What is the <span style="font-weight: bold;" class="mycode_b">best I/O expander module</span> with relays that includes a <span style="font-weight: bold;" class="mycode_b">metal or protected enclosure</span>?<br />
</li>
<li>Can the system run only on <span style="font-weight: bold;" class="mycode_b">Server16 with CM4 + some simple extender relay board</span>?<br />
</li>
</ol>
I want to build a <span style="font-weight: bold;" class="mycode_b">clean and reliable lighting automation system</span> with good enclosure protection and Home Assistant support.<br />
Thank you very much for your help!]]></description>
			<content:encoded><![CDATA[Hello everyone,<br />
I'm new to KinCony and Home Assistant. I would really appreciate your help.<br />
I want to control my house lighting using <span style="font-weight: bold;" class="mycode_b">Home Assistant</span>, and I need to manage <span style="font-weight: bold;" class="mycode_b">32+ channels</span>. I’m looking for a solution with the <span style="font-weight: bold;" class="mycode_b">best price/performance</span>.<br />
<span style="font-weight: bold;" class="mycode_b">Important:</span><ul class="mycode_list"><li>I am <span style="font-weight: bold;" class="mycode_b">not a programmer</span>, so I need a system that works <span style="font-weight: bold;" class="mycode_b">without writing code</span>, just ready firmware like <span style="font-weight: bold;" class="mycode_b">ESPHome</span> or KinCony’s firmware.<br />
</li>
<li>I <span style="font-weight: bold;" class="mycode_b">really like KinCony devices</span>, but unfortunately I can't find <span style="font-weight: bold;" class="mycode_b">compact and complete information</span> in one place that explains how to set up a <span style="font-weight: bold;" class="mycode_b">simple lighting project</span> using a few modules.<br />
</li>
<li>I prefer using <span style="font-weight: bold;" class="mycode_b">I/O extenders</span> (relay modules) that come in a <span style="font-weight: bold;" class="mycode_b">solid metal case</span> or at least with <span style="font-weight: bold;" class="mycode_b">mechanical protection</span>, not open PCB boards.<br />
</li>
</ul>
Could you please help me with:<br />
<ol type="1" class="mycode_list"><li>Which modules do I need to build a 32+ channel Home Assistant lighting control system?<br />
</li>
<li>Is there a <span style="font-weight: bold;" class="mycode_b">video or full guide</span> that shows everything: connection, flashing (if needed), and control via Home Assistant?<br />
</li>
<li>Can this setup work <span style="font-weight: bold;" class="mycode_b">without programming knowledge</span>?<br />
</li>
<li>What is the <span style="font-weight: bold;" class="mycode_b">best I/O expander module</span> with relays that includes a <span style="font-weight: bold;" class="mycode_b">metal or protected enclosure</span>?<br />
</li>
<li>Can the system run only on <span style="font-weight: bold;" class="mycode_b">Server16 with CM4 + some simple extender relay board</span>?<br />
</li>
</ol>
I want to build a <span style="font-weight: bold;" class="mycode_b">clean and reliable lighting automation system</span> with good enclosure protection and Home Assistant support.<br />
Thank you very much for your help!]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[B16M Outputs & HomeAssistant Firmware]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=7861</link>
			<pubDate>Sun, 23 Mar 2025 11:06:47 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=8241">akat</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=7861</guid>
			<description><![CDATA[Hi all,<br />
 I've recently deployed a Kincony B16M and flashed it with the stock kincony-b16m.yaml config. <br />
<br />
I’m using the digital outputs to control HF41F relays mounted on 41F-1Z-C2-1 boards.<br />
Each relay coil is connected with a 1N4007 flyback diode across A1 and A2. Wiring is as follows:<br />
<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">+12V DC</span> to A1<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">1N4007</span> across A1 and A2 (cathode on A1)<br />
</li>
<li>A2 wired to <span style="font-weight: bold;" class="mycode_b">DO1</span><br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">DC port</span> connected to -12V (to complete the circuit)<br />
</li>
</ul>
<br />
The issue:<br />
When the B16M boots, <span style="font-weight: bold;" class="mycode_b">DO1 immediately energizes the relay</span>, even though in the WebUI the output appears <span style="font-weight: bold;" class="mycode_b">OFF</span>. Toggling DO1 via the WebUI has no effect on the relay—it remains stuck on. I’ve tried both <br />
<br />
 inverted: true <br />
<br />
inverted: false in the YAML under  b16m-output01, but neither changes the behavior.<br />
<br />
Here's the relevant YAML snippet:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>switch:<br />
  - platform: gpio<br />
    name: "b16m-output01"<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true</code></div></div>At this point I’m trying to determine whether I’m dealing with a hardware issue or if there’s a nuance with the output logic I’ve missed. Any insights would be appreciated.<br />
Thanks in advance.]]></description>
			<content:encoded><![CDATA[Hi all,<br />
 I've recently deployed a Kincony B16M and flashed it with the stock kincony-b16m.yaml config. <br />
<br />
I’m using the digital outputs to control HF41F relays mounted on 41F-1Z-C2-1 boards.<br />
Each relay coil is connected with a 1N4007 flyback diode across A1 and A2. Wiring is as follows:<br />
<ul class="mycode_list"><li><span style="font-weight: bold;" class="mycode_b">+12V DC</span> to A1<br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">1N4007</span> across A1 and A2 (cathode on A1)<br />
</li>
<li>A2 wired to <span style="font-weight: bold;" class="mycode_b">DO1</span><br />
</li>
<li><span style="font-weight: bold;" class="mycode_b">DC port</span> connected to -12V (to complete the circuit)<br />
</li>
</ul>
<br />
The issue:<br />
When the B16M boots, <span style="font-weight: bold;" class="mycode_b">DO1 immediately energizes the relay</span>, even though in the WebUI the output appears <span style="font-weight: bold;" class="mycode_b">OFF</span>. Toggling DO1 via the WebUI has no effect on the relay—it remains stuck on. I’ve tried both <br />
<br />
 inverted: true <br />
<br />
inverted: false in the YAML under  b16m-output01, but neither changes the behavior.<br />
<br />
Here's the relevant YAML snippet:<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>switch:<br />
  - platform: gpio<br />
    name: "b16m-output01"<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true</code></div></div>At this point I’m trying to determine whether I’m dealing with a hardware issue or if there’s a nuance with the output logic I’ve missed. Any insights would be appreciated.<br />
Thanks in advance.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Water supply automation]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=7641</link>
			<pubDate>Tue, 18 Feb 2025 14:23:57 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=7748">korvin</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=7641</guid>
			<description><![CDATA[Do you have or can suggest any devices for water supply automation with Home Assistant support?<br />
<br />
I wonder if these can work<br />
<a href="https://vi.aliexpress.com/item/1005005837609233.html" target="_blank" rel="noopener" class="mycode_url">https://vi.aliexpress.com/item/1005005837609233.html</a><br />
<a href="https://vi.aliexpress.com/item/1005008250776238.html" target="_blank" rel="noopener" class="mycode_url">https://vi.aliexpress.com/item/1005008250776238.html</a><br />
<br />
But if you have something or maybe your partners have, I'd like to buy]]></description>
			<content:encoded><![CDATA[Do you have or can suggest any devices for water supply automation with Home Assistant support?<br />
<br />
I wonder if these can work<br />
<a href="https://vi.aliexpress.com/item/1005005837609233.html" target="_blank" rel="noopener" class="mycode_url">https://vi.aliexpress.com/item/1005005837609233.html</a><br />
<a href="https://vi.aliexpress.com/item/1005008250776238.html" target="_blank" rel="noopener" class="mycode_url">https://vi.aliexpress.com/item/1005008250776238.html</a><br />
<br />
But if you have something or maybe your partners have, I'd like to buy]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Error: Installing ESPHome on Windows without Home Assistant/Rasberry Pi]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=7185</link>
			<pubDate>Fri, 06 Dec 2024 20:36:12 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=6825">OrenaikeJ</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=7185</guid>
			<description><![CDATA[When I attempted to install ESPHome on Windows PC without Home Assistant &amp; Rasberry Pi, on my Laptop, following your Youtube Instructional Guide, I got the error mesages seen in the attachment. Kindly assist me to successfully install the ESPHome on Windows without Home Assistant &amp; Rasberry Pi.<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=6603" target="_blank" title="">ESPHome Installation on Windows Error Message.PNG</a> (Size: 80.6 KB / Downloads: 538)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[When I attempted to install ESPHome on Windows PC without Home Assistant &amp; Rasberry Pi, on my Laptop, following your Youtube Instructional Guide, I got the error mesages seen in the attachment. Kindly assist me to successfully install the ESPHome on Windows without Home Assistant &amp; Rasberry Pi.<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=6603" target="_blank" title="">ESPHome Installation on Windows Error Message.PNG</a> (Size: 80.6 KB / Downloads: 538)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Retain Switch status ESPHome after reboot and update / Ethernet setup]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=6869</link>
			<pubDate>Sun, 13 Oct 2024 18:15:57 +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=6869</guid>
			<description><![CDATA[Hi  <br />
<br />
if i update the boards A64 / A128 the outputs does not retain their status so if i have switch-1 on and reboot the switch-1 goes off<br />
<br />
<br />
<br />
<br />
i run ESPHome true Home Assistant and run the automations true node-red is there a possibility to have it retain the previous state before reboot or update<br />
<br />
<br />
<br />
Also i want to use my ethernet but it wont connect <br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>esphome:<br />
  name: kincony-kc868-a64-rk<br />
  friendly_name: Kincony KC868-A64-RK<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 />
  encryption:<br />
    key: "xxxx"<br />
<br />
ota:<br />
  password: "xxx"<br />
  platform: esphome<br />
<br />
#wifi:<br />
#  ssid: !secret wifi_ssid<br />
#  password: !secret wifi_password<br />
<br />
#  # Enable fallback hotspot (captive portal) in case wifi connection fails<br />
#  ap:<br />
#    ssid: "Kincony-Kc868-A64-Rk"<br />
#    password: !secret wifi_ap<br />
<br />
#captive_portal:<br />
<br />
<br />
<br />
<br />
# Example configuration entry<br />
i2c:<br />
  - id: bus_a<br />
    sda: 5<br />
    scl: 16<br />
    scan: true<br />
    frequency: 400kHz<br />
  - id: bus_b<br />
    sda: 15<br />
    scl: 4<br />
    scan: true<br />
    frequency: 400kHz<br />
 &nbsp;&nbsp;<br />
<br />
# Example configuration entry<br />
ethernet:<br />
  type: LAN8720<br />
  mdc_pin: GPIO23<br />
  mdio_pin: GPIO18<br />
  clk_mode: GPIO17_OUT<br />
  phy_addr: 0<br />
<br />
  # Optional manual IP<br />
  manual_ip:<br />
    static_ip: 20.20.20.192<br />
    gateway: 20.20.20.1<br />
    subnet: 255.255.255.0</code></div></div><br />
<br />
<br />
Thanks in advance<br />
Sijmen]]></description>
			<content:encoded><![CDATA[Hi  <br />
<br />
if i update the boards A64 / A128 the outputs does not retain their status so if i have switch-1 on and reboot the switch-1 goes off<br />
<br />
<br />
<br />
<br />
i run ESPHome true Home Assistant and run the automations true node-red is there a possibility to have it retain the previous state before reboot or update<br />
<br />
<br />
<br />
Also i want to use my ethernet but it wont connect <br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>esphome:<br />
  name: kincony-kc868-a64-rk<br />
  friendly_name: Kincony KC868-A64-RK<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 />
  encryption:<br />
    key: "xxxx"<br />
<br />
ota:<br />
  password: "xxx"<br />
  platform: esphome<br />
<br />
#wifi:<br />
#  ssid: !secret wifi_ssid<br />
#  password: !secret wifi_password<br />
<br />
#  # Enable fallback hotspot (captive portal) in case wifi connection fails<br />
#  ap:<br />
#    ssid: "Kincony-Kc868-A64-Rk"<br />
#    password: !secret wifi_ap<br />
<br />
#captive_portal:<br />
<br />
<br />
<br />
<br />
# Example configuration entry<br />
i2c:<br />
  - id: bus_a<br />
    sda: 5<br />
    scl: 16<br />
    scan: true<br />
    frequency: 400kHz<br />
  - id: bus_b<br />
    sda: 15<br />
    scl: 4<br />
    scan: true<br />
    frequency: 400kHz<br />
 &nbsp;&nbsp;<br />
<br />
# Example configuration entry<br />
ethernet:<br />
  type: LAN8720<br />
  mdc_pin: GPIO23<br />
  mdio_pin: GPIO18<br />
  clk_mode: GPIO17_OUT<br />
  phy_addr: 0<br />
<br />
  # Optional manual IP<br />
  manual_ip:<br />
    static_ip: 20.20.20.192<br />
    gateway: 20.20.20.1<br />
    subnet: 255.255.255.0</code></div></div><br />
<br />
<br />
Thanks in advance<br />
Sijmen]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[ESPHome PCF8575 and XL9535 yaml format define updated]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=6776</link>
			<pubDate>Wed, 25 Sep 2024 08:54: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=6776</guid>
			<description><![CDATA[if using PCF8575 , the pin number will begin 0-7 and 8-15<br />
if using XL9535 , the pin number will begin 0-7 and 10-17]]></description>
			<content:encoded><![CDATA[if using PCF8575 , the pin number will begin 0-7 and 8-15<br />
if using XL9535 , the pin number will begin 0-7 and 10-17]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[how to turn on relay by SIM7600E 4G module voice call in ESPHome]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=6763</link>
			<pubDate>Mon, 23 Sep 2024 10:08:18 +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=6763</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=6091" target="_blank" title="">A2-SIM7600-Call-Relay-2.jpg</a> (Size: 367.1 KB / Downloads: 716)
<!-- 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=6092" target="_blank" title="">A2-SIM7600-Call-Relay.png</a> (Size: 83.57 KB / Downloads: 713)
<!-- end: postbit_attachments_attachment --><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>esphome:<br />
  name: a2<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 />
  encryption:<br />
    key: "YnmQggQsfd7jvFefoMqNCpBtb63RXtotS+mSBQVIhY8="<br />
<br />
# Example configuration entry<br />
ethernet:<br />
  type: LAN8720<br />
  mdc_pin: GPIO23<br />
  mdio_pin: GPIO18<br />
  clk_mode: GPIO17_OUT<br />
  phy_addr: 0<br />
<br />
switch:<br />
  - platform: gpio<br />
    name: "a2-light1"<br />
    pin: 15<br />
    inverted: False<br />
    id: relay_1  # Assign ID to relay 1<br />
<br />
  - platform: gpio<br />
    name: "a2-light2"<br />
    pin: 2<br />
    inverted: False<br />
<br />
binary_sensor:<br />
  - platform: gpio<br />
    name: "a2-input1"<br />
    pin: <br />
      number: 36<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a2-input2"<br />
    pin:<br />
      number: 39<br />
      inverted: true<br />
<br />
web_server:<br />
  port: 80<br />
<br />
# UART configuration for SIM7600E<br />
uart:<br />
  id: uart_2<br />
  tx_pin: GPIO5<br />
  rx_pin: GPIO13<br />
  baud_rate: 115200<br />
<br />
interval:<br />
  - interval: 200ms  # Shorten the interval to reduce blocking time<br />
    then:<br />
      - lambda: |-<br />
          static std::string uart_buffer;<br />
          uint8_t c;<br />
          int count = 0;<br />
          const int max_reads = 10;  // Limit the number of bytes read per interval<br />
<br />
          while (id(uart_2).available() &amp;&amp; count &lt; max_reads) {<br />
            if (id(uart_2).read_byte(&amp;c)) {<br />
              uart_buffer += (char)c;<br />
              count++;<br />
<br />
              // Log each received character (optional for debugging)<br />
              ESP_LOGD("UART", "Received: %c", (char)c);<br />
<br />
              // Check if we have received the "RING" signal<br />
              if (uart_buffer.find("RING") != std::string::npos) {<br />
                ESP_LOGI("SIM7600", "Incoming call detected, turning on relay 1.");<br />
                id(relay_1).turn_on();  // Turn on relay 1<br />
                uart_buffer.clear();  // Clear the buffer after processing<br />
              }<br />
<br />
              // Clear the buffer if it gets too large<br />
              if (uart_buffer.length() &gt; 100) {<br />
                uart_buffer.clear();<br />
              }<br />
            }<br />
          }</code></div></div>ESPHome yaml file for KC868-A2 board download: <!-- 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=6093" target="_blank" title="">A2-yaml-sim7600-call-relay.txt</a> (Size: 2.02 KB / Downloads: 373)
<!-- 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=6091" target="_blank" title="">A2-SIM7600-Call-Relay-2.jpg</a> (Size: 367.1 KB / Downloads: 716)
<!-- 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=6092" target="_blank" title="">A2-SIM7600-Call-Relay.png</a> (Size: 83.57 KB / Downloads: 713)
<!-- end: postbit_attachments_attachment --><br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>esphome:<br />
  name: a2<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 />
  encryption:<br />
    key: "YnmQggQsfd7jvFefoMqNCpBtb63RXtotS+mSBQVIhY8="<br />
<br />
# Example configuration entry<br />
ethernet:<br />
  type: LAN8720<br />
  mdc_pin: GPIO23<br />
  mdio_pin: GPIO18<br />
  clk_mode: GPIO17_OUT<br />
  phy_addr: 0<br />
<br />
switch:<br />
  - platform: gpio<br />
    name: "a2-light1"<br />
    pin: 15<br />
    inverted: False<br />
    id: relay_1  # Assign ID to relay 1<br />
<br />
  - platform: gpio<br />
    name: "a2-light2"<br />
    pin: 2<br />
    inverted: False<br />
<br />
binary_sensor:<br />
  - platform: gpio<br />
    name: "a2-input1"<br />
    pin: <br />
      number: 36<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "a2-input2"<br />
    pin:<br />
      number: 39<br />
      inverted: true<br />
<br />
web_server:<br />
  port: 80<br />
<br />
# UART configuration for SIM7600E<br />
uart:<br />
  id: uart_2<br />
  tx_pin: GPIO5<br />
  rx_pin: GPIO13<br />
  baud_rate: 115200<br />
<br />
interval:<br />
  - interval: 200ms  # Shorten the interval to reduce blocking time<br />
    then:<br />
      - lambda: |-<br />
          static std::string uart_buffer;<br />
          uint8_t c;<br />
          int count = 0;<br />
          const int max_reads = 10;  // Limit the number of bytes read per interval<br />
<br />
          while (id(uart_2).available() &amp;&amp; count &lt; max_reads) {<br />
            if (id(uart_2).read_byte(&amp;c)) {<br />
              uart_buffer += (char)c;<br />
              count++;<br />
<br />
              // Log each received character (optional for debugging)<br />
              ESP_LOGD("UART", "Received: %c", (char)c);<br />
<br />
              // Check if we have received the "RING" signal<br />
              if (uart_buffer.find("RING") != std::string::npos) {<br />
                ESP_LOGI("SIM7600", "Incoming call detected, turning on relay 1.");<br />
                id(relay_1).turn_on();  // Turn on relay 1<br />
                uart_buffer.clear();  // Clear the buffer after processing<br />
              }<br />
<br />
              // Clear the buffer if it gets too large<br />
              if (uart_buffer.length() &gt; 100) {<br />
                uart_buffer.clear();<br />
              }<br />
            }<br />
          }</code></div></div>ESPHome yaml file for KC868-A2 board download: <!-- 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=6093" target="_blank" title="">A2-yaml-sim7600-call-relay.txt</a> (Size: 2.02 KB / Downloads: 373)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[how to use binary sensor send SMS by SIM7600E 4G module in ESPHome]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=6503</link>
			<pubDate>Wed, 28 Aug 2024 09:11:17 +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=6503</guid>
			<description><![CDATA[<iframe width="560" height="315" src="//www.youtube-nocookie.com/embed/8OEh6ItvhpE" frameborder="0" allowfullscreen="true"></iframe><br />
the ESPHome yaml demo made for KinCony KC868-A8S relay board. Actually you can use for any KinCony SIM7600 relay board, just replace 4G module's TXD,RXD define. <br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=5887" target="_blank" title="">KC868-A8S-HA-INPUT-SIM7600-SMS-1.jpg</a> (Size: 212.52 KB / Downloads: 796)
<!-- end: postbit_attachments_attachment --><br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=5888" target="_blank" title="">KC868-A8S-HA-INPUT-SIM7600-SMS-2.jpg</a> (Size: 144.73 KB / Downloads: 748)
<!-- 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=5889" target="_blank" title="">KC868-A8S-HA-INPUT-SIM7600-SMS.png</a> (Size: 114.73 KB / Downloads: 835)
<!-- end: postbit_attachments_attachment --><br />
here is ESPHome yaml demo: <br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>esphome:<br />
  name: a8s<br />
  platform: ESP32<br />
  board: esp32dev<br />
  <br />
# Example configuration entry for ESP32<br />
i2c:<br />
  sda: 4<br />
  scl: 5<br />
  scan: true<br />
  id: bus_a<br />
<br />
<br />
# Example configuration entry<br />
ethernet:<br />
  type: LAN8720<br />
  mdc_pin: GPIO23<br />
  mdio_pin: GPIO18<br />
  clk_mode: GPIO17_OUT<br />
  phy_addr: 0<br />
<br />
<br />
<br />
# Example configuration entry<br />
pcf8574:<br />
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8<br />
    address: 0x24<br />
<br />
  - id: 'pcf8574_hub_in_1'  # for input channel 1-8<br />
    address: 0x22<br />
<br />
# Individual outputs<br />
switch:<br />
  - platform: gpio<br />
    name: "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: "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: "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: "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: "curtain1-up"<br />
    id: relay5<br />
    interlock: [relay6]<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
      <br />
      <br />
      <br />
  - platform: gpio<br />
    name: "curtain1-down"<br />
    id: relay6<br />
    interlock: [relay5]<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
      <br />
<br />
  - platform: gpio<br />
    name: "curtain2-up"<br />
    id: relay7<br />
    interlock: [relay8]<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
      <br />
  - platform: gpio<br />
    name: "curtain2-down"<br />
    id: relay8<br />
    interlock: [relay7]<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
# UART configuration for SIM7600E<br />
uart:<br />
  id: uart_2<br />
  tx_pin: GPIO13<br />
  rx_pin: GPIO15<br />
  baud_rate: 115200<br />
  debug:<br />
    direction: BOTH<br />
    dummy_receiver: true<br />
    after:<br />
      timeout: 10ms<br />
    sequence:<br />
      - lambda: UARTDebug::log_string(direction, bytes);<br />
      <br />
binary_sensor:<br />
  - platform: gpio<br />
    name: "Call Button"<br />
    on_press:<br />
      then:<br />
        - uart.write:<br />
            id: uart_2<br />
            data: "ATD15381188302;&#92;r&#92;n"  # Replace with the phone number you want to dial<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "Send SMS Button"<br />
    on_press:<br />
      then:<br />
        - uart.write:<br />
            id: uart_2<br />
            data: "AT+CMGF=1&#92;r&#92;n"  # Set SMS to text mode<br />
        - delay: 1s<br />
        - uart.write:<br />
            id: uart_2<br />
            data: "AT+CMGS=&#92;"15381188302&#92;"&#92;r&#92;n"  # Replace with the recipient's phone number<br />
        - delay: 1s<br />
        - uart.write:<br />
            id: uart_2<br />
            data: "KinCony-SMS-Sensor&#92;x1A"  # Send the message "KinCony-SMS-Sensor" and terminate with Ctrl+Z<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input3"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light3<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input4"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light4<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input5"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay5<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input6"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay6<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input7"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay7<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input8"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay8<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
<br />
# Enable logging<br />
logger:<br />
<br />
# Enable Home Assistant API<br />
api:<br />
<br />
web_server:<br />
  port: 80</code></div></div> download yaml file: <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=5890" target="_blank" title="">KC868-A8S-HA-INPUT-SIM7600-SMS.txt</a> (Size: 4.45 KB / Downloads: 467)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<iframe width="560" height="315" src="//www.youtube-nocookie.com/embed/8OEh6ItvhpE" frameborder="0" allowfullscreen="true"></iframe><br />
the ESPHome yaml demo made for KinCony KC868-A8S relay board. Actually you can use for any KinCony SIM7600 relay board, just replace 4G module's TXD,RXD define. <br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=5887" target="_blank" title="">KC868-A8S-HA-INPUT-SIM7600-SMS-1.jpg</a> (Size: 212.52 KB / Downloads: 796)
<!-- end: postbit_attachments_attachment --><br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=5888" target="_blank" title="">KC868-A8S-HA-INPUT-SIM7600-SMS-2.jpg</a> (Size: 144.73 KB / Downloads: 748)
<!-- 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=5889" target="_blank" title="">KC868-A8S-HA-INPUT-SIM7600-SMS.png</a> (Size: 114.73 KB / Downloads: 835)
<!-- end: postbit_attachments_attachment --><br />
here is ESPHome yaml demo: <br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>esphome:<br />
  name: a8s<br />
  platform: ESP32<br />
  board: esp32dev<br />
  <br />
# Example configuration entry for ESP32<br />
i2c:<br />
  sda: 4<br />
  scl: 5<br />
  scan: true<br />
  id: bus_a<br />
<br />
<br />
# Example configuration entry<br />
ethernet:<br />
  type: LAN8720<br />
  mdc_pin: GPIO23<br />
  mdio_pin: GPIO18<br />
  clk_mode: GPIO17_OUT<br />
  phy_addr: 0<br />
<br />
<br />
<br />
# Example configuration entry<br />
pcf8574:<br />
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8<br />
    address: 0x24<br />
<br />
  - id: 'pcf8574_hub_in_1'  # for input channel 1-8<br />
    address: 0x22<br />
<br />
# Individual outputs<br />
switch:<br />
  - platform: gpio<br />
    name: "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: "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: "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: "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: "curtain1-up"<br />
    id: relay5<br />
    interlock: [relay6]<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true<br />
      <br />
      <br />
      <br />
  - platform: gpio<br />
    name: "curtain1-down"<br />
    id: relay6<br />
    interlock: [relay5]<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true<br />
      <br />
<br />
  - platform: gpio<br />
    name: "curtain2-up"<br />
    id: relay7<br />
    interlock: [relay8]<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
      <br />
  - platform: gpio<br />
    name: "curtain2-down"<br />
    id: relay8<br />
    interlock: [relay7]<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
# UART configuration for SIM7600E<br />
uart:<br />
  id: uart_2<br />
  tx_pin: GPIO13<br />
  rx_pin: GPIO15<br />
  baud_rate: 115200<br />
  debug:<br />
    direction: BOTH<br />
    dummy_receiver: true<br />
    after:<br />
      timeout: 10ms<br />
    sequence:<br />
      - lambda: UARTDebug::log_string(direction, bytes);<br />
      <br />
binary_sensor:<br />
  - platform: gpio<br />
    name: "Call Button"<br />
    on_press:<br />
      then:<br />
        - uart.write:<br />
            id: uart_2<br />
            data: "ATD15381188302;&#92;r&#92;n"  # Replace with the phone number you want to dial<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "Send SMS Button"<br />
    on_press:<br />
      then:<br />
        - uart.write:<br />
            id: uart_2<br />
            data: "AT+CMGF=1&#92;r&#92;n"  # Set SMS to text mode<br />
        - delay: 1s<br />
        - uart.write:<br />
            id: uart_2<br />
            data: "AT+CMGS=&#92;"15381188302&#92;"&#92;r&#92;n"  # Replace with the recipient's phone number<br />
        - delay: 1s<br />
        - uart.write:<br />
            id: uart_2<br />
            data: "KinCony-SMS-Sensor&#92;x1A"  # Send the message "KinCony-SMS-Sensor" and terminate with Ctrl+Z<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input3"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light3<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input4"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light4<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input5"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay5<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input6"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay6<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input7"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay7<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input8"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay8<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
<br />
# Enable logging<br />
logger:<br />
<br />
# Enable Home Assistant API<br />
api:<br />
<br />
web_server:<br />
  port: 80</code></div></div> download yaml file: <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=5890" target="_blank" title="">KC868-A8S-HA-INPUT-SIM7600-SMS.txt</a> (Size: 4.45 KB / Downloads: 467)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
	</channel>
</rss>