mirror of
https://github.com/esphome/esphome.git
synced 2026-09-28 15:30:21 +00:00
[hdc302x] Use register_apply_action for heater_on and heater_off (#19673)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: HDC302x Actions
|
||||
on_press:
|
||||
- hdc302x.heater_on:
|
||||
id: hdc302x_sensor
|
||||
power: 0x03FF
|
||||
duration: !lambda return 2000;
|
||||
- hdc302x.heater_on:
|
||||
id: hdc302x_sensor
|
||||
power: !lambda return 0x3FFF;
|
||||
- hdc302x.heater_off: hdc302x_sensor
|
||||
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
|
||||
hdc302x: !include common.yaml
|
||||
actions: !include common-actions.yaml
|
||||
Reference in New Issue
Block a user