Merge pull request #17 from wedr0wycz/main

Corrected pcf inputs ids
This commit is contained in:
Pawel
2024-10-07 12:35:19 +02:00
committed by GitHub
2 changed files with 82 additions and 83 deletions

View File

@@ -33,21 +33,21 @@ packages:
url: https://github.com/boneIO-eu/esphome
ref: v1.3.0
files: [
'devices/serial_no.yaml',
'devices_v0_4/display.yaml',
'devices_v0_4/i2c.yaml',
'devices_v0_4/ina219.yaml',
'devices_v0_4/lm75b.yaml',
'devices_v0_4/pcf.yaml',
'boards/32x10_output.yaml',
# 'devices_v0_7/one_wire.yaml',
'devices/serial_no.yaml',
'devices_v0_4/display.yaml',
'devices_v0_4/i2c.yaml',
'devices_v0_4/ina219.yaml',
'devices_v0_4/lm75b.yaml',
'devices_v0_4/pcf.yaml',
'boards/32x10_output.yaml',
# 'devices_v0_4/time.yaml',
# 'devices_v0_7/one_wire.yaml',
]
logger:
api:
ota:
platform: esphome
password: boneio
- platform: esphome
# disable web server - for testing only
web_server:
@@ -58,11 +58,6 @@ time:
- platform: homeassistant
timezone: Europe/Warsaw
id: homeassistant_time
# instead try to synchronize via network repeatedly ...
on_time_sync:
then:
# ... and update the RTC when the synchronization was successful
ds1307.write_time:
switch:
- platform: output
@@ -199,7 +194,7 @@ binary_sensor:
name: 'IN_01'
id: in_01
pin:
pcf8574: pcf_inputs_1to14
pcf8574: pcf_inputs_1to16
number: 0
mode:
input: true
@@ -212,7 +207,7 @@ binary_sensor:
name: 'IN_02'
id: in_02
pin:
pcf8574: pcf_inputs_1to14
pcf8574: pcf_inputs_1to16
number: 1
mode:
input: true
@@ -225,7 +220,7 @@ binary_sensor:
name: 'IN_03'
id: in_03
pin:
pcf8574: pcf_inputs_1to14
pcf8574: pcf_inputs_1to16
number: 2
mode:
input: true
@@ -238,7 +233,7 @@ binary_sensor:
name: 'IN_04'
id: in_04
pin:
pcf8574: pcf_inputs_1to14
pcf8574: pcf_inputs_1to16
number: 3
mode:
input: true
@@ -251,7 +246,7 @@ binary_sensor:
name: 'IN_05'
id: in_05
pin:
pcf8574: pcf_inputs_1to14
pcf8574: pcf_inputs_1to16
number: 4
mode:
input: true
@@ -264,7 +259,7 @@ binary_sensor:
name: 'IN_06'
id: in_06
pin:
pcf8574: pcf_inputs_1to14
pcf8574: pcf_inputs_1to16
number: 5
mode:
input: true
@@ -277,7 +272,7 @@ binary_sensor:
name: 'IN_07'
id: in_07
pin:
pcf8574: pcf_inputs_1to14
pcf8574: pcf_inputs_1to16
number: 6
mode:
input: true
@@ -290,8 +285,8 @@ binary_sensor:
name: 'IN_08'
id: in_08
pin:
pcf8574: pcf_inputs_1to14
number: 8
pcf8574: pcf_inputs_1to16
number: 7
mode:
input: true
inverted: true
@@ -303,8 +298,8 @@ binary_sensor:
name: 'IN_09'
id: in_09
pin:
pcf8574: pcf_inputs_1to14
number: 9
pcf8574: pcf_inputs_1to16
number: 8
mode:
input: true
inverted: true
@@ -316,8 +311,8 @@ binary_sensor:
name: 'IN_10'
id: in_10
pin:
pcf8574: pcf_inputs_1to14
number: 10
pcf8574: pcf_inputs_1to16
number: 9
mode:
input: true
inverted: true
@@ -329,8 +324,8 @@ binary_sensor:
name: 'IN_11'
id: in_11
pin:
pcf8574: pcf_inputs_1to14
number: 11
pcf8574: pcf_inputs_1to16
number: 10
mode:
input: true
inverted: true
@@ -342,8 +337,8 @@ binary_sensor:
name: 'IN_12'
id: in_12
pin:
pcf8574: pcf_inputs_1to14
number: 12
pcf8574: pcf_inputs_1to16
number: 11
mode:
input: true
inverted: true
@@ -355,8 +350,8 @@ binary_sensor:
name: 'IN_13'
id: in_13
pin:
pcf8574: pcf_inputs_1to14
number: 13
pcf8574: pcf_inputs_1to16
number: 12
mode:
input: true
inverted: true
@@ -368,8 +363,8 @@ binary_sensor:
name: 'IN_14'
id: in_14
pin:
pcf8574: pcf_inputs_1to14
number: 14
pcf8574: pcf_inputs_1to16
number: 13
mode:
input: true
inverted: true
@@ -381,8 +376,8 @@ binary_sensor:
name: 'IN_15'
id: in_15
pin:
pcf8574: pcf_inputs_15to28
number: 6
pcf8574: pcf_inputs_1to16
number: 14
mode:
input: true
inverted: true
@@ -394,8 +389,8 @@ binary_sensor:
name: 'IN_16'
id: in_16
pin:
pcf8574: pcf_inputs_15to28
number: 5
pcf8574: pcf_inputs_1to16
number: 15
mode:
input: true
inverted: true
@@ -407,8 +402,8 @@ binary_sensor:
name: 'IN_17'
id: in_17
pin:
pcf8574: pcf_inputs_15to28
number: 4
pcf8574: pcf_inputs_17to32
number: 7
mode:
input: true
inverted: true
@@ -420,8 +415,8 @@ binary_sensor:
name: 'IN_18'
id: in_18
pin:
pcf8574: pcf_inputs_15to28
number: 3
pcf8574: pcf_inputs_17to32
number: 6
mode:
input: true
inverted: true
@@ -433,8 +428,8 @@ binary_sensor:
name: 'IN_19'
id: in_19
pin:
pcf8574: pcf_inputs_15to28
number: 2
pcf8574: pcf_inputs_17to32
number: 5
mode:
input: true
inverted: true
@@ -446,8 +441,8 @@ binary_sensor:
name: 'IN_20'
id: in_20
pin:
pcf8574: pcf_inputs_15to28
number: 1
pcf8574: pcf_inputs_17to32
number: 4
mode:
input: true
inverted: true
@@ -459,8 +454,8 @@ binary_sensor:
name: 'IN_21'
id: in_21
pin:
pcf8574: pcf_inputs_15to28
number: 0
pcf8574: pcf_inputs_17to32
number: 3
mode:
input: true
inverted: true
@@ -472,8 +467,8 @@ binary_sensor:
name: 'IN_22'
id: in_22
pin:
pcf8574: pcf_inputs_15to28
number: 8
pcf8574: pcf_inputs_17to32
number: 2
mode:
input: true
inverted: true
@@ -485,8 +480,8 @@ binary_sensor:
name: 'IN_23'
id: in_23
pin:
pcf8574: pcf_inputs_15to28
number: 9
pcf8574: pcf_inputs_17to32
number: 1
mode:
input: true
inverted: true
@@ -498,8 +493,8 @@ binary_sensor:
name: 'IN_24'
id: in_24
pin:
pcf8574: pcf_inputs_15to28
number: 10
pcf8574: pcf_inputs_17to32
number: 0
mode:
input: true
inverted: true
@@ -511,8 +506,8 @@ binary_sensor:
name: 'IN_25'
id: in_25
pin:
pcf8574: pcf_inputs_15to28
number: 11
pcf8574: pcf_inputs_17to32
number: 8
mode:
input: true
inverted: true
@@ -524,8 +519,8 @@ binary_sensor:
name: 'IN_26'
id: in_26
pin:
pcf8574: pcf_inputs_15to28
number: 12
pcf8574: pcf_inputs_17to32
number: 9
mode:
input: true
inverted: true
@@ -537,8 +532,8 @@ binary_sensor:
name: 'IN_27'
id: in_27
pin:
pcf8574: pcf_inputs_15to28
number: 13
pcf8574: pcf_inputs_17to32
number: 10
mode:
input: true
inverted: true
@@ -550,8 +545,8 @@ binary_sensor:
name: 'IN_28'
id: in_28
pin:
pcf8574: pcf_inputs_15to28
number: 14
pcf8574: pcf_inputs_17to32
number: 11
mode:
input: true
inverted: true
@@ -563,8 +558,8 @@ binary_sensor:
name: 'IN_29'
id: in_29
pin:
pcf8574: pcf_inputs_28to35_menu
number: 0
pcf8574: pcf_inputs_17to32
number: 12
mode:
input: true
inverted: true
@@ -576,8 +571,8 @@ binary_sensor:
name: 'IN_30'
id: in_30
pin:
pcf8574: pcf_inputs_28to35_menu
number: 1
pcf8574: pcf_inputs_17to32
number: 13
mode:
input: true
inverted: true
@@ -589,8 +584,8 @@ binary_sensor:
name: 'IN_31'
id: in_31
pin:
pcf8574: pcf_inputs_28to35_menu
number: 2
pcf8574: pcf_inputs_17to32
number: 14
mode:
input: true
inverted: true
@@ -602,8 +597,8 @@ binary_sensor:
name: 'IN_32'
id: in_32
pin:
pcf8574: pcf_inputs_28to35_menu
number: 3
pcf8574: pcf_inputs_17to32
number: 15
mode:
input: true
inverted: true
@@ -614,8 +609,7 @@ binary_sensor:
- platform: gpio
name: 'IN_33'
pin:
pcf8574: pcf_inputs_28to35_menu
number: 4
number: GPIO33
mode:
input: true
inverted: true
@@ -623,8 +617,7 @@ binary_sensor:
- platform: gpio
name: 'IN_34'
pin:
pcf8574: pcf_inputs_28to35_menu
number: 5
number: GPIO17
mode:
input: true
inverted: true
@@ -632,11 +625,12 @@ binary_sensor:
- platform: gpio
name: 'IN_35'
pin:
pcf8574: pcf_inputs_28to35_menu
number: 6
number: GPIO12
mode:
input: true
inverted: true
pullup: true
inverted: false
######################
### MODBUS SECTION ###
######################
@@ -659,3 +653,8 @@ binary_sensor:
# modbus_id: mod_bus
# setup_priority: -10
# update_interval: 60s
mode:
input: true
pullup: true
inverted: false

View File

@@ -5,9 +5,9 @@ pcf8574:
- id: 'pcf_left'
address: 0x21
pcf8575: true
- id: 'mcp_inputs_1to16'
- id: 'pcf_inputs_1to16'
address: 0x26
pcf8575: true
- id: 'mcp_inputs_17to32'
- id: 'pcf_inputs_17to32'
address: 0x27
pcf8575: true