Compare commits

...

5 Commits

Author SHA1 Message Date
pszafer
b444a1655a ref v1.0.1 2024-04-09 22:10:38 +02:00
pszafer
242493a957 add version to name 2024-04-09 22:08:28 +02:00
pszafer
a61a38d6c4 fix too many out_16 2024-04-09 21:12:00 +02:00
pszafer
e5d0d3cb0d fix 24x16 MCP 2024-04-09 21:11:04 +02:00
pszafer
888552ace1 remoe lines from display 2024-04-09 18:46:54 +02:00
15 changed files with 92 additions and 72 deletions

View File

@@ -184,15 +184,6 @@ switch:
restore_mode: always off restore_mode: always off
output: output:
- platform: gpio
id: out_16
pin:
pcf8574: pcf_right
number: 8
mode:
output: true
inverted: true
- platform: gpio - platform: gpio
id: out_17 id: out_17
pin: pin:

View File

@@ -9,7 +9,7 @@ esphome:
board: nodemcu-32s board: nodemcu-32s
name_add_mac_suffix: true name_add_mac_suffix: true
project: project:
name: boneio.24x16-switches_v0_5-v0_6 name: boneio.24x16-switches-v0_5-v0_6
version: '1.0' version: '1.0'
ethernet: ethernet:
@@ -22,13 +22,13 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-24x16_switches_v0_5-v0_6.yaml@v1.0.0 package_import_url: github://boneIO-eu/esphome/boneio-24x16_switches_v0_5-v0_6.yaml@v1.0.1
import_full_config: true import_full_config: true
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.0 ref: v1.0.1
files: [ files: [
'devices/buzzer.yaml', 'devices/buzzer.yaml',
'devices_v0_5-v0_6/display.yaml', 'devices_v0_5-v0_6/display.yaml',
@@ -36,7 +36,7 @@ packages:
'devices_v0_5-v0_6/i2c.yaml', 'devices_v0_5-v0_6/i2c.yaml',
'devices_v0_5-v0_6/ina219.yaml', 'devices_v0_5-v0_6/ina219.yaml',
'devices_v0_5-v0_6/lm75b.yaml', 'devices_v0_5-v0_6/lm75b.yaml',
'devices_v0_5-v0_6/pcf.yaml', 'devices_v0_5-v0_6/pcf_with_mcp.yaml',
'boards/24x16_output.yaml', 'boards/24x16_output.yaml',
# 'devices_v0_5-v0_6/one_wire.yaml', # 'devices_v0_5-v0_6/one_wire.yaml',
# 'devices_v0_5-v0_6/uart.yaml', # 'devices_v0_5-v0_6/uart.yaml',

View File

@@ -22,20 +22,20 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-24x16_switches_v0_7.yaml@v1.0.0 package_import_url: github://boneIO-eu/esphome/boneio-24x16_switches_v0_7.yaml@v1.0.1
import_full_config: true import_full_config: true
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.0 ref: v1.0.1
files: [ files: [
'devices/buzzer.yaml', 'devices/buzzer.yaml',
'devices_v0_7/display.yaml', 'devices_v0_7/display.yaml',
'devices_v0_7/i2c.yaml', 'devices_v0_7/i2c.yaml',
'devices_v0_7/ina219.yaml', 'devices_v0_7/ina219.yaml',
'devices_v0_7/lm75b.yaml', 'devices_v0_7/lm75b.yaml',
'devices_v0_7/pcf.yaml', 'devices_v0_7/pcf_with_mcp.yaml',
'boards/24x16_output.yaml', 'boards/24x16_output.yaml',
# 'devices_v0_7/one_wire.yaml', # 'devices_v0_7/one_wire.yaml',
# 'devices_v0_7/uart.yaml', # 'devices_v0_7/uart.yaml',

View File

@@ -1,5 +1,5 @@
substitutions: substitutions:
name: boneio-esp32x10-lights name: boneio-esp32x10-lights-v0_5-v0_6
friendly_name: 'BoneIO ESP 32x10 Lights' friendly_name: 'BoneIO ESP 32x10 Lights'
esphome: esphome:
@@ -22,13 +22,13 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-32x10_lights_v0_5-v0_6.yaml@v1.0.0 package_import_url: github://boneIO-eu/esphome/boneio-32x10_lights_v0_5-v0_6.yaml@v1.0.1
import_full_config: true import_full_config: true
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.0 ref: v1.0.1
files: [ files: [
'devices/buzzer.yaml', 'devices/buzzer.yaml',
'devices_v0_5-v0_6/display.yaml', 'devices_v0_5-v0_6/display.yaml',

View File

@@ -1,5 +1,5 @@
substitutions: substitutions:
name: boneio-esp32x10-lights name: boneio-esp32x10-lights-0.7
friendly_name: 'BoneIO ESP 32x10 Lights' friendly_name: 'BoneIO ESP 32x10 Lights'
esphome: esphome:
@@ -22,13 +22,13 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-32x10_lights_v0_7.yaml@v1.0.0 package_import_url: github://boneIO-eu/esphome/boneio-32x10_lights_v0_7.yaml@v1.0.1
import_full_config: true import_full_config: true
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.0 ref: v1.0.1
files: [ files: [
'devices/buzzer.yaml', 'devices/buzzer.yaml',
'devices_v0_7/display.yaml', 'devices_v0_7/display.yaml',

View File

@@ -1,5 +1,5 @@
substitutions: substitutions:
name: boneio-esp32x10-switches name: boneio-esp32x10-switches-v0_5-v0_6
friendly_name: 'BoneIO ESP 32x10 Switches' friendly_name: 'BoneIO ESP 32x10 Switches'
esphome: esphome:
@@ -22,13 +22,13 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-32x10_switches_v0_5-v0_6.yaml@v1.0.0 package_import_url: github://boneIO-eu/esphome/boneio-32x10_switches_v0_5-v0_6.yaml@v1.0.1
import_full_config: true import_full_config: true
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.0 ref: v1.0.1
files: [ files: [
'devices/buzzer.yaml', 'devices/buzzer.yaml',
'devices_v0_5-v0_6/display.yaml', 'devices_v0_5-v0_6/display.yaml',

View File

@@ -1,5 +1,5 @@
substitutions: substitutions:
name: boneio-esp32x10-switches name: boneio-esp32x10-switches-0.7
friendly_name: 'BoneIO ESP 32x10 Switches' friendly_name: 'BoneIO ESP 32x10 Switches'
esphome: esphome:
@@ -22,13 +22,13 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-32x10_switches_v0_7.yaml@v1.0.0 package_import_url: github://boneIO-eu/esphome/boneio-32x10_switches_v0_7.yaml@v1.0.1
import_full_config: true import_full_config: true
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.0 ref: v1.0.1
files: [ files: [
'devices/buzzer.yaml', 'devices/buzzer.yaml',
'devices_v0_7/display.yaml', 'devices_v0_7/display.yaml',

View File

@@ -1,5 +1,5 @@
substitutions: substitutions:
name: boneio-esp-cover-mix name: boneio-esp-cover-mix-v0_5-v0_6
friendly_name: 'BoneIO ESP Cover Mix Lights' friendly_name: 'BoneIO ESP Cover Mix Lights'
esphome: esphome:
@@ -22,13 +22,13 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-cover_mix_lights_v0_5-v0_6.yaml@v1.0.0 package_import_url: github://boneIO-eu/esphome/boneio-cover_mix_lights_v0_5-v0_6.yaml@v1.0.1
import_full_config: true import_full_config: true
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.0 ref: v1.0.1
files: [ files: [
'devices/buzzer.yaml', 'devices/buzzer.yaml',
'devices_v0_5-v0_6/display.yaml', 'devices_v0_5-v0_6/display.yaml',
@@ -181,10 +181,6 @@ cover:
- switch.turn_off: cover_close_08_out16 - switch.turn_off: cover_close_08_out16
light: light:
- platform: binary
name: 'Light 16'
output: out_16
id: light_16
- platform: binary - platform: binary
name: 'Light 17' name: 'Light 17'
output: out_17 output: out_17
@@ -249,6 +245,7 @@ light:
name: 'Light 32' name: 'Light 32'
output: out_32 output: out_32
id: light_32 id: light_32
binary_sensor: binary_sensor:
- platform: gpio - platform: gpio
name: 'IN_01' name: 'IN_01'
@@ -485,7 +482,10 @@ binary_sensor:
inverted: true inverted: true
on_press: on_press:
then: then:
- light.toggle: light_15 - cover.open: cover_08
on_release:
then:
- cover.stop: cover_08
- platform: gpio - platform: gpio
name: 'IN_16' name: 'IN_16'
@@ -498,7 +498,10 @@ binary_sensor:
inverted: true inverted: true
on_press: on_press:
then: then:
- light.toggle: light_16 - cover.close: cover_08
on_release:
then:
- cover.stop: cover_08
- platform: gpio - platform: gpio
name: 'IN_17' name: 'IN_17'

View File

@@ -1,5 +1,5 @@
substitutions: substitutions:
name: boneio-esp-cover-mix name: boneio-esp-cover-mix-0.7
friendly_name: 'BoneIO ESP Cover Mix Lights' friendly_name: 'BoneIO ESP Cover Mix Lights'
esphome: esphome:
@@ -22,13 +22,13 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-cover_mix_lights_v0_7.yaml@v1.0.0 package_import_url: github://boneIO-eu/esphome/boneio-cover_mix_lights_v0_7.yaml@v1.0.1
import_full_config: true import_full_config: true
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.0 ref: v1.0.1
files: [ files: [
'devices/buzzer.yaml', 'devices/buzzer.yaml',
'devices_v0_7/display.yaml', 'devices_v0_7/display.yaml',
@@ -177,10 +177,6 @@ cover:
- switch.turn_off: cover_close_08_out16 - switch.turn_off: cover_close_08_out16
light: light:
- platform: binary
name: 'Light 16'
output: out_16
id: light_16
- platform: binary - platform: binary
name: 'Light 17' name: 'Light 17'
output: out_17 output: out_17
@@ -245,6 +241,7 @@ light:
name: 'Light 32' name: 'Light 32'
output: out_32 output: out_32
id: light_32 id: light_32
binary_sensor: binary_sensor:
- platform: gpio - platform: gpio
name: 'IN_01' name: 'IN_01'
@@ -481,7 +478,10 @@ binary_sensor:
inverted: true inverted: true
on_press: on_press:
then: then:
- light.toggle: light_15 - cover.open: cover_08
on_release:
then:
- cover.stop: cover_08
- platform: gpio - platform: gpio
name: 'IN_16' name: 'IN_16'
@@ -494,7 +494,10 @@ binary_sensor:
inverted: true inverted: true
on_press: on_press:
then: then:
- light.toggle: light_16 - cover.close: cover_08
on_release:
then:
- cover.stop: cover_08
- platform: gpio - platform: gpio
name: 'IN_17' name: 'IN_17'

View File

@@ -1,5 +1,5 @@
substitutions: substitutions:
name: boneio-esp-cover-mix name: boneio-esp-cover-mix-v0_5-v0_6
friendly_name: 'BoneIO ESP Cover Mix Switches' friendly_name: 'BoneIO ESP Cover Mix Switches'
esphome: esphome:
@@ -22,13 +22,13 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-cover_mix_switches_v0_5-v0_6.yaml@v1.0.0 package_import_url: github://boneIO-eu/esphome/boneio-cover_mix_switches_v0_5-v0_6.yaml@v1.0.1
import_full_config: true import_full_config: true
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.0 ref: v1.0.1
files: [ files: [
'devices/buzzer.yaml', 'devices/buzzer.yaml',
'devices_v0_5-v0_6/display.yaml', 'devices_v0_5-v0_6/display.yaml',
@@ -181,10 +181,6 @@ cover:
- switch.turn_off: cover_close_08_out16 - switch.turn_off: cover_close_08_out16
switch: switch:
- platform: output
name: 'Switch 16'
output: out_16
id: switch_16
- platform: output - platform: output
name: 'Switch 17' name: 'Switch 17'
output: out_17 output: out_17
@@ -485,7 +481,10 @@ binary_sensor:
inverted: true inverted: true
on_press: on_press:
then: then:
- switch.toggle: switch_15 - cover.open: cover_08
on_release:
then:
- cover.stop: cover_08
- platform: gpio - platform: gpio
name: 'IN_16' name: 'IN_16'
@@ -498,7 +497,10 @@ binary_sensor:
inverted: true inverted: true
on_press: on_press:
then: then:
- switch.toggle: switch_16 - cover.close: cover_08
on_release:
then:
- cover.stop: cover_08
- platform: gpio - platform: gpio
name: 'IN_17' name: 'IN_17'

View File

@@ -1,5 +1,5 @@
substitutions: substitutions:
name: boneio-esp-cover-mix name: boneio-esp-cover-mix-0.7
friendly_name: 'BoneIO ESP Cover Mix Switches' friendly_name: 'BoneIO ESP Cover Mix Switches'
esphome: esphome:
@@ -22,13 +22,13 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-cover_mix_switches_v0_7.yaml@v1.0.0 package_import_url: github://boneIO-eu/esphome/boneio-cover_mix_switches_v0_7.yaml@v1.0.1
import_full_config: true import_full_config: true
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.0 ref: v1.0.1
files: [ files: [
'devices/buzzer.yaml', 'devices/buzzer.yaml',
'devices_v0_7/display.yaml', 'devices_v0_7/display.yaml',
@@ -177,10 +177,6 @@ cover:
- switch.turn_off: cover_close_08_out16 - switch.turn_off: cover_close_08_out16
switch: switch:
- platform: output
name: 'Switch 16'
output: out_16
id: switch_16
- platform: output - platform: output
name: 'Switch 17' name: 'Switch 17'
output: out_17 output: out_17
@@ -245,6 +241,7 @@ switch:
name: 'Switch 32' name: 'Switch 32'
output: out_32 output: out_32
id: switch_32 id: switch_32
binary_sensor: binary_sensor:
- platform: gpio - platform: gpio
name: 'IN_01' name: 'IN_01'
@@ -481,7 +478,10 @@ binary_sensor:
inverted: true inverted: true
on_press: on_press:
then: then:
- switch.toggle: switch_15 - cover.open: cover_08
on_release:
then:
- cover.stop: cover_08
- platform: gpio - platform: gpio
name: 'IN_16' name: 'IN_16'
@@ -494,7 +494,10 @@ binary_sensor:
inverted: true inverted: true
on_press: on_press:
then: then:
- switch.toggle: switch_16 - cover.close: cover_08
on_release:
then:
- cover.stop: cover_08
- platform: gpio - platform: gpio
name: 'IN_17' name: 'IN_17'

View File

@@ -1,5 +1,5 @@
substitutions: substitutions:
name: boneio-esp-covers name: boneio-esp-covers-v0_5-v0_6
friendly_name: 'BoneIO ESP Cover' friendly_name: 'BoneIO ESP Cover'
esphome: esphome:
@@ -22,13 +22,13 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-cover_v0_5-v0_6.yaml@v1.0.0 package_import_url: github://boneIO-eu/esphome/boneio-cover_v0_5-v0_6.yaml@v1.0.1
import_full_config: true import_full_config: true
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.0 ref: v1.0.1
files: [ files: [
'devices/buzzer.yaml', 'devices/buzzer.yaml',
'devices_v0_5-v0_6/display.yaml', 'devices_v0_5-v0_6/display.yaml',

View File

@@ -1,5 +1,5 @@
substitutions: substitutions:
name: boneio-esp-covers name: boneio-esp-covers-0.7
friendly_name: 'BoneIO ESP Cover' friendly_name: 'BoneIO ESP Cover'
esphome: esphome:
@@ -22,13 +22,13 @@ ethernet:
power_pin: GPIO16 power_pin: GPIO16
dashboard_import: dashboard_import:
package_import_url: github://boneIO-eu/esphome/boneio-cover_v0_7.yaml@v1.0.0 package_import_url: github://boneIO-eu/esphome/boneio-cover_v0_7.yaml@v1.0.1
import_full_config: true import_full_config: true
packages: packages:
internals_packages: internals_packages:
url: https://github.com/boneIO-eu/esphome url: https://github.com/boneIO-eu/esphome
ref: v1.0.0 ref: v1.0.1
files: [ files: [
'devices/buzzer.yaml', 'devices/buzzer.yaml',
'devices_v0_7/display.yaml', 'devices_v0_7/display.yaml',

View File

@@ -0,0 +1,20 @@
pcf8574:
- id: 'pcf_inputs_1to14'
i2c_id: bus_a
address: 0x20
pcf8575: true
- id: 'pcf_inputs_15to28'
i2c_id: bus_a
address: 0x21
pcf8575: true
- id: 'pcf_inputs_28to35_menu'
i2c_id: bus_a
address: 0x22
pcf8575: false
mcp23017:
- id: 'mcp_left'
address: 0x21
i2c_id: bus_b
- id: 'mcp_right'
address: 0x20
i2c_id: bus_b

View File

@@ -101,8 +101,6 @@ display:
lambda: |- lambda: |-
it.rectangle(0, 0, 126, 15); it.rectangle(0, 0, 126, 15);
it.printf(64,11, id(size_10), TextAlign::BASELINE_CENTER, "bone IO"); it.printf(64,11, id(size_10), TextAlign::BASELINE_CENTER, "bone IO");
it.printf(4, 25, id(dejaVuSmall), TextAlign::BASELINE_LEFT ,"Current:");
it.printf(124, 25, id(dejaVuSmall), TextAlign::BASELINE_RIGHT ,"%.3fA", id(ina_current).state);
it.printf(4, 37, id(size_10), TextAlign::BASELINE_LEFT ,"IP addr:"); it.printf(4, 37, id(size_10), TextAlign::BASELINE_LEFT ,"IP addr:");
it.printf(124, 37, id(size_10), TextAlign::BASELINE_RIGHT ,"%s", id(ip_address).state.c_str()); it.printf(124, 37, id(size_10), TextAlign::BASELINE_RIGHT ,"%s", id(ip_address).state.c_str());
it.printf(4, 49, id(size_10), TextAlign::BASELINE_LEFT ,"Uptime:"); it.printf(4, 49, id(size_10), TextAlign::BASELINE_LEFT ,"Uptime:");