KC868-A6 ESPHome demo config for home assistant - 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-A6 (https://www.kincony.com/forum/forumdisplay.php?fid=22) +--- Thread: KC868-A6 ESPHome demo config for home assistant (/showthread.php?tid=1963) |
KC868-A6 ESPHome demo config for home assistant - admin - 06-01-2022 esphome: name: kc868-a6 esp32: board: esp32dev framework: type: arduino # Enable logging logger: # Enable Home Assistant API api: ota: password: "b9c07c109b7ecc6c63dac976c0c23a12" wifi: ssid: KinCony password: xxxxxxxx # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "A6 Fallback Hotspot" password: "GLdHSsZr1p96" captive_portal: # Example configuration entry for ESP32 i2c: sda: 4 scl: 15 scan: true id: bus_a # Example configuration entry pcf8574: - id: 'pcf8574_hub_out_1' # for output channel 1-8 address: 0x24 - id: 'pcf8574_hub_in_1' # for input channel 1-8 address: 0x22 # Individual outputs switch: - platform: gpio name: "a6-light1" id: light1 pin: pcf8574: pcf8574_hub_out_1 number: 0 mode: OUTPUT inverted: true - platform: gpio name: "a6-light2" id: light2 pin: pcf8574: pcf8574_hub_out_1 number: 1 mode: OUTPUT inverted: true - platform: gpio name: "a6-light3" id: light3 pin: pcf8574: pcf8574_hub_out_1 number: 2 mode: OUTPUT inverted: true - platform: gpio name: "a6-light4" id: light4 pin: pcf8574: pcf8574_hub_out_1 number: 3 mode: OUTPUT inverted: true - platform: gpio name: "a6-light5" id: light5 pin: pcf8574: pcf8574_hub_out_1 number: 4 mode: OUTPUT inverted: true - platform: gpio name: "a6-light6" id: light6 pin: pcf8574: pcf8574_hub_out_1 number: 5 mode: OUTPUT inverted: true binary_sensor: - platform: gpio name: "a6-input1" pin: pcf8574: pcf8574_hub_in_1 number: 0 mode: INPUT inverted: true - platform: gpio name: "a6-input2" pin: pcf8574: pcf8574_hub_in_1 number: 1 mode: INPUT inverted: true - platform: gpio name: "a6-input3" pin: pcf8574: pcf8574_hub_in_1 number: 2 mode: INPUT inverted: true - platform: gpio name: "a6-input4" pin: pcf8574: pcf8574_hub_in_1 number: 3 mode: INPUT inverted: true - platform: gpio name: "a6-input5" pin: pcf8574: pcf8574_hub_in_1 number: 4 mode: INPUT inverted: true - platform: gpio name: "a6-input6" pin: pcf8574: pcf8574_hub_in_1 number: 5 mode: INPUT inverted: true RE: KC868-A6 ESPHome demo config for home assistant - cesarblancartelizarraga - 02-03-2023 (06-01-2022, 07:25 AM)admin Wrote: esphome: Hello, do you have the modbus code example for sensor in ESPHome with KC868-A6 ? Thanks, RE: KC868-A6 ESPHome demo config for home assistant - admin - 02-03-2023 sorry, now not have, in furture we can make it. RE: KC868-A6 ESPHome demo config for home assistant - Vaughan2024 - 04-30-2024 Hi Is it possible to set a static IP on KC868-A6 when only connect by wi-fi? Can I use below or is there a specific place in the code it must go? # Optional manual IP manual_ip: static_ip: 192.168.1.3 gateway: 192.168.1.1 subnet: 255.255.255.0 Thanks RE: KC868-A6 ESPHome demo config for home assistant - admin - 04-30-2024 yes, just use these command line set for wifi static ip address. |