From d52c7ded2d7bf97fd32a64c862857d2ec02876d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Szafer?= Date: Tue, 20 Dec 2022 10:14:11 +0100 Subject: [PATCH] fix 2 i2c buses --- boneio_config_for_console.yaml | 2 +- ...oneio_board_MCP.yaml => boneio_board.yaml} | 0 devices/boneio_board_PCF.yaml | 37 ------------------- devices/wt32_eth01.yaml | 14 ++----- 4 files changed, 5 insertions(+), 48 deletions(-) rename devices/{boneio_board_MCP.yaml => boneio_board.yaml} (100%) delete mode 100644 devices/boneio_board_PCF.yaml diff --git a/boneio_config_for_console.yaml b/boneio_config_for_console.yaml index e86e555..bbdfb71 100644 --- a/boneio_config_for_console.yaml +++ b/boneio_config_for_console.yaml @@ -3,7 +3,7 @@ substitutions: 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 - dir_name: 'boneio/' + dir_name: './' packages: diff --git a/devices/boneio_board_MCP.yaml b/devices/boneio_board.yaml similarity index 100% rename from devices/boneio_board_MCP.yaml rename to devices/boneio_board.yaml diff --git a/devices/boneio_board_PCF.yaml b/devices/boneio_board_PCF.yaml deleted file mode 100644 index 82d1697..0000000 --- a/devices/boneio_board_PCF.yaml +++ /dev/null @@ -1,37 +0,0 @@ -#i2c address: 0x26 input pcf io -#i2c address: 0x27 input pcf io -#i2c address: 0x40 input ina219 power -#i2c address: 0x68 input rtc ds1307 -time: - - platform: ds1307 - id: ds1307_time - -sensor: -# Module power consmption - - platform: ina219 - address: 0x40 - shunt_resistance: 0.1 ohm - current: - id: ina_current - name: "${node_name} INA219 Current" - power: - id: ina_power - name: "${node_name} INA219 Power" - bus_voltage: - id: ina_bus_voltage - name: "${node_name} INA219 Bus Voltage" - shunt_voltage: - id: ina_shunt_voltage - name: "${node_name} INA219 Shunt Voltage" - max_voltage: 32.0V - max_current: 3.2A - update_interval: 30s - -pcf8574: - - id: 'mcp_inputs_1to16' - address: 0x26 - pcf8575: true - - id: 'mcp_inputs_17to32' - address: 0x27 - pcf8575: true - diff --git a/devices/wt32_eth01.yaml b/devices/wt32_eth01.yaml index 52956e3..586d087 100644 --- a/devices/wt32_eth01.yaml +++ b/devices/wt32_eth01.yaml @@ -1,14 +1,8 @@ i2c: - - id: bus_a - sda: GPIO14 - scl: GPIO15 - scan: True - frequency: 100kHz - - id: bus_b - sda: GPIO17 - scl: GPIO33 - scan: True - frequency: 100kHz + sda: GPIO14 + scl: GPIO15 + scan: True + frequency: 100kHz esphome: name: ${node_name}