mirror of
https://github.com/boneIO-eu/esphome.git
synced 2026-04-10 20:50:02 +02:00
49 lines
1021 B
YAML
49 lines
1021 B
YAML
#i2c address: 0x26 input pcf io
|
|
#i2c address: 0x27 input pcf io
|
|
#i2c address: 0x40 input ina219 power
|
|
#i2c address: 0x68 input rtc ds1307
|
|
sensor:
|
|
# Module power consmption
|
|
- platform: ina219
|
|
address: 0x40
|
|
i2c_id: bus_a
|
|
shunt_resistance: 0.1 ohm
|
|
current:
|
|
id: ina_current
|
|
name: 'INA219 Current'
|
|
power:
|
|
id: ina_power
|
|
name: 'INA219 Power'
|
|
bus_voltage:
|
|
id: ina_bus_voltage
|
|
name: 'INA219 Bus Voltage'
|
|
shunt_voltage:
|
|
id: ina_shunt_voltage
|
|
name: 'INA219 Shunt Voltage'
|
|
max_voltage: 32.0V
|
|
max_current: 3.2A
|
|
update_interval: 30s
|
|
|
|
switch:
|
|
- platform: gpio
|
|
id: buzzer
|
|
name: 'Buzzer'
|
|
pin:
|
|
number: GPIO2
|
|
mode:
|
|
output: true
|
|
inverted: false
|
|
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
|