esphome/tests/components/cs5460a/test.esp32-ard.yaml
Keith Burzinski f6848fe24d
[CI] Introduce testing for IDF 5 (and other arbitrary framework versions) ()
* Initial changes to support testing of additional framework versions

* Rename Arduino test files
2024-06-17 16:32:11 -05:00

27 lines
497 B
YAML

spi:
- id: spi_cs5460a
clk_pin: 16
mosi_pin: 17
miso_pin: 15
sensor:
- platform: cs5460a
id: cs5460a1
cs_pin: 12
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: true
voltage_hpf: true
phase_offset: 20
pulse_energy: 0.01 kWh