mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 08:20:21 +00:00
[hbridge] Use register_apply_action for fan.hbridge.brake (#19649)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: Brake the fan
|
||||
on_press:
|
||||
- fan.hbridge.brake: fan_hbridge
|
||||
@@ -0,0 +1,10 @@
|
||||
substitutions:
|
||||
pwm_platform: "esp8266_pwm"
|
||||
output1_pin: "4"
|
||||
output2_pin: "5"
|
||||
output3_pin: "12"
|
||||
output4_pin: "13"
|
||||
|
||||
packages:
|
||||
hbridge: !include common.yaml
|
||||
actions: !include common-actions.yaml
|
||||
Reference in New Issue
Block a user