mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
[lc709203f] Add battery monitor (#8037)
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
This commit is contained in:
16
tests/components/lc709203f/common.yaml
Normal file
16
tests/components/lc709203f/common.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
i2c:
|
||||
- id: i2c_lc709203f
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: lc709203f
|
||||
size: 2000
|
||||
voltage: 3.7
|
||||
battery_voltage:
|
||||
name: "Battery Voltage"
|
||||
battery_level:
|
||||
name: "Battery"
|
||||
temperature:
|
||||
name: "Pack Temperature"
|
||||
b_constant: 0xA5A5
|
5
tests/components/lc709203f/test.esp32-ard.yaml
Normal file
5
tests/components/lc709203f/test.esp32-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/lc709203f/test.esp32-c3-ard.yaml
Normal file
5
tests/components/lc709203f/test.esp32-c3-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/lc709203f/test.esp32-c3-idf.yaml
Normal file
5
tests/components/lc709203f/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/lc709203f/test.esp32-idf.yaml
Normal file
5
tests/components/lc709203f/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/lc709203f/test.esp8266-ard.yaml
Normal file
5
tests/components/lc709203f/test.esp8266-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
5
tests/components/lc709203f/test.rp2040-ard.yaml
Normal file
5
tests/components/lc709203f/test.rp2040-ard.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
<<: !include common.yaml
|
Reference in New Issue
Block a user