mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-11 04:50:29 +02:00
Change dev to support Input board v0.5
This commit is contained in:
@@ -10,7 +10,7 @@ binary_sensor:
|
||||
name: "${node_name} IN_01"
|
||||
id: in_01
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 0
|
||||
mode:
|
||||
input: true
|
||||
@@ -23,7 +23,7 @@ binary_sensor:
|
||||
name: "${node_name} IN_02"
|
||||
id: in_02
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 1
|
||||
mode:
|
||||
input: true
|
||||
@@ -36,7 +36,7 @@ binary_sensor:
|
||||
name: "${node_name} IN_03"
|
||||
id: in_03
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 2
|
||||
mode:
|
||||
input: true
|
||||
@@ -49,7 +49,7 @@ binary_sensor:
|
||||
name: "${node_name} IN_04"
|
||||
id: in_04
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 3
|
||||
mode:
|
||||
input: true
|
||||
@@ -62,7 +62,7 @@ binary_sensor:
|
||||
name: "${node_name} IN_05"
|
||||
id: in_05
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 4
|
||||
mode:
|
||||
input: true
|
||||
@@ -75,7 +75,7 @@ binary_sensor:
|
||||
name: "${node_name} IN_06"
|
||||
id: in_06
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 5
|
||||
mode:
|
||||
input: true
|
||||
@@ -88,7 +88,7 @@ binary_sensor:
|
||||
name: "${node_name} IN_07"
|
||||
id: in_07
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 6
|
||||
mode:
|
||||
input: true
|
||||
@@ -101,8 +101,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_08"
|
||||
id: in_08
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
number: 7
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 8
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -114,8 +114,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_09"
|
||||
id: in_09
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
number: 8
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 9
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -127,8 +127,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_10"
|
||||
id: in_10
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
number: 9
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 10
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -140,8 +140,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_11"
|
||||
id: in_11
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
number: 10
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 11
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -153,8 +153,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_12"
|
||||
id: in_12
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
number: 11
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 12
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -166,8 +166,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_13"
|
||||
id: in_13
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
number: 12
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 13
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -179,8 +179,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_14"
|
||||
id: in_14
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
number: 13
|
||||
pcf8574: pcf_inputs_1to14
|
||||
number: 14
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -192,8 +192,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_15"
|
||||
id: in_15
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
number: 14
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 6
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -205,8 +205,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_16"
|
||||
id: in_16
|
||||
pin:
|
||||
pcf8574: mcp_inputs_1to16
|
||||
number: 15
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 5
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -218,8 +218,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_17"
|
||||
id: in_17
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 7
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 4
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -231,8 +231,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_18"
|
||||
id: in_18
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 6
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 3
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -244,8 +244,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_19"
|
||||
id: in_19
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 5
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 2
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -257,8 +257,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_20"
|
||||
id: in_20
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 4
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 1
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -270,8 +270,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_21"
|
||||
id: in_21
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 3
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 0
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -283,8 +283,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_22"
|
||||
id: in_22
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 2
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 8
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -296,8 +296,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_23"
|
||||
id: in_23
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 1
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 9
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -309,8 +309,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_24"
|
||||
id: in_24
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 0
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 10
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -322,8 +322,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_25"
|
||||
id: in_25
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 8
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 11
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -335,8 +335,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_26"
|
||||
id: in_26
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 9
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 12
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -348,8 +348,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_27"
|
||||
id: in_27
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 10
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 13
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -361,8 +361,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_28"
|
||||
id: in_28
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 11
|
||||
pcf8574: pcf_inputs_15to28
|
||||
number: 14
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -374,8 +374,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_29"
|
||||
id: in_29
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 12
|
||||
pcf8574: pcf_inputs_28to35_menu
|
||||
number: 0
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -387,8 +387,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_30"
|
||||
id: in_30
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 13
|
||||
pcf8574: pcf_inputs_28to35_menu
|
||||
number: 1
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -400,8 +400,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_31"
|
||||
id: in_31
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 14
|
||||
pcf8574: pcf_inputs_28to35_menu
|
||||
number: 2
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -413,8 +413,8 @@ binary_sensor:
|
||||
name: "${node_name} IN_32"
|
||||
id: in_32
|
||||
pin:
|
||||
pcf8574: mcp_inputs_17to32
|
||||
number: 15
|
||||
pcf8574: pcf_inputs_28to35_menu
|
||||
number: 3
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -425,7 +425,8 @@ binary_sensor:
|
||||
- platform: gpio
|
||||
name: "${node_name} IN_33"
|
||||
pin:
|
||||
number: GPIO33
|
||||
pcf8574: pcf_inputs_28to35_menu
|
||||
number: 4
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -433,7 +434,8 @@ binary_sensor:
|
||||
- platform: gpio
|
||||
name: "${node_name} IN_34"
|
||||
pin:
|
||||
number: GPIO17
|
||||
pcf8574: pcf_inputs_28to35_menu
|
||||
number: 5
|
||||
mode:
|
||||
input: true
|
||||
inverted: true
|
||||
@@ -441,9 +443,9 @@ binary_sensor:
|
||||
- platform: gpio
|
||||
name: "${node_name} IN_35"
|
||||
pin:
|
||||
number: GPIO12
|
||||
pcf8574: pcf_inputs_28to35_menu
|
||||
number: 6
|
||||
mode:
|
||||
input: true
|
||||
pullup: true
|
||||
inverted: false
|
||||
inverted: true
|
||||
|
||||
@@ -3,9 +3,11 @@ pcf8574:
|
||||
- id: 'pcf_1'
|
||||
address: 0x21
|
||||
pcf8575: true
|
||||
i2c_id: bus_b
|
||||
- id: 'pcf_2'
|
||||
address: 0x20
|
||||
pcf8575: true
|
||||
pcf8575: true
|
||||
i2c_id: bus_b
|
||||
|
||||
switch:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user