Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Relay
#2
https://www.kincony.com/forum/showthread.php?tid=2618 here is yaml file for KC868-A4S. the following content is use for relay:

# Example configuration entry for ESP32
i2c:
sda: 4
scl: 16
scan: true
id: bus_a

# Example configuration entry
pcf8574:
- id: 'pcf8574_hub_out_1' # for output channel 1-4 for DI9--DI12
address: 0x24

- id: 'pcf8574_hub_in_1' # for input channel 1-8
address: 0x22

# Individual outputs
switch:
- platform: gpio
name: "a4s-light1"
id: light1
pin:
pcf8574: pcf8574_hub_out_1
number: 0
mode: OUTPUT
inverted: true

- platform: gpio
name: "a4s-light2"
id: light2
pin:
pcf8574: pcf8574_hub_out_1
number: 1
mode: OUTPUT
inverted: true

- platform: gpio
name: "a4s-light3"
id: light3
pin:
pcf8574: pcf8574_hub_out_1
number: 2
mode: OUTPUT
inverted: true

- platform: gpio
name: "a4s-light4"
id: light4
pin:
pcf8574: pcf8574_hub_out_1
number: 3
mode: OUTPUT
inverted: true
Reply


Messages In This Thread
Relay - by lori72 - 03-24-2023, 07:31 PM
RE: Relay - by admin - 03-24-2023, 11:10 PM
RE: Relay - by lori72 - 03-25-2023, 06:51 AM
RE: Relay - by admin - 03-25-2023, 02:04 PM
RE: Relay - by lori72 - 03-28-2023, 07:05 AM
RE: Relay - by admin - 03-28-2023, 08:35 AM
RE: Relay - by lori72 - 03-30-2023, 08:06 AM
RE: Relay - by admin - 03-30-2023, 10:50 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)