Skip to content

Commit 097671b

Browse files
committed
Remove example
1 parent 73ee886 commit 097671b

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

content/components/sensor/hlw8032.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -74,30 +74,12 @@ sensor:
7474
- **voltage_divider** (*Optional*, float): The value of the voltage divider
7575
on the board as `R_upstream / (R_downstream * 1000)`. Default value is `1.72`.
7676

77-
## Energy Measurement using the PF Pin
77+
## Energy Measurement
7878

7979
The HLW8032 has a PF (Pulse Frequency) output pin that generates pulses proportional to active energy consumption.
80-
This pin outputs 50% duty cycle rectangular pulses and can be used for accurate energy metering.
80+
This could be used with the [Pulse Meter](/components/sensor/pulse_meter) component for energy tracking.
8181

82-
While the `hlw8032` component communicates via UART for voltage, current, and power readings, you can use
83-
ESPHome's [Pulse Meter](/components/sensor/pulse_meter) component with the PF pin to track energy consumption:
84-
85-
```yaml
86-
sensor:
87-
# Energy measurement using the PF pin
88-
- platform: pulse_meter
89-
pin: GPIOXX # Connect to HLW8032 PF pin
90-
name: "Power Meter"
91-
internal_filter: 100ms
92-
total:
93-
name: "Total Energy"
94-
unit_of_measurement: "kWh"
95-
accuracy_decimals: 3
96-
filters:
97-
- multiply: 0.001 # Adjust based on your board's pulse constant (pulses per Wh)
98-
```
99-
100-
Alternatively, if you don't have access to the PF pin, you can use software integration with the power sensor:
82+
Alternatively, you can use software integration with the power sensor:
10183

10284
```yaml
10385
sensor:

0 commit comments

Comments
 (0)