EspHome
This commit is contained in:
@@ -63,6 +63,7 @@ modbus_controller:
|
||||
- id: modbus_sensor
|
||||
address: 0x01 # device address
|
||||
modbus_id: modbus1
|
||||
update_interval: 2s
|
||||
|
||||
i2c:
|
||||
sda: GPIO4
|
||||
@@ -89,6 +90,11 @@ binary_sensor:
|
||||
number: 0
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
on_press:
|
||||
- switch.toggle: switch_output1
|
||||
on_release:
|
||||
- switch.toggle: switch_output1
|
||||
|
||||
- platform: gpio
|
||||
name: "KC868-A6-IN-2"
|
||||
pin:
|
||||
@@ -96,6 +102,11 @@ binary_sensor:
|
||||
number: 1
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
on_press:
|
||||
- switch.toggle: switch_output2
|
||||
on_release:
|
||||
- switch.toggle: switch_output2
|
||||
|
||||
- platform: gpio
|
||||
name: "KC868-A6-IN-3"
|
||||
pin:
|
||||
@@ -103,6 +114,11 @@ binary_sensor:
|
||||
number: 2
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
on_press:
|
||||
- switch.toggle: switch_output3
|
||||
on_release:
|
||||
- switch.toggle: switch_output3
|
||||
|
||||
- platform: gpio
|
||||
name: "KC868-A6-IN-4"
|
||||
pin:
|
||||
@@ -110,6 +126,11 @@ binary_sensor:
|
||||
number: 3
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
on_press:
|
||||
- switch.toggle: switch_output4
|
||||
on_release:
|
||||
- switch.toggle: switch_output4
|
||||
|
||||
- platform: gpio
|
||||
name: "KC868-A6-IN-5"
|
||||
pin:
|
||||
@@ -117,6 +138,11 @@ binary_sensor:
|
||||
number: 4
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
on_press:
|
||||
- switch.toggle: switch_output5
|
||||
on_release:
|
||||
- switch.toggle: switch_output5
|
||||
|
||||
- platform: gpio
|
||||
name: "KC868-A6-IN-6"
|
||||
pin:
|
||||
@@ -124,51 +150,60 @@ binary_sensor:
|
||||
number: 5
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
on_press:
|
||||
- switch.toggle: switch_output6
|
||||
on_release:
|
||||
- switch.toggle: switch_output6
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: "KC868-A6-RELAY-1"
|
||||
id: relay_1
|
||||
id: switch_output1
|
||||
pin:
|
||||
pcf8574: outputs
|
||||
number: 0
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "KC868-A6-RELAY-2"
|
||||
id: relay_2
|
||||
id: switch_output2
|
||||
pin:
|
||||
pcf8574: outputs
|
||||
number: 1
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "KC868-A6-RELAY-3"
|
||||
id: relay_3
|
||||
id: switch_output3
|
||||
pin:
|
||||
pcf8574: outputs
|
||||
number: 2
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "KC868-A6-RELAY-4"
|
||||
id: relay_4
|
||||
id: switch_output4
|
||||
pin:
|
||||
pcf8574: outputs
|
||||
number: 3
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "KC868-A6-RELAY-5"
|
||||
id: relay_5
|
||||
id: switch_output5
|
||||
pin:
|
||||
pcf8574: outputs
|
||||
number: 4
|
||||
mode: OUTPUT
|
||||
inverted: true
|
||||
|
||||
- platform: gpio
|
||||
name: "KC868-A6-RELAY-6"
|
||||
id: relay_6
|
||||
id: switch_output6
|
||||
pin:
|
||||
pcf8574: outputs
|
||||
number: 5
|
||||
|
||||
Reference in New Issue
Block a user