mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 20:50:02 +02:00
fix 2 i2c buses
This commit is contained in:
@@ -3,7 +3,7 @@ substitutions:
|
|||||||
name_add_mac_suffix: "true"
|
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
|
# 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/'
|
dir_name: './'
|
||||||
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|
||||||
@@ -1,14 +1,8 @@
|
|||||||
i2c:
|
i2c:
|
||||||
- id: bus_a
|
|
||||||
sda: GPIO14
|
sda: GPIO14
|
||||||
scl: GPIO15
|
scl: GPIO15
|
||||||
scan: True
|
scan: True
|
||||||
frequency: 100kHz
|
frequency: 100kHz
|
||||||
- id: bus_b
|
|
||||||
sda: GPIO17
|
|
||||||
scl: GPIO33
|
|
||||||
scan: True
|
|
||||||
frequency: 100kHz
|
|
||||||
|
|
||||||
esphome:
|
esphome:
|
||||||
name: ${node_name}
|
name: ${node_name}
|
||||||
|
|||||||
Reference in New Issue
Block a user