Compare commits

...

8 Commits

Author SHA1 Message Date
pszafer
c4c24dd592 speed up i2c bus frequency 2023-09-07 07:10:50 +02:00
Kamil_B
b5f854e3b1 Corrections and addition of boneio_board_PCF.yaml 2023-02-27 07:48:26 +01:00
Kamil_B
28a7a8b2b8 add include
add include boards/relay32_inputs_PCF.yaml
2023-02-17 15:31:23 +01:00
Paweł Szafer
d52c7ded2d fix 2 i2c buses 2022-12-20 10:14:11 +01:00
Paweł Szafer
cd53de9f9d remove PCF's 2022-12-20 10:09:08 +01:00
Paweł Szafer
a1119e41de add console config 2022-12-20 10:07:35 +01:00
Maciej Krasuski
5d975638f8 added ip address and some substitutions 2022-12-19 20:26:53 +01:00
Paweł Szafer
70368e9474 fix compile of IP v0.4 2022-11-28 20:42:18 +01:00
6 changed files with 118 additions and 38 deletions

View File

@@ -0,0 +1,50 @@
{
"storage_version": 1,
"name": "boneio",
"comment": null,
"esphome_version": "2022.11.1",
"src_version": 1,
"address": "boneio.local",
"web_port": 80,
"esp_platform": "ESP32",
"build_path": ".esphome/build/boneio",
"firmware_bin_path": ".esphome/build/boneio/.pioenvs/boneio/firmware.bin",
"loaded_integrations": [
"api",
"async_tcp",
"binary_sensor",
"display",
"ds1307",
"esp32",
"esphome",
"ethernet",
"external_components",
"font",
"gpio",
"homeassistant",
"i2c",
"ina219",
"json",
"lm75",
"logger",
"md5",
"mdns",
"network",
"ota",
"pcf8574",
"preferences",
"script",
"sensor",
"socket",
"ssd1306_base",
"ssd1306_i2c",
"substitutions",
"switch",
"template",
"text_sensor",
"time",
"uptime",
"web_server",
"web_server_base"
]
}

2
.gitignore vendored
View File

@@ -127,3 +127,5 @@ dmypy.json
# Pyre type checker # Pyre type checker
.pyre/ .pyre/
.esphome/

View File

@@ -1,28 +1,37 @@
substitutions: substitutions:
# set to false if you don't want mac suffix in your device name
name_add_mac_suffix: "true"
# if you want to change the name of device via OTA you have to set IP first in boneio/devices/wt32_eth01.yaml
node_name: boneio node_name: boneio
dir_name: './'
packages: packages:
# devices # select your input board:
input: !include boards/relay32_inputs_MCP.yaml
#input: !include boards/relay32_inputs_PCF.yaml
#input: !include boards/dimmer_led8x4_inputs.yaml
#input: !include boards/cover16_inputs.yaml
#input: !include boards/cover16_inputs.yaml
# select your output board:
#output: !include boards/relay24_outputs_MCP.yaml
#output: !include boards/relay32_outputs_PCF.yaml
output: !include boards/relay32_outputs_MCP.yaml
#output: !include boards/dimmer_led8x4_outputs.yaml
#light: !include boards/monochromatic_lights.yaml
#cover: !include boards/cover.yaml
#output: !include boards/cover16_outputs.yaml
#output: !include boards/cover16_outputs.yaml
# select your devices:
core: !include devices/wt32_eth01.yaml core: !include devices/wt32_eth01.yaml
internals: !include devices/boneio_board_PCF.yaml internals: !include devices/boneio_board_MCP.yaml
#internals: !include devices/boneio_board_MCP.yaml #internals: !include devices/boneio_board_PCF.yaml
temp: !include devices/lm75b.yaml temp: !include devices/lm75b.yaml
display: !include devices/display.yaml display: !include devices/display.yaml
# uart: !include devices/uart.yaml # uart: !include devices/uart.yaml
# one_wire: !include devices/one_wire.yaml # one_wire: !include devices/one_wire.yaml
# relay32
#output: !include boards/relay32_outputs_MCP.yaml
output: !include boards/relay32_outputs_PCF.yaml
#input: !include boards/relay32_inputs_MCP.yaml
input: !include boards/relay32_inputs_PCF.yaml
# dimmer led
#output: !include boards/dimmer_led8x4_outputs.yaml
#input: !include boards/dimmer_led8x4_inputs.yaml
#light: !include boards/monochromatic_lights.yaml
# cover
#output: !include boards/cover16_outputs.yaml
# input: !include boards/cover16_inputs.yaml
# cover: !include boards/cover.yaml
logger: logger:
baud_rate: 0 baud_rate: 0

View File

@@ -1,25 +1,39 @@
substitutions: substitutions:
# set to false if you don't want mac suffix in your device name
name_add_mac_suffix: "true"
# if you want to change the name of device via OTA you have to set IP first in boneio/devices/wt32_eth01.yaml
node_name: boneio node_name: boneio
dir_name: 'boneio/'
packages: packages:
# devices # select your input board:
input: !include boneio/boards/relay32_inputs_MCP.yaml
#input: !include boneio/boards/relay32_inputs_PCF.yaml
#input: !include boneio/boards/dimmer_led8x4_inputs.yaml
#input: !include boneio/boards/cover16_inputs.yaml
#input: !include boneio/boards/cover16_inputs.yaml
# select your output board:
#output: !include boneio/boards/relay24_outputs_MCP.yaml
#output: !include boneio/boards/relay32_outputs_PCF.yaml
output: !include boneio/boards/relay32_outputs_MCP.yaml
#output: !include boneio/boards/dimmer_led8x4_outputs.yaml
#light: !include boneio/boards/monochromatic_lights.yaml
#cover: !include boneio/boards/cover.yaml
#output: !include boneio/boards/cover16_outputs.yaml
#output: !include boneio/boards/cover16_outputs.yaml
# select your devices:
core: !include boneio/devices/wt32_eth01.yaml core: !include boneio/devices/wt32_eth01.yaml
internals: !include boneio/devices/boneio_board.yaml internals: !include boneio/devices/boneio_board_MCP.yaml
#internals: !include boneio/devices/boneio_board_PCF.yaml
temp: !include boneio/devices/lm75b.yaml temp: !include boneio/devices/lm75b.yaml
display: !include boneio/devices/display.yaml display: !include boneio/devices/display.yaml
# uart: !include devices/uart.yaml # uart: !include devices/uart.yaml
# one_wire: !include devices/one_wire.yaml # one_wire: !include devices/one_wire.yaml
# relay32
output: !include boneio/boards/relay32_outputs.yaml
input: !include boneio/boards/relay32_inputs.yaml
# dimmer led
# output: !include boards/dimmer_led8x4_outputs.yaml
# input: !include boards/dimmer_led8x4_inputs.yaml
# light: !include boards/monochromatic_lights.yaml
# cover
# output: !include boards/cover16_outputs.yaml
# input: !include boards/cover16_inputs.yaml
# cover: !include boards/cover.yaml
logger: logger:
baud_rate: 0 baud_rate: 0

View File

@@ -127,12 +127,12 @@ display:
it.fill(COLOR_OFF); it.fill(COLOR_OFF);
font: font:
- file: "fonts/DejaVuSans.ttf" - file: "${dir_name}/fonts/DejaVuSans.ttf"
id: dejaVuSmall id: dejaVuSmall
size: 9 size: 9
- file: "fonts/danube__.ttf" - file: "${dir_name}/fonts/danube__.ttf"
id: danubeBig id: danubeBig
size: 20 size: 20
- file: "fonts/danube__.ttf" - file: "${dir_name}/fonts/danube__.ttf"
id: danubeSmall id: danubeSmall
size: 9 size: 9

View File

@@ -1,13 +1,15 @@
esphome:
name: ${node_name}
platform: ESP32
board: nodemcu-32s
i2c: i2c:
sda: GPIO14 sda: GPIO14
scl: GPIO15 scl: GPIO15
scan: True scan: True
frequency: 100kHz frequency: 400kHz
esphome:
name: ${node_name}
platform: ESP32
board: nodemcu-32s
# set to false if you already added this device to ESPHOME add-on
name_add_mac_suffix: ${name_add_mac_suffix}
ethernet: ethernet:
id: eth id: eth
@@ -17,3 +19,6 @@ ethernet:
clk_mode: GPIO0_IN clk_mode: GPIO0_IN
phy_addr: 1 phy_addr: 1
power_pin: GPIO16 power_pin: GPIO16
# uncomment this line and set your actual IP address before changing name of device
# use_address: 172.21.130.57