mirror of
https://github.com/esphome/esphome.git
synced 2026-09-28 23:40:25 +00:00
43 lines
859 B
YAML
43 lines
859 B
YAML
esphome:
|
|
name: test
|
|
on_boot:
|
|
then:
|
|
- counter.set_value:
|
|
id: counter_a
|
|
value: 100
|
|
- counter.set_value:
|
|
id: counter_b
|
|
value: -5000000000
|
|
- counter.increment: counter_a
|
|
- counter.increment:
|
|
id: counter_a
|
|
value: -7
|
|
- counter.increment:
|
|
id: counter_b
|
|
value: !lambda "return 3;"
|
|
|
|
esp32:
|
|
board: esp32dev
|
|
|
|
sensor:
|
|
- platform: template
|
|
id: source_sensor
|
|
lambda: return 1.0;
|
|
- platform: counter
|
|
id: counter_a
|
|
name: Counter A
|
|
sensor: source_sensor
|
|
- platform: counter
|
|
id: counter_b
|
|
name: Counter B
|
|
restore: false
|
|
initial_value: -5000000000
|
|
- platform: counter
|
|
id: counter_c
|
|
name: Counter C
|
|
binary_sensor: source_binary_sensor
|
|
|
|
binary_sensor:
|
|
- platform: template
|
|
id: source_binary_sensor
|