mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-25 17:17:54 +01:00
[bl0942] Tidy up example (#4242)
This commit is contained in:
parent
ebdb1bc053
commit
0a0b2d8964
@ -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:
|
||||||
------------------------
|
------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user