[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 .. code-block:: yaml
# Example configuration entry # Example configuration entry
uart:
id: uart_bus
tx_pin: TX
rx_pin: RX
baud_rate: 4800
stop_bits: 1
sensor: sensor:
- platform: bl0942 - platform: bl0942
uart_id: uart_bus
voltage: voltage:
name: 'BL0942 Voltage' name: 'BL0942 Voltage'
current: current:
name: 'BL0942 Current' name: 'BL0942 Current'
power: power:
name: 'BL0942 Power' name: 'BL0942 Power'
filters:
multiply: -1
energy: energy:
name: 'BL0942 Energy' name: 'BL0942 Energy'
frequency: frequency:
name: "BL0942 Frequency" name: "BL0942 Frequency"
accuracy_decimals: 2
update_interval: 60s
Configuration variables: Configuration variables:
------------------------ ------------------------