1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

[bl0940] extend configuration options of bl0940 device (#8158)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
Daniel M
2025-09-10 13:50:49 +12:00
committed by GitHub
parent d9f625e5c8
commit ac61b8f893
12 changed files with 687 additions and 115 deletions

View File

@@ -4,8 +4,14 @@ uart:
rx_pin: ${rx_pin}
baud_rate: 9600
button:
- platform: bl0940
bl0940_id: test_id
name: Cal Reset
sensor:
- platform: bl0940
id: test_id
voltage:
name: BL0940 Voltage
current:
@@ -18,3 +24,18 @@ sensor:
name: BL0940 Internal temperature
external_temperature:
name: BL0940 External temperature
number:
- platform: bl0940
id: bl0940_number_id
bl0940_id: test_id
current_calibration:
name: Cal Current
min_value: -5
max_value: 5
voltage_calibration:
name: Cal Voltage
step: 0.01
power_calibration:
name: Cal Power
disabled_by_default: true