mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 20:50:02 +02:00
add front 0 to outputs and add inputs
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
output:
|
output:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: out_1
|
id: out_01
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_left
|
pcf8574: pcf_left
|
||||||
number: 15
|
number: 15
|
||||||
@@ -8,7 +8,7 @@ output:
|
|||||||
output: true
|
output: true
|
||||||
inverted: true
|
inverted: true
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: out_2
|
id: out_02
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_left
|
pcf8574: pcf_left
|
||||||
number: 14
|
number: 14
|
||||||
@@ -17,7 +17,7 @@ output:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: out_3
|
id: out_03
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_left
|
pcf8574: pcf_left
|
||||||
number: 13
|
number: 13
|
||||||
@@ -26,7 +26,7 @@ output:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: out_4
|
id: out_04
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_left
|
pcf8574: pcf_left
|
||||||
number: 12
|
number: 12
|
||||||
@@ -35,7 +35,7 @@ output:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: out_5
|
id: out_05
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_left
|
pcf8574: pcf_left
|
||||||
number: 11
|
number: 11
|
||||||
@@ -44,7 +44,7 @@ output:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: out_6
|
id: out_06
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_left
|
pcf8574: pcf_left
|
||||||
number: 10
|
number: 10
|
||||||
@@ -53,7 +53,7 @@ output:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: out_7
|
id: out_07
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_left
|
pcf8574: pcf_left
|
||||||
number: 9
|
number: 9
|
||||||
@@ -62,7 +62,7 @@ output:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: out_8
|
id: out_08
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_left
|
pcf8574: pcf_left
|
||||||
number: 8
|
number: 8
|
||||||
@@ -71,7 +71,7 @@ output:
|
|||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: out_9
|
id: out_09
|
||||||
pin:
|
pin:
|
||||||
pcf8574: pcf_right
|
pcf8574: pcf_right
|
||||||
number: 15
|
number: 15
|
||||||
|
|||||||
@@ -57,32 +57,32 @@ time:
|
|||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: binary
|
- platform: binary
|
||||||
name: 'OUT 1'
|
name: 'OUT 01'
|
||||||
output: out_1
|
output: out_01
|
||||||
- platform: binary
|
- platform: binary
|
||||||
name: 'OUT 2'
|
name: 'OUT 02'
|
||||||
output: out_2
|
output: out_02
|
||||||
- platform: binary
|
- platform: binary
|
||||||
name: 'OUT 3'
|
name: 'OUT 03'
|
||||||
output: out_3
|
output: out_03
|
||||||
- platform: binary
|
- platform: binary
|
||||||
name: 'OUT 4'
|
name: 'OUT 04'
|
||||||
output: out_4
|
output: out_04
|
||||||
- platform: binary
|
- platform: binary
|
||||||
name: 'OUT 5'
|
name: 'OUT 05'
|
||||||
output: out_5
|
output: out_05
|
||||||
- platform: binary
|
- platform: binary
|
||||||
name: 'OUT 6'
|
name: 'OUT 06'
|
||||||
output: out_6
|
output: out_06
|
||||||
- platform: binary
|
- platform: binary
|
||||||
name: 'OUT 7'
|
name: 'OUT 07'
|
||||||
output: out_7
|
output: out_07
|
||||||
- platform: binary
|
- platform: binary
|
||||||
name: 'OUT 8'
|
name: 'OUT 08'
|
||||||
output: out_8
|
output: out_08
|
||||||
- platform: binary
|
- platform: binary
|
||||||
name: 'OUT 9'
|
name: 'OUT 09'
|
||||||
output: out_9
|
output: out_09
|
||||||
- platform: binary
|
- platform: binary
|
||||||
name: 'OUT 10'
|
name: 'OUT 10'
|
||||||
output: out_10
|
output: out_10
|
||||||
@@ -152,3 +152,447 @@ light:
|
|||||||
- platform: binary
|
- platform: binary
|
||||||
name: 'OUT 32'
|
name: 'OUT 32'
|
||||||
output: out_32
|
output: out_32
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_01'
|
||||||
|
id: in_01
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 0
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_01
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_02'
|
||||||
|
id: in_02
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 1
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_02
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_03'
|
||||||
|
id: in_03
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 2
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_03
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_04'
|
||||||
|
id: in_04
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 3
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_04
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_05'
|
||||||
|
id: in_05
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 4
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_05
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_06'
|
||||||
|
id: in_06
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 5
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_06
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_07'
|
||||||
|
id: in_07
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 6
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_07
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_08'
|
||||||
|
id: in_08
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 8
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_08
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_09'
|
||||||
|
id: in_09
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 9
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_09
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_10'
|
||||||
|
id: in_10
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 10
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_10
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_11'
|
||||||
|
id: in_11
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 11
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_11
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_12'
|
||||||
|
id: in_12
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 12
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_12
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_13'
|
||||||
|
id: in_13
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 13
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_13
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_14'
|
||||||
|
id: in_14
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_1to14
|
||||||
|
number: 14
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_14
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_15'
|
||||||
|
id: in_15
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 6
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_15
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_16'
|
||||||
|
id: in_16
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 5
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_16
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_17'
|
||||||
|
id: in_17
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 4
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_17
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_18'
|
||||||
|
id: in_18
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 3
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_18
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_19'
|
||||||
|
id: in_19
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 2
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_19
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_20'
|
||||||
|
id: in_20
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 1
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_20
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_21'
|
||||||
|
id: in_21
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 0
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_21
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_22'
|
||||||
|
id: in_22
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 8
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_22
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_23'
|
||||||
|
id: in_23
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 9
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_23
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_24'
|
||||||
|
id: in_24
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 10
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_24
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_25'
|
||||||
|
id: in_25
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 11
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_25
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_26'
|
||||||
|
id: in_26
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 12
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_26
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_27'
|
||||||
|
id: in_27
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 13
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_27
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_28'
|
||||||
|
id: in_28
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_15to28
|
||||||
|
number: 14
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_28
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_29'
|
||||||
|
id: in_29
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_28to35_menu
|
||||||
|
number: 0
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_29
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_30'
|
||||||
|
id: in_30
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_28to35_menu
|
||||||
|
number: 1
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_30
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_31'
|
||||||
|
id: in_31
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_28to35_menu
|
||||||
|
number: 2
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_31
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_32'
|
||||||
|
id: in_32
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_28to35_menu
|
||||||
|
number: 3
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
on_press:
|
||||||
|
then:
|
||||||
|
- light.toggle: out_32
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_33'
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_28to35_menu
|
||||||
|
number: 4
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_34'
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_28to35_menu
|
||||||
|
number: 5
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|
||||||
|
- platform: gpio
|
||||||
|
name: 'IN_35'
|
||||||
|
pin:
|
||||||
|
pcf8574: pcf_inputs_28to35_menu
|
||||||
|
number: 6
|
||||||
|
mode:
|
||||||
|
input: true
|
||||||
|
inverted: true
|
||||||
|
|||||||
Reference in New Issue
Block a user