mirror of
https://github.com/esphome/esphome.git
synced 2026-05-21 17:39:00 +08:00
37146ff565
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
20 lines
395 B
YAML
20 lines
395 B
YAML
esphome:
|
|
on_boot:
|
|
then:
|
|
- sensor.integration.reset:
|
|
id: integration_sensor
|
|
- sensor.integration.set_value:
|
|
id: integration_sensor
|
|
value: 100.0
|
|
|
|
sensor:
|
|
- platform: adc
|
|
id: my_sensor
|
|
pin: ${pin}
|
|
attenuation: 12db
|
|
- platform: integration
|
|
id: integration_sensor
|
|
sensor: my_sensor
|
|
name: Integration Sensor
|
|
time_unit: s
|