esphome-configs/packages/esp32-c3-core_ct_clamp.yaml
Adam Goldsmith 905b88c51d Switch attenuation for CT Clamp from 11db (deprecated) to 12db
I have no idea how you deprecate an attenuation level, but I assume
someone realized that they did the math wrong?
2024-11-08 22:32:06 -05: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: 12db
- platform: adc
pin: GPIO0
id: adc_ref
name: "${node_verbose_name} ADC Ref"
update_interval: 10s
attenuation: 12db