From b53356ee8e96ddc6134ebd470a716df9cb98c445 Mon Sep 17 00:00:00 2001 From: wedr0wycz <98967693+wedr0wycz@users.noreply.github.com> Date: Thu, 19 Sep 2024 21:25:48 +0200 Subject: [PATCH 1/8] change id name --- devices_v0_4/pcf.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices_v0_4/pcf.yaml b/devices_v0_4/pcf.yaml index 8463af2..f2b0f38 100644 --- a/devices_v0_4/pcf.yaml +++ b/devices_v0_4/pcf.yaml @@ -1,8 +1,8 @@ pcf8574: - - id: 'pcf_right' + - id: 'pcf_inputs_1to14' address: 0x20 pcf8575: true - - id: 'pcf_left' + - id: 'pcf_inputs_15to28' address: 0x21 pcf8575: true - id: 'mcp_inputs_1to16' From fba8511135d538309e40f42e020e218535f5a815 Mon Sep 17 00:00:00 2001 From: wedr0wycz <98967693+wedr0wycz@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:41:05 +0200 Subject: [PATCH 2/8] Update pcf.yaml --- devices_v0_4/pcf.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices_v0_4/pcf.yaml b/devices_v0_4/pcf.yaml index f2b0f38..54c6743 100644 --- a/devices_v0_4/pcf.yaml +++ b/devices_v0_4/pcf.yaml @@ -1,8 +1,8 @@ pcf8574: - - id: 'pcf_inputs_1to14' + - id: 'pcf_left' address: 0x20 pcf8575: true - - id: 'pcf_inputs_15to28' + - id: 'pcf_right' address: 0x21 pcf8575: true - id: 'mcp_inputs_1to16' From 56801a916c41900774f3ea973a53cd89c1624f9f Mon Sep 17 00:00:00 2001 From: wedr0wycz <98967693+wedr0wycz@users.noreply.github.com> Date: Mon, 23 Sep 2024 16:12:34 +0200 Subject: [PATCH 3/8] Update boneio-32x10_switches_v0_4.yaml --- boneio-32x10_switches_v0_4.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boneio-32x10_switches_v0_4.yaml b/boneio-32x10_switches_v0_4.yaml index 1a294c5..a8d98a9 100644 --- a/boneio-32x10_switches_v0_4.yaml +++ b/boneio-32x10_switches_v0_4.yaml @@ -30,7 +30,8 @@ dashboard_import: packages: internals_packages: - url: https://github.com/boneIO-eu/esphome + #url: https://github.com/boneIO-eu/esphome + url: https://github.com/wedr0wycz/esphome-fix ref: v1.1.0 files: [ 'devices/serial_no.yaml', From 1b19e7e2a9e2b93a12b9ba4668d9a74b77fc3cfd Mon Sep 17 00:00:00 2001 From: wedr0wycz <98967693+wedr0wycz@users.noreply.github.com> Date: Sat, 5 Oct 2024 21:05:05 +0200 Subject: [PATCH 4/8] corrected id name --- devices_v0_4/pcf.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/devices_v0_4/pcf.yaml b/devices_v0_4/pcf.yaml index 54c6743..cc813e5 100644 --- a/devices_v0_4/pcf.yaml +++ b/devices_v0_4/pcf.yaml @@ -1,13 +1,13 @@ pcf8574: - - id: 'pcf_left' + - id: 'pcf_right' address: 0x20 pcf8575: true - - id: 'pcf_right' + - 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 From 9441de7db3dcddc3fefa238fae01b42125f136ea Mon Sep 17 00:00:00 2001 From: wedr0wycz <98967693+wedr0wycz@users.noreply.github.com> Date: Sat, 5 Oct 2024 21:11:23 +0200 Subject: [PATCH 5/8] corrected input id name --- boneio-32x10_switches_v0_4.yaml | 580 +++++++++++++------------------- 1 file changed, 227 insertions(+), 353 deletions(-) diff --git a/boneio-32x10_switches_v0_4.yaml b/boneio-32x10_switches_v0_4.yaml index a8d98a9..7eba391 100644 --- a/boneio-32x10_switches_v0_4.yaml +++ b/boneio-32x10_switches_v0_4.yaml @@ -2,7 +2,7 @@ substitutions: name: boneio-32-sw-04 friendly_name: 'BoneIO ESP 32x10 Switches' serial_prefix: 'esp' #Don't change it. - + esphome: name: '${name}' friendly_name: '${friendly_name}' @@ -10,7 +10,7 @@ esphome: project: name: boneio.32x10-switches version: '0.4PP' - + esp32: board: nodemcu-32s @@ -22,49 +22,37 @@ ethernet: clk_mode: GPIO0_IN phy_addr: 1 power_pin: GPIO16 - #use_address: + #use_address: 10.10.20.101 dashboard_import: - package_import_url: github://boneIO-eu/esphome/boneio-32x10_switches_v0_4.yaml@latest + package_import_url: github://boneIO-eu/esphome/boneio-24x16_switches_v0_4.yaml@main import_full_config: true packages: internals_packages: - #url: https://github.com/boneIO-eu/esphome - url: https://github.com/wedr0wycz/esphome-fix - ref: v1.1.0 + url: https://github.com/boneIO-eu/esphome + ref: main 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_7/one_wire.yaml', ] - + logger: api: ota: platform: esphome - password: boneio - -# disable web server - for testing only -web_server: - port: 80 - local: true 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 name: 'Switch 01' @@ -197,10 +185,10 @@ switch: binary_sensor: - platform: gpio - name: 'IN_01' + name: "IN_01" id: in_01 pin: - pcf8574: pcf_inputs_1to14 + pcf8574: pcf_inputs_1to16 number: 0 mode: input: true @@ -210,10 +198,10 @@ binary_sensor: - switch.toggle: switch_01 - platform: gpio - name: 'IN_02' + name: "IN_02" id: in_02 pin: - pcf8574: pcf_inputs_1to14 + pcf8574: pcf_inputs_1to16 number: 1 mode: input: true @@ -223,440 +211,326 @@ binary_sensor: - switch.toggle: switch_02 - platform: gpio - name: 'IN_03' + name: "IN_03" id: in_03 pin: - pcf8574: pcf_inputs_1to14 + pcf8574: pcf_inputs_1to16 number: 2 mode: input: true inverted: true - on_press: - then: - - switch.toggle: switch_03 - platform: gpio - name: 'IN_04' + name: "IN_04" id: in_04 pin: - pcf8574: pcf_inputs_1to14 + pcf8574: pcf_inputs_1to16 number: 3 mode: input: true inverted: true - on_press: - then: - - switch.toggle: switch_04 - platform: gpio - name: 'IN_05' + name: "IN_05" id: in_05 pin: - pcf8574: pcf_inputs_1to14 + pcf8574: pcf_inputs_1to16 number: 4 mode: input: true inverted: true - on_press: - then: - - switch.toggle: switch_05 - platform: gpio - name: 'IN_06' + name: "IN_06" id: in_06 pin: - pcf8574: pcf_inputs_1to14 + pcf8574: pcf_inputs_1to16 number: 5 mode: input: true inverted: true - on_press: - then: - - switch.toggle: switch_06 - platform: gpio - name: 'IN_07' + name: "IN_07" id: in_07 pin: - pcf8574: pcf_inputs_1to14 + pcf8574: pcf_inputs_1to16 number: 6 mode: input: true inverted: true - on_press: - then: - - switch.toggle: switch_07 - platform: gpio - name: 'IN_08' + name: "IN_08" id: in_08 pin: - pcf8574: pcf_inputs_1to14 - number: 8 + pcf8574: pcf_inputs_1to16 + number: 7 mode: input: true inverted: true - on_press: - then: - - switch.toggle: switch_08 - platform: gpio - name: 'IN_09' + name: "IN_09" id: in_09 pin: - pcf8574: pcf_inputs_1to14 - number: 9 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_09 - - - platform: gpio - name: 'IN_10' - id: in_10 - pin: - pcf8574: pcf_inputs_1to14 - number: 10 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_10 - - - platform: gpio - name: 'IN_11' - id: in_11 - pin: - pcf8574: pcf_inputs_1to14 - number: 11 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_11 - - - platform: gpio - name: 'IN_12' - id: in_12 - pin: - pcf8574: pcf_inputs_1to14 - number: 12 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_12 - - - platform: gpio - name: 'IN_13' - id: in_13 - pin: - pcf8574: pcf_inputs_1to14 - number: 13 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_13 - - - platform: gpio - name: 'IN_14' - id: in_14 - pin: - pcf8574: pcf_inputs_1to14 - number: 14 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_14 - - - platform: gpio - name: 'IN_15' - id: in_15 - pin: - pcf8574: pcf_inputs_15to28 - number: 6 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_15 - - - platform: gpio - name: 'IN_16' - id: in_16 - pin: - pcf8574: pcf_inputs_15to28 - number: 5 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_16 - - - platform: gpio - name: 'IN_17' - id: in_17 - pin: - pcf8574: pcf_inputs_15to28 - number: 4 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_17 - - - platform: gpio - name: 'IN_18' - id: in_18 - pin: - pcf8574: pcf_inputs_15to28 - number: 3 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_18 - - - platform: gpio - name: 'IN_19' - id: in_19 - pin: - pcf8574: pcf_inputs_15to28 - number: 2 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_19 - - - platform: gpio - name: 'IN_20' - id: in_20 - pin: - pcf8574: pcf_inputs_15to28 - number: 1 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_20 - - - platform: gpio - name: 'IN_21' - id: in_21 - pin: - pcf8574: pcf_inputs_15to28 - number: 0 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_21 - - - platform: gpio - name: 'IN_22' - id: in_22 - pin: - pcf8574: pcf_inputs_15to28 + pcf8574: pcf_inputs_1to16 number: 8 mode: input: true inverted: true - on_press: - then: - - switch.toggle: switch_22 - platform: gpio - name: 'IN_23' - id: in_23 + name: "IN_10" + id: in_10 pin: - pcf8574: pcf_inputs_15to28 + pcf8574: pcf_inputs_1to16 number: 9 mode: input: true inverted: true - on_press: - then: - - switch.toggle: switch_23 - platform: gpio - name: 'IN_24' - id: in_24 + name: "IN_11" + id: in_11 pin: - pcf8574: pcf_inputs_15to28 + pcf8574: pcf_inputs_1to16 number: 10 mode: input: true inverted: true - on_press: - then: - - switch.toggle: switch_24 - platform: gpio - name: 'IN_25' - id: in_25 + name: "IN_12" + id: in_12 pin: - pcf8574: pcf_inputs_15to28 + pcf8574: pcf_inputs_1to16 number: 11 mode: input: true inverted: true - on_press: - then: - - switch.toggle: switch_25 - platform: gpio - name: 'IN_26' - id: in_26 + name: "IN_13" + id: in_13 pin: - pcf8574: pcf_inputs_15to28 + pcf8574: pcf_inputs_1to16 number: 12 mode: input: true inverted: true - on_press: - then: - - switch.toggle: switch_26 - platform: gpio - name: 'IN_27' - id: in_27 + name: "IN_14" + id: in_14 pin: - pcf8574: pcf_inputs_15to28 + pcf8574: pcf_inputs_1to16 number: 13 mode: input: true inverted: true - on_press: - then: - - switch.toggle: switch_27 - platform: gpio - name: 'IN_28' - id: in_28 + name: "IN_15" + id: in_15 pin: - pcf8574: pcf_inputs_15to28 + pcf8574: pcf_inputs_1to16 number: 14 mode: input: true inverted: true - on_press: - then: - - switch.toggle: switch_28 - platform: gpio - name: 'IN_29' - id: in_29 + name: "IN_16" + id: in_16 pin: - pcf8574: pcf_inputs_28to35_menu - number: 0 - mode: - input: true - inverted: true - on_press: - then: - - switch.toggle: switch_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: - - switch.toggle: switch_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: - - switch.toggle: switch_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: - - switch.toggle: switch_32 - - - platform: gpio - name: 'IN_33' - pin: - pcf8574: pcf_inputs_28to35_menu - number: 4 + pcf8574: pcf_inputs_1to16 + number: 15 mode: input: true inverted: true - platform: gpio - name: 'IN_34' + name: "IN_17" + id: in_17 pin: - pcf8574: pcf_inputs_28to35_menu + pcf8574: pcf_inputs_17to32 + number: 7 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_18" + id: in_18 + pin: + pcf8574: pcf_inputs_17to32 + number: 6 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_19" + id: in_19 + pin: + pcf8574: pcf_inputs_17to32 number: 5 mode: input: true inverted: true - platform: gpio - name: 'IN_35' + name: "IN_20 28" + id: in_20 pin: - pcf8574: pcf_inputs_28to35_menu - number: 6 + pcf8574: pcf_inputs_17to32 + number: 4 mode: input: true inverted: true -###################### -### MODBUS SECTION ### -###################### -# UNCOMMENT BELOW TO USE MODBUS -# uart: -# id: uart_pin14_15 -# rx_pin: GPIO14 -# tx_pin: GPIO15 -# baud_rate: 9600 -# stop_bits: 1 -# modbus: -# send_wait_time: 200ms -# uart_id: uart_pin14_15 -# id: boneio_modbus + - platform: gpio + name: "IN_21" + id: in_21 + pin: + pcf8574: pcf_inputs_17to32 + number: 3 + mode: + input: true + inverted: true -# modbus_controller: -# - id: YOURDEVICE ID -# address: 0x09 -# modbus_id: mod_bus -# setup_priority: -10 -# update_interval: 60s + - platform: gpio + name: "IN_22" + id: in_22 + pin: + pcf8574: pcf_inputs_17to32 + number: 2 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_23" + id: in_23 + pin: + pcf8574: pcf_inputs_17to32 + number: 1 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_24" + id: in_24 + pin: + pcf8574: pcf_inputs_17to32 + number: 0 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_25" + id: in_25 + pin: + pcf8574: pcf_inputs_17to32 + number: 8 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_26" + id: in_26 + pin: + pcf8574: pcf_inputs_17to32 + number: 9 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_27" + id: in_27 + pin: + pcf8574: pcf_inputs_17to32 + number: 10 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_28" + id: in_28 + pin: + pcf8574: pcf_inputs_17to32 + number: 11 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_29" + id: in_29 + pin: + pcf8574: pcf_inputs_17to32 + number: 12 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_30" + id: in_30 + pin: + pcf8574: pcf_inputs_17to32 + number: 13 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_31" + id: in_31 + pin: + pcf8574: pcf_inputs_17to32 + number: 14 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_32" + id: in_32 + pin: + pcf8574: pcf_inputs_17to32 + number: 15 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_33" + pin: + number: GPIO33 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_34" + pin: + number: GPIO17 + mode: + input: true + inverted: true + + - platform: gpio + name: "IN_35" + pin: + number: GPIO12 + mode: + input: true + pullup: true + inverted: false From 3e6e24db28108914485dc09f29356d3a06b2b37c Mon Sep 17 00:00:00 2001 From: wedr0wycz <98967693+wedr0wycz@users.noreply.github.com> Date: Sun, 6 Oct 2024 14:48:03 +0200 Subject: [PATCH 6/8] minor editorial corrections --- boneio-32x10_switches_v0_4.yaml | 200 +++++++++++++++++++++++++------- 1 file changed, 159 insertions(+), 41 deletions(-) diff --git a/boneio-32x10_switches_v0_4.yaml b/boneio-32x10_switches_v0_4.yaml index 7eba391..535d377 100644 --- a/boneio-32x10_switches_v0_4.yaml +++ b/boneio-32x10_switches_v0_4.yaml @@ -2,7 +2,7 @@ substitutions: name: boneio-32-sw-04 friendly_name: 'BoneIO ESP 32x10 Switches' serial_prefix: 'esp' #Don't change it. - + esphome: name: '${name}' friendly_name: '${friendly_name}' @@ -10,7 +10,7 @@ esphome: project: name: boneio.32x10-switches version: '0.4PP' - + esp32: board: nodemcu-32s @@ -22,10 +22,10 @@ ethernet: clk_mode: GPIO0_IN phy_addr: 1 power_pin: GPIO16 - #use_address: 10.10.20.101 + #use_address: dashboard_import: - package_import_url: github://boneIO-eu/esphome/boneio-24x16_switches_v0_4.yaml@main + package_import_url: github://boneIO-eu/esphome/boneio-32x10_switches_v0_4.yaml@main import_full_config: true packages: @@ -42,7 +42,7 @@ packages: 'boards/32x10_output.yaml', # devices_v0_7/one_wire.yaml', ] - + logger: api: ota: @@ -185,7 +185,7 @@ switch: binary_sensor: - platform: gpio - name: "IN_01" + name: 'IN_01' id: in_01 pin: pcf8574: pcf_inputs_1to16 @@ -198,7 +198,7 @@ binary_sensor: - switch.toggle: switch_01 - platform: gpio - name: "IN_02" + name: 'IN_02' id: in_02 pin: pcf8574: pcf_inputs_1to16 @@ -211,7 +211,7 @@ binary_sensor: - switch.toggle: switch_02 - platform: gpio - name: "IN_03" + name: 'IN_03' id: in_03 pin: pcf8574: pcf_inputs_1to16 @@ -219,9 +219,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_03 - platform: gpio - name: "IN_04" + name: 'IN_04' id: in_04 pin: pcf8574: pcf_inputs_1to16 @@ -229,9 +232,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_04 - platform: gpio - name: "IN_05" + name: 'IN_05' id: in_05 pin: pcf8574: pcf_inputs_1to16 @@ -239,9 +245,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_05 - platform: gpio - name: "IN_06" + name: 'IN_06' id: in_06 pin: pcf8574: pcf_inputs_1to16 @@ -249,9 +258,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_06 - platform: gpio - name: "IN_07" + name: 'IN_07' id: in_07 pin: pcf8574: pcf_inputs_1to16 @@ -259,9 +271,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_07 - platform: gpio - name: "IN_08" + name: 'IN_08' id: in_08 pin: pcf8574: pcf_inputs_1to16 @@ -269,9 +284,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_08 - platform: gpio - name: "IN_09" + name: 'IN_09' id: in_09 pin: pcf8574: pcf_inputs_1to16 @@ -279,9 +297,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_09 - platform: gpio - name: "IN_10" + name: 'IN_10' id: in_10 pin: pcf8574: pcf_inputs_1to16 @@ -289,9 +310,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_10 - platform: gpio - name: "IN_11" + name: 'IN_11' id: in_11 pin: pcf8574: pcf_inputs_1to16 @@ -299,9 +323,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_11 - platform: gpio - name: "IN_12" + name: 'IN_12' id: in_12 pin: pcf8574: pcf_inputs_1to16 @@ -309,9 +336,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_12 - platform: gpio - name: "IN_13" + name: 'IN_13' id: in_13 pin: pcf8574: pcf_inputs_1to16 @@ -319,9 +349,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_13 - platform: gpio - name: "IN_14" + name: 'IN_14' id: in_14 pin: pcf8574: pcf_inputs_1to16 @@ -329,9 +362,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_14 - platform: gpio - name: "IN_15" + name: 'IN_15' id: in_15 pin: pcf8574: pcf_inputs_1to16 @@ -339,9 +375,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_15 - platform: gpio - name: "IN_16" + name: 'IN_16' id: in_16 pin: pcf8574: pcf_inputs_1to16 @@ -349,9 +388,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_16 - platform: gpio - name: "IN_17" + name: 'IN_17' id: in_17 pin: pcf8574: pcf_inputs_17to32 @@ -359,9 +401,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_17 - platform: gpio - name: "IN_18" + name: 'IN_18' id: in_18 pin: pcf8574: pcf_inputs_17to32 @@ -369,9 +414,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_18 - platform: gpio - name: "IN_19" + name: 'IN_19' id: in_19 pin: pcf8574: pcf_inputs_17to32 @@ -379,9 +427,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_19 - platform: gpio - name: "IN_20 28" + name: 'IN_20' id: in_20 pin: pcf8574: pcf_inputs_17to32 @@ -389,9 +440,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_20 - platform: gpio - name: "IN_21" + name: 'IN_21' id: in_21 pin: pcf8574: pcf_inputs_17to32 @@ -399,9 +453,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_21 - platform: gpio - name: "IN_22" + name: 'IN_22' id: in_22 pin: pcf8574: pcf_inputs_17to32 @@ -409,9 +466,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_22 - platform: gpio - name: "IN_23" + name: 'IN_23' id: in_23 pin: pcf8574: pcf_inputs_17to32 @@ -419,9 +479,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_23 - platform: gpio - name: "IN_24" + name: 'IN_24' id: in_24 pin: pcf8574: pcf_inputs_17to32 @@ -429,9 +492,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_24 - platform: gpio - name: "IN_25" + name: 'IN_25' id: in_25 pin: pcf8574: pcf_inputs_17to32 @@ -439,9 +505,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_25 - platform: gpio - name: "IN_26" + name: 'IN_26' id: in_26 pin: pcf8574: pcf_inputs_17to32 @@ -449,9 +518,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_26 - platform: gpio - name: "IN_27" + name: 'IN_27' id: in_27 pin: pcf8574: pcf_inputs_17to32 @@ -459,9 +531,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_27 - platform: gpio - name: "IN_28" + name: 'IN_28' id: in_28 pin: pcf8574: pcf_inputs_17to32 @@ -469,9 +544,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_28 - platform: gpio - name: "IN_29" + name: 'IN_29' id: in_29 pin: pcf8574: pcf_inputs_17to32 @@ -479,9 +557,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_29 - platform: gpio - name: "IN_30" + name: 'IN_30' id: in_30 pin: pcf8574: pcf_inputs_17to32 @@ -489,9 +570,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_30 - platform: gpio - name: "IN_31" + name: 'IN_31' id: in_31 pin: pcf8574: pcf_inputs_17to32 @@ -499,9 +583,12 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_31 - platform: gpio - name: "IN_32" + name: 'IN_32' id: in_32 pin: pcf8574: pcf_inputs_17to32 @@ -509,17 +596,20 @@ binary_sensor: mode: input: true inverted: true + on_press: + then: + - switch.toggle: switch_32 - platform: gpio - name: "IN_33" + name: 'IN_33' pin: number: GPIO33 mode: input: true - inverted: true + inverted: true - platform: gpio - name: "IN_34" + name: 'IN_34' pin: number: GPIO17 mode: @@ -527,10 +617,38 @@ binary_sensor: inverted: true - platform: gpio - name: "IN_35" + name: 'IN_35' pin: number: GPIO12 mode: input: true pullup: true inverted: false + +###################### +### MODBUS SECTION ### +###################### +# UNCOMMENT BELOW TO USE MODBUS +# uart: +# id: uart_pin14_15 +# rx_pin: GPIO14 +# tx_pin: GPIO15 +# baud_rate: 9600 +# stop_bits: 1 + +# modbus: +# send_wait_time: 200ms +# uart_id: uart_pin14_15 +# id: boneio_modbus + +# modbus_controller: +# - id: YOURDEVICE ID +# address: 0x09 +# modbus_id: mod_bus +# setup_priority: -10 +# update_interval: 60s + + mode: + input: true + pullup: true + inverted: false From 9e95318de60f1163dc2eb0bb677cc8cb4f3fb462 Mon Sep 17 00:00:00 2001 From: Pawel Date: Mon, 7 Oct 2024 12:33:58 +0200 Subject: [PATCH 7/8] Revert to @latest and ref version --- boneio-32x10_switches_v0_4.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/boneio-32x10_switches_v0_4.yaml b/boneio-32x10_switches_v0_4.yaml index 535d377..ecf5e3a 100644 --- a/boneio-32x10_switches_v0_4.yaml +++ b/boneio-32x10_switches_v0_4.yaml @@ -25,13 +25,13 @@ ethernet: #use_address: dashboard_import: - package_import_url: github://boneIO-eu/esphome/boneio-32x10_switches_v0_4.yaml@main + package_import_url: github://boneIO-eu/esphome/boneio-32x10_switches_v0_4.yaml@latest import_full_config: true packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: main + ref: v1.3.0 files: [ 'devices/serial_no.yaml', 'devices_v0_4/display.yaml', @@ -40,7 +40,8 @@ packages: 'devices_v0_4/lm75b.yaml', 'devices_v0_4/pcf.yaml', 'boards/32x10_output.yaml', - # devices_v0_7/one_wire.yaml', + # 'devices_v0_4/time.yaml', + # 'devices_v0_7/one_wire.yaml', ] logger: From 40bd165cf6bd8df4aedf1219204c4cc650bb3698 Mon Sep 17 00:00:00 2001 From: pszafer Date: Mon, 7 Oct 2024 14:40:06 +0200 Subject: [PATCH 8/8] v1.4.0 --- boneio-24x16_switches_v0_5-v0_6.yaml | 2 +- boneio-32x10_lights_v0_5-v0_6.yaml | 2 +- boneio-32x10_switches_v0_4.yaml | 29 ++++++++++-------------- boneio-32x10_switches_v0_5-v0_6.yaml | 2 +- boneio-32x10_switches_v0_7.yaml | 2 +- boneio-8x10A_v0_1.yaml | 4 ++-- boneio-cover_mix_lights_v0_5-v0_6.yaml | 2 +- boneio-cover_mix_switches_v0_5-v0_6.yaml | 2 +- boneio-cover_v0_5-v0_6.yaml | 2 +- boneio-dimmer_2rgbw-v0_3.yaml | 2 +- boneio-dimmer_4cct-v0_3.yaml | 2 +- boneio-dimmer_8ch-v0_3.yaml | 2 +- boneio-mosfet48_lights_v0_7.yaml | 6 ++--- boneio-mosfet48_switches_v0_7.yaml | 6 ++--- devices_v0_4/pcf.yaml | 4 ++-- 15 files changed, 32 insertions(+), 37 deletions(-) diff --git a/boneio-24x16_switches_v0_5-v0_6.yaml b/boneio-24x16_switches_v0_5-v0_6.yaml index cfcba6d..d588bf0 100644 --- a/boneio-24x16_switches_v0_5-v0_6.yaml +++ b/boneio-24x16_switches_v0_5-v0_6.yaml @@ -30,7 +30,7 @@ dashboard_import: packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + ref: v1.4.0 files: [ 'devices/buzzer.yaml', 'devices/serial_no.yaml', diff --git a/boneio-32x10_lights_v0_5-v0_6.yaml b/boneio-32x10_lights_v0_5-v0_6.yaml index e8c642a..2389847 100644 --- a/boneio-32x10_lights_v0_5-v0_6.yaml +++ b/boneio-32x10_lights_v0_5-v0_6.yaml @@ -30,7 +30,7 @@ dashboard_import: packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + ref: v1.4.0 files: [ 'devices/buzzer.yaml', 'devices/serial_no.yaml', diff --git a/boneio-32x10_switches_v0_4.yaml b/boneio-32x10_switches_v0_4.yaml index 2fd499c..ae5bf17 100644 --- a/boneio-32x10_switches_v0_4.yaml +++ b/boneio-32x10_switches_v0_4.yaml @@ -30,18 +30,18 @@ dashboard_import: packages: internals_packages: - url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + url: https://github.com/boneIO-eu/esphome + ref: v1.4.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_4/time.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: @@ -621,7 +621,7 @@ binary_sensor: mode: input: true inverted: true - + - platform: gpio name: 'IN_35' pin: @@ -630,7 +630,6 @@ binary_sensor: input: true pullup: true inverted: false - ###################### ### MODBUS SECTION ### ###################### @@ -654,7 +653,3 @@ binary_sensor: # setup_priority: -10 # update_interval: 60s - mode: - input: true - pullup: true - inverted: false diff --git a/boneio-32x10_switches_v0_5-v0_6.yaml b/boneio-32x10_switches_v0_5-v0_6.yaml index 3fc3a58..eb131b8 100644 --- a/boneio-32x10_switches_v0_5-v0_6.yaml +++ b/boneio-32x10_switches_v0_5-v0_6.yaml @@ -30,7 +30,7 @@ dashboard_import: packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + ref: v1.4.0 files: [ 'devices/buzzer.yaml', 'devices/serial_no.yaml', diff --git a/boneio-32x10_switches_v0_7.yaml b/boneio-32x10_switches_v0_7.yaml index c360586..95e21a0 100644 --- a/boneio-32x10_switches_v0_7.yaml +++ b/boneio-32x10_switches_v0_7.yaml @@ -30,7 +30,7 @@ dashboard_import: packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + ref: v1.4.0 files: [ 'devices/buzzer.yaml', 'devices/serial_no.yaml', diff --git a/boneio-8x10A_v0_1.yaml b/boneio-8x10A_v0_1.yaml index ec08812..eed927c 100644 --- a/boneio-8x10A_v0_1.yaml +++ b/boneio-8x10A_v0_1.yaml @@ -30,13 +30,13 @@ dashboard_import: packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + ref: v1.4.0 files: [ 'devices/buzzer.yaml', 'devices/serial_no.yaml', 'devices/dimmer_i2c.yaml', - 'devices_v0_7/lm75b.yaml', + 'devices_v0_7-v0_9/lm75b.yaml', ] logger: diff --git a/boneio-cover_mix_lights_v0_5-v0_6.yaml b/boneio-cover_mix_lights_v0_5-v0_6.yaml index dcba8ba..eeec704 100644 --- a/boneio-cover_mix_lights_v0_5-v0_6.yaml +++ b/boneio-cover_mix_lights_v0_5-v0_6.yaml @@ -30,7 +30,7 @@ dashboard_import: packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + ref: v1.4.0 files: [ 'devices/buzzer.yaml', 'devices/serial_no.yaml', diff --git a/boneio-cover_mix_switches_v0_5-v0_6.yaml b/boneio-cover_mix_switches_v0_5-v0_6.yaml index 055f1bb..44cf7ff 100644 --- a/boneio-cover_mix_switches_v0_5-v0_6.yaml +++ b/boneio-cover_mix_switches_v0_5-v0_6.yaml @@ -30,7 +30,7 @@ dashboard_import: packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + ref: v1.4.0 files: [ 'devices/buzzer.yaml', 'devices/serial_no.yaml', diff --git a/boneio-cover_v0_5-v0_6.yaml b/boneio-cover_v0_5-v0_6.yaml index 09e4811..c42f92d 100644 --- a/boneio-cover_v0_5-v0_6.yaml +++ b/boneio-cover_v0_5-v0_6.yaml @@ -30,7 +30,7 @@ dashboard_import: packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + ref: v1.4.0 files: [ 'devices/buzzer.yaml', 'devices/serial_no.yaml', diff --git a/boneio-dimmer_2rgbw-v0_3.yaml b/boneio-dimmer_2rgbw-v0_3.yaml index 49bdc3b..202bfb5 100644 --- a/boneio-dimmer_2rgbw-v0_3.yaml +++ b/boneio-dimmer_2rgbw-v0_3.yaml @@ -21,7 +21,7 @@ external_components: packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + ref: v1.4.0 files: [ 'devices/serial_no.yaml', diff --git a/boneio-dimmer_4cct-v0_3.yaml b/boneio-dimmer_4cct-v0_3.yaml index c3a68af..317e5b2 100644 --- a/boneio-dimmer_4cct-v0_3.yaml +++ b/boneio-dimmer_4cct-v0_3.yaml @@ -21,7 +21,7 @@ external_components: packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + ref: v1.4.0 files: [ 'devices/serial_no.yaml', diff --git a/boneio-dimmer_8ch-v0_3.yaml b/boneio-dimmer_8ch-v0_3.yaml index dfbaecb..fada41e 100644 --- a/boneio-dimmer_8ch-v0_3.yaml +++ b/boneio-dimmer_8ch-v0_3.yaml @@ -21,7 +21,7 @@ external_components: packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + ref: v1.4.0 files: [ 'devices/serial_no.yaml', diff --git a/boneio-mosfet48_lights_v0_7.yaml b/boneio-mosfet48_lights_v0_7.yaml index def5284..dd911bf 100644 --- a/boneio-mosfet48_lights_v0_7.yaml +++ b/boneio-mosfet48_lights_v0_7.yaml @@ -30,15 +30,15 @@ dashboard_import: packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + ref: v1.4.0 files: [ 'devices/buzzer.yaml', 'devices/serial_no.yaml', 'devices_v0_7/display.yaml', 'devices_v0_7/i2c.yaml', 'devices_v0_7-v0_9/ina219.yaml', - 'devices_v0_7/lm75b.yaml', - 'devices_v0_7/pcf_mosfet.yaml', + 'devices_v0_7-v0_9/lm75b.yaml', + 'devices_v0_7-v0_9/pcf_mosfet.yaml', 'boards/mosfet48_output.yaml', # 'devices_v0_7/one_wire.yaml', ] diff --git a/boneio-mosfet48_switches_v0_7.yaml b/boneio-mosfet48_switches_v0_7.yaml index 6fe2baf..2642f30 100644 --- a/boneio-mosfet48_switches_v0_7.yaml +++ b/boneio-mosfet48_switches_v0_7.yaml @@ -30,15 +30,15 @@ dashboard_import: packages: internals_packages: url: https://github.com/boneIO-eu/esphome - ref: v1.3.0 + ref: v1.4.0 files: [ 'devices/buzzer.yaml', 'devices/serial_no.yaml', 'devices_v0_7/display.yaml', 'devices_v0_7/i2c.yaml', 'devices_v0_7-v0_9/ina219.yaml', - 'devices_v0_7/lm75b.yaml', - 'devices_v0_7/pcf_mosfet.yaml', + 'devices_v0_7-v0_9/lm75b.yaml', + 'devices_v0_7-v0_9/pcf_mosfet.yaml', 'boards/mosfet48_output.yaml', # 'devices_v0_7/one_wire.yaml', ] diff --git a/devices_v0_4/pcf.yaml b/devices_v0_4/pcf.yaml index cc813e5..6684253 100644 --- a/devices_v0_4/pcf.yaml +++ b/devices_v0_4/pcf.yaml @@ -1,7 +1,7 @@ pcf8574: - id: 'pcf_right' address: 0x20 - pcf8575: true + pcf8575: true - id: 'pcf_left' address: 0x21 pcf8575: true @@ -10,4 +10,4 @@ pcf8574: pcf8575: true - id: 'pcf_inputs_17to32' address: 0x27 - pcf8575: true + pcf8575: true