![]() |
KC868-E16S/E16P demo configure for ESPhome - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-E16S/E16P (https://www.kincony.com/forum/forumdisplay.php?fid=26) +--- Thread: KC868-E16S/E16P demo configure for ESPhome (/showthread.php?tid=2125) Pages:
1
2
|
KC868-E16S/E16P demo configure for ESPhome - admin - 08-11-2022 ![]() esphome: name: kc868-e16s platform: ESP32 board: esp32dev # Example configuration entry for ESP32 i2c: sda: 16 scl: 15 scan: true id: bus_a # Example configuration entry ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO17_OUT phy_addr: 0 # Optional manual IP # manual_ip: # static_ip: 192.168.1.199 # gateway: 192.168.1.1 # subnet: 255.255.255.0 # Example configuration entry pcf8574: - id: 'pcf8574_hub_out_1' # for output channel 1-8 address: 0x21 - id: 'pcf8574_hub_out_2' # for output channel 9-16 address: 0x25 - id: 'pcf8574_hub_in_1' # for input channel 1-8 address: 0x22 - id: 'pcf8574_hub_in_2' # for input channel 9-16 address: 0x24 # Individual outputs switch: - platform: gpio name: "e16s-output1" pin: pcf8574: pcf8574_hub_out_1 number: 0 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output2" pin: pcf8574: pcf8574_hub_out_1 number: 1 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output3" pin: pcf8574: pcf8574_hub_out_1 number: 2 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output4" pin: pcf8574: pcf8574_hub_out_1 number: 3 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output5" pin: pcf8574: pcf8574_hub_out_1 number: 4 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output6" pin: pcf8574: pcf8574_hub_out_1 number: 5 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output7" pin: pcf8574: pcf8574_hub_out_1 number: 6 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output8" pin: pcf8574: pcf8574_hub_out_1 number: 7 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output9" pin: pcf8574: pcf8574_hub_out_2 number: 0 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output10" pin: pcf8574: pcf8574_hub_out_2 number: 1 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output11" pin: pcf8574: pcf8574_hub_out_2 number: 2 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output12" pin: pcf8574: pcf8574_hub_out_2 number: 3 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output13" pin: pcf8574: pcf8574_hub_out_2 number: 4 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output14" pin: pcf8574: pcf8574_hub_out_2 number: 5 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output15" pin: pcf8574: pcf8574_hub_out_2 number: 6 mode: OUTPUT inverted: true - platform: gpio name: "e16s-output16" pin: pcf8574: pcf8574_hub_out_2 number: 7 mode: OUTPUT inverted: true binary_sensor: - platform: gpio name: "e16s-input1" pin: pcf8574: pcf8574_hub_in_1 number: 0 mode: INPUT inverted: true - platform: gpio name: "e16s-input2" pin: pcf8574: pcf8574_hub_in_1 number: 1 mode: INPUT inverted: true - platform: gpio name: "e16s-input3" pin: pcf8574: pcf8574_hub_in_1 number: 2 mode: INPUT inverted: true - platform: gpio name: "e16s-input4" pin: pcf8574: pcf8574_hub_in_1 number: 3 mode: INPUT inverted: true - platform: gpio name: "e16s-input5" pin: pcf8574: pcf8574_hub_in_1 number: 4 mode: INPUT inverted: true - platform: gpio name: "e16s-input6" pin: pcf8574: pcf8574_hub_in_1 number: 5 mode: INPUT inverted: true - platform: gpio name: "e16s-input7" pin: pcf8574: pcf8574_hub_in_1 number: 6 mode: INPUT inverted: true - platform: gpio name: "e16s-input8" pin: pcf8574: pcf8574_hub_in_1 number: 7 mode: INPUT inverted: true - platform: gpio name: "e16s-input9" pin: pcf8574: pcf8574_hub_in_2 number: 0 mode: INPUT inverted: true - platform: gpio name: "e16s-input10" pin: pcf8574: pcf8574_hub_in_2 number: 1 mode: INPUT inverted: true - platform: gpio name: "e16s-input11" pin: pcf8574: pcf8574_hub_in_2 number: 2 mode: INPUT inverted: true - platform: gpio name: "e16s-input12" pin: pcf8574: pcf8574_hub_in_2 number: 3 mode: INPUT inverted: true - platform: gpio name: "e16s-input13" pin: pcf8574: pcf8574_hub_in_2 number: 4 mode: INPUT inverted: true - platform: gpio name: "e16s-input14" pin: pcf8574: pcf8574_hub_in_2 number: 5 mode: INPUT inverted: true - platform: gpio name: "e16s-input15" pin: pcf8574: pcf8574_hub_in_2 number: 6 mode: INPUT inverted: true - platform: gpio name: "e16s-input16" pin: pcf8574: pcf8574_hub_in_2 number: 7 mode: INPUT inverted: true # Enable logging logger: # Enable Home Assistant API api: RE: KC868-E16S demo configure for ESPhome - smarthome360 - 01-05-2023 hello, I use this config which works with the buttons too and are in the right order esphome: name: kc868-e16s platform: ESP32 board: esp32dev # Example configuration entry for ESP32 i2c: sda: 16 scl: 15 scan: true id: bus_a # Example configuration entry ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO17_OUT phy_addr: 0 # Optional manual IP # manual_ip: # static_ip: 192.168.1.199 # gateway: 192.168.1.1 # subnet: 255.255.255.0 # Example configuration entry pcf8574: - id: 'pcf8574_hub_out_1' # for output channel 1-8 address: 0x21 - id: 'pcf8574_hub_out_2' # for output channel 9-16 address: 0x25 - id: 'pcf8574_hub_in_1' # for input channel 1-8 address: 0x22 - id: 'pcf8574_hub_in_2' # for input channel 9-16 address: 0x24 # Individual outputs switch: - platform: gpio name: "e16s-output1" pin: pcf8574: pcf8574_hub_out_1 number: 0 mode: OUTPUT inverted: true id: output1 - platform: gpio name: "e16s-output2" pin: pcf8574: pcf8574_hub_out_1 number: 1 mode: OUTPUT inverted: true id: output2 - platform: gpio name: "e16s-output3" pin: pcf8574: pcf8574_hub_out_1 number: 2 mode: OUTPUT inverted: true id: output3 - platform: gpio name: "e16s-output4" pin: pcf8574: pcf8574_hub_out_1 number: 3 mode: OUTPUT inverted: true id: output4 - platform: gpio name: "e16s-output5" pin: pcf8574: pcf8574_hub_out_1 number: 4 mode: OUTPUT inverted: true id: output5 - platform: gpio name: "e16s-output6" pin: pcf8574: pcf8574_hub_out_1 number: 5 mode: OUTPUT inverted: true id: output6 - platform: gpio name: "e16s-output7" pin: pcf8574: pcf8574_hub_out_1 number: 6 mode: OUTPUT inverted: true id: output7 - platform: gpio name: "e16s-output8" pin: pcf8574: pcf8574_hub_out_1 number: 7 mode: OUTPUT inverted: true id: output8 - platform: gpio name: "e16s-output9" pin: pcf8574: pcf8574_hub_out_2 number: 0 mode: OUTPUT inverted: true id: output9 - platform: gpio name: "e16s-output10" pin: pcf8574: pcf8574_hub_out_2 number: 1 mode: OUTPUT inverted: true id: output10 - platform: gpio name: "e16s-output11" pin: pcf8574: pcf8574_hub_out_2 number: 2 mode: OUTPUT inverted: true id: output11 - platform: gpio name: "e16s-output12" pin: pcf8574: pcf8574_hub_out_2 number: 3 mode: OUTPUT inverted: true id: output12 - platform: gpio name: "e16s-output13" pin: pcf8574: pcf8574_hub_out_2 number: 4 mode: OUTPUT inverted: true id: output13 - platform: gpio name: "e16s-output14" pin: pcf8574: pcf8574_hub_out_2 number: 5 mode: OUTPUT inverted: true id: output14 - platform: gpio name: "e16s-output15" pin: pcf8574: pcf8574_hub_out_2 number: 6 mode: OUTPUT inverted: true id: output15 - platform: gpio name: "e16s-output16" pin: pcf8574: pcf8574_hub_out_2 number: 7 mode: OUTPUT inverted: true id: output16 #-----------INPUTS------------ binary_sensor: - platform: gpio name: "e16s-input16" on_press: then: - switch.toggle: output16 pin: pcf8574: pcf8574_hub_in_1 number: 0 mode: INPUT inverted: true - platform: gpio name: "e16s-input15" on_press: then: - switch.toggle: output15 pin: pcf8574: pcf8574_hub_in_1 number: 1 mode: INPUT inverted: true - platform: gpio name: "e16s-input14" on_press: then: - switch.toggle: output14 pin: pcf8574: pcf8574_hub_in_1 number: 2 mode: INPUT inverted: true - platform: gpio name: "e16s-input13" on_press: then: - switch.toggle: output13 pin: pcf8574: pcf8574_hub_in_1 number: 3 mode: INPUT inverted: true - platform: gpio name: "e16s-input12" on_press: then: - switch.toggle: output12 pin: pcf8574: pcf8574_hub_in_1 number: 4 mode: INPUT inverted: true - platform: gpio name: "e16s-input11" on_press: then: - switch.toggle: output11 pin: pcf8574: pcf8574_hub_in_1 number: 5 mode: INPUT inverted: true - platform: gpio name: "e16s-input10" on_press: then: - switch.toggle: output10 pin: pcf8574: pcf8574_hub_in_1 number: 6 mode: INPUT inverted: true - platform: gpio name: "e16s-input9" on_press: then: - switch.toggle: output9 pin: pcf8574: pcf8574_hub_in_1 number: 7 mode: INPUT inverted: true - platform: gpio name: "e16s-input8" on_press: then: - switch.toggle: output8 pin: pcf8574: pcf8574_hub_in_2 number: 0 mode: INPUT inverted: true - platform: gpio name: "e16s-input7" on_press: then: - switch.toggle: output7 pin: pcf8574: pcf8574_hub_in_2 number: 1 mode: INPUT inverted: true - platform: gpio name: "e16s-input6" on_press: then: - switch.toggle: output6 pin: pcf8574: pcf8574_hub_in_2 number: 2 mode: INPUT inverted: true - platform: gpio name: "e16s-input5" on_press: then: - switch.toggle: output5 pin: pcf8574: pcf8574_hub_in_2 number: 3 mode: INPUT inverted: true - platform: gpio name: "e16s-input4" on_press: then: - switch.toggle: output4 pin: pcf8574: pcf8574_hub_in_2 number: 4 mode: INPUT inverted: true - platform: gpio name: "e16s-input3" on_press: then: - switch.toggle: output3 pin: pcf8574: pcf8574_hub_in_2 number: 5 mode: INPUT inverted: true - platform: gpio name: "e16s-input2" on_press: then: - switch.toggle: output2 pin: pcf8574: pcf8574_hub_in_2 number: 6 mode: INPUT inverted: true - platform: gpio name: "e16s-input1" on_press: then: - switch.toggle: output1 pin: pcf8574: pcf8574_hub_in_2 number: 7 mode: INPUT inverted: true # Enable logging logger: # Enable Home Assistant API api: RE: KC868-E16S demo configure for ESPhome - admin - 01-05-2023 thanks share your config code. RE: KC868-E16S demo configure for ESPhome - gabriel600r - 05-21-2023 Hello, good evening. What changes should I make in the code so that they appear as lights instead of switches? (I want to avoid doing the configuration in homeassistant through helpers). RE: KC868-E16S demo configure for ESPhome - admin - 05-21-2023 edit Dashboard - entity , change ICO. RE: KC868-E16S/E16P demo configure for ESPhome - matthewdresden - 01-13-2024 ESP32 IoT Board Issue with ESPHome Firmware Installation Overview I am experiencing issues with my new kc868-e16s board after installing custom esphome firmware. The board was expected to connect to a LAN via DHCP and control several relays, but it is currently not functioning as expected. Environment
Issue Description After successfully uploading the firmware:
Prior Status The board previously had the default firmware and was able to obtain a DHCP lease. However, the relays did not function through the web UI. Steps Taken
Supporting Information
ESPHome YAML Configuration File Code: esphome: dmesg Output Showing Successful USB Connection and Device Port Code: [15024.377787] usb 1-1: new full-speed USB device number 45 using xhci_hcd dmesg Output Showing Successful USB Removal After Firmware Upload Code: [15360.959985] usb 1-1: USB disconnect, device number 45 ESPHome YAML Validation Success Code: Truncated to fit post constraints Successful Upload of Firmware to Board Code: (.venv) ➜ kc868-e16s git:(main) ✗ esphome upload --device /dev/ttyUSB0 --file ./.esphome/build/kc868-e16s/.pioenvs/kc868-e16s/firmware.bin kc868-e16s.yaml ![]() RE: KC868-E16S/E16P demo configure for ESPhome - admin - 01-14-2024 can you download KCS firmware for a testing? just make sure hardware is OK. here is online guide: https://www.kincony.com/esp32-kcsv2-firmware.html another thing, after you download firmware, do you have re power on of your board? RE: KC868-E16S/E16P demo configure for ESPhome - matthewdresden - 01-14-2024 (01-14-2024, 12:33 AM)admin Wrote: can you download KCS firmware for a testing? just make sure hardware is OK. I am able to install the firmware `KCS_KC868_A16S_V2.2.2.bin` with your tool I have to power cycle the board for the lan to start working and ping the board. From the web UI, I did not see a way to test the relays, but I can confirm the ethernet port is working. For now I have my source for the yaml public in github in a branch at: Link to yaml file on github Which is still in the same state as what I posted. I created a README.md for the steps I have take to flash the board with the compile firmware at Steps I took to flash my custom firmware I also attempted to flash my custom firmware with your windows tool; which had the same failed result as my developement environment. RE: KC868-E16S/E16P demo configure for ESPhome - admin - 01-14-2024 if you have downloaded KCS firmware, open the webpage, there is "monitor" webpage, you can click relay ico for ON/OFF. if you also have problem, add whatsapp number: +86-15381188302 we can use ANYDESK remote control your computer, have a look. RE: KC868-E16S/E16P demo configure for ESPhome - matthewdresden - 01-14-2024 (01-14-2024, 02:39 AM)admin Wrote: if you have downloaded KCS firmware, open the webpage, there is "monitor" webpage, you can click relay ico for ON/OFF. Install whats app and then we can connect for a remote session |