mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 10:12:52 +00:00
[cse7761] Add current_input option for current transformer boards such as the Sonoff POW CT (#7836)
Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
This commit is contained in:
co-authored by
Clyde Stubbs
pre-commit-ci-lite[bot]
Jesse Hills
J. Nick Koston
J. Nick Koston
parent
6095d9d610
commit
d19bb7f4be
@@ -0,0 +1,11 @@
|
||||
sensor:
|
||||
- platform: cse7761
|
||||
current_input: current_transformer
|
||||
voltage:
|
||||
name: CSE7761 CT Voltage
|
||||
current_1:
|
||||
name: CSE7761 CT Current 1
|
||||
active_power_1:
|
||||
name: CSE7761 CT Active Power 1
|
||||
energy_1:
|
||||
name: CSE7761 CT Energy 1
|
||||
@@ -4,5 +4,4 @@ substitutions:
|
||||
|
||||
packages:
|
||||
uart_38400_even: !include ../../test_build_components/common/uart_38400_even/esp32-idf.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
cse7761: !include common.yaml
|
||||
|
||||
@@ -4,5 +4,4 @@ substitutions:
|
||||
|
||||
packages:
|
||||
uart_38400_even: !include ../../test_build_components/common/uart_38400_even/esp8266-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
cse7761: !include common.yaml
|
||||
|
||||
@@ -4,5 +4,4 @@ substitutions:
|
||||
|
||||
packages:
|
||||
uart_38400_even: !include ../../test_build_components/common/uart_38400_even/rp2040-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
cse7761: !include common.yaml
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO12
|
||||
rx_pin: GPIO14
|
||||
|
||||
packages:
|
||||
uart_38400_even: !include ../../test_build_components/common/uart_38400_even/esp32-idf.yaml
|
||||
cse7761: !include common-current-transformer.yaml
|
||||
Reference in New Issue
Block a user