1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add CS5460A power-meter component (#1474)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Andrew Zaborowski
2021-05-31 06:07:33 +02:00
committed by GitHub
parent bb759d52c8
commit 4d586b1446
6 changed files with 624 additions and 0 deletions

View File

@@ -914,6 +914,28 @@ sensor:
id: ph_ezo
address: 99
unit_of_measurement: 'pH'
- platform: cs5460a
id: cs5460a1
current:
name: "Socket current"
voltage:
name: "Mains voltage"
power:
name: "Socket power"
on_value:
then:
cs5460a.restart: cs5460a1
samples: 1600
pga_gain: 10X
current_gain: 0.01
voltage_gain: 0.000573
current_hpf: on
voltage_hpf: on
phase_offset: 20
pulse_energy: 0.01 kWh
cs_pin:
mcp23xxx: mcp23017_hub
number: 14
esp32_touch:
setup_mode: False