esphome-configs/packages/esp32-c3-core_ct_clamp.yaml
2022-11-03 21:00:33 -04:00

25 lines
514 B
YAML

sensor:
- platform: ct_clamp
sensor: adc_sensor
name: "${node_verbose_name} Measured Current"
update_interval: 5s
filters:
- calibrate_linear:
# measured -> actual
- 0.003 -> 0
- 0.0087 -> 0.8
- 0.012 -> 1.117
- 0.017 -> 1.575
- platform: adc
pin: GPIO4
id: adc_sensor
attenuation: 11db
- platform: adc
pin: GPIO0
id: adc_ref
name: "${node_verbose_name} ADC Ref"
update_interval: 10s
attenuation: 11db