1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-18 11:12:20 +01:00
Files
esphome/tests/components/bl0940/common.yaml
Daniel M ac61b8f893 [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>
2025-09-10 13:50:49 +12:00

42 lines
804 B
YAML

uart:
- id: uart_bl0939
tx_pin: ${tx_pin}
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:
name: BL0940 Current
power:
name: BL0940 Power
energy:
name: BL0940 Energy
internal_temperature:
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