From 70368e9474c5bd0184a6e88cd7b5a0d4462f5e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Szafer?= Date: Mon, 28 Nov 2022 20:42:18 +0100 Subject: [PATCH] fix compile of IP v0.4 --- .esphome/boneio_config_for_console.yaml.json | 50 +++++++++++++++++++ ...ple.yaml => boneio_config_for_console.yaml | 1 + boneio_config_for_esphome_addon.yaml | 11 ++-- devices/display.yaml | 6 +-- 4 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 .esphome/boneio_config_for_console.yaml.json rename boneIOsample.yaml => boneio_config_for_console.yaml (98%) diff --git a/.esphome/boneio_config_for_console.yaml.json b/.esphome/boneio_config_for_console.yaml.json new file mode 100644 index 0000000..b01bcbf --- /dev/null +++ b/.esphome/boneio_config_for_console.yaml.json @@ -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" + ] +} diff --git a/boneIOsample.yaml b/boneio_config_for_console.yaml similarity index 98% rename from boneIOsample.yaml rename to boneio_config_for_console.yaml index 5f2aa15..fcc07d6 100644 --- a/boneIOsample.yaml +++ b/boneio_config_for_console.yaml @@ -1,5 +1,6 @@ substitutions: node_name: boneio + dir_name: './' packages: # devices diff --git a/boneio_config_for_esphome_addon.yaml b/boneio_config_for_esphome_addon.yaml index 864a73d..a7168a2 100644 --- a/boneio_config_for_esphome_addon.yaml +++ b/boneio_config_for_esphome_addon.yaml @@ -1,17 +1,22 @@ substitutions: node_name: boneio + dir_name: 'boneio/' packages: # devices core: !include boneio/devices/wt32_eth01.yaml - internals: !include boneio/devices/boneio_board.yaml + internals: !include boneio/devices/boneio_board_PCF.yaml + #internals: !include boneio/devices/boneio_board_MCP.yaml temp: !include boneio/devices/lm75b.yaml display: !include boneio/devices/display.yaml # uart: !include devices/uart.yaml # one_wire: !include devices/one_wire.yaml # relay32 - output: !include boneio/boards/relay32_outputs.yaml - input: !include boneio/boards/relay32_inputs.yaml + output: !include boneio/boards/relay32_outputs_PCF.yaml + #output: !include boneio/boards/relay32_outputs_MCP.yaml + input: !include boneio/boards/relay32_inputs_PCF.yaml + #input: !include boneio/boards/relay32_inputs_MCP.yaml + # dimmer led # output: !include boards/dimmer_led8x4_outputs.yaml # input: !include boards/dimmer_led8x4_inputs.yaml diff --git a/devices/display.yaml b/devices/display.yaml index a340de7..7802c54 100644 --- a/devices/display.yaml +++ b/devices/display.yaml @@ -127,12 +127,12 @@ display: it.fill(COLOR_OFF); font: - - file: "fonts/DejaVuSans.ttf" + - file: "${dir_name}/fonts/DejaVuSans.ttf" id: dejaVuSmall size: 9 - - file: "fonts/danube__.ttf" + - file: "${dir_name}/fonts/danube__.ttf" id: danubeBig size: 20 - - file: "fonts/danube__.ttf" + - file: "${dir_name}/fonts/danube__.ttf" id: danubeSmall size: 9