[bl0942] Tidy up example (#4242)

This commit is contained in:
Jesse Hills 2024-09-10 13:23:09 +12:00 committed by GitHub
parent ebdb1bc053
commit 0a0b2d8964
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,31 +16,18 @@ to some pins on your board and the baud rate set to 4800 with 1 stop bit.
.. code-block:: yaml
# Example configuration entry
uart:
id: uart_bus
tx_pin: TX
rx_pin: RX
baud_rate: 4800
stop_bits: 1
sensor:
- platform: bl0942
uart_id: uart_bus
voltage:
name: 'BL0942 Voltage'
current:
name: 'BL0942 Current'
power:
name: 'BL0942 Power'
filters:
multiply: -1
energy:
name: 'BL0942 Energy'
frequency:
name: "BL0942 Frequency"
accuracy_decimals: 2
update_interval: 60s
Configuration variables:
------------------------