Add note about hlw8012 BL0937 SEL pin (#1670)

This commit is contained in:
michaelmeller 2021-11-29 09:05:18 +00:00 committed by GitHub
parent 4229c12668
commit 6f9454acd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

View File

@ -99,6 +99,31 @@ the initial measurement mode to match whichever mode the device uses, and disabl
initial_mode: CURRENT
change_mode_every: 4294967295
SEL Pin Inversion
-----------------
If using model ``BL0937`` the function of the SEL pin is inverted compared to default. When SEL=0 current is measured,
when SEL=1 voltage is measured. To accommodate this change use the following configuration:
.. code-block:: yaml
# Example configuration entry for device BL0937 using inverted SEL pin functionality
sensor:
- platform: hlw8012
model: BL0937
sel_pin:
number: 12
inverted: true
cf_pin: 4
cf1_pin: 5
current:
name: "BL0937 Current"
voltage:
name: "BL0937 Voltage"
power:
name: "BL0937 Power"
update_interval: 60s
See Also
--------