feat: use switch for relay for debugging purposes
This commit is contained in:
parent
23f9fe380a
commit
bfec9b1a73
1 changed files with 11 additions and 11 deletions
|
@ -8,6 +8,8 @@ esp32:
|
||||||
|
|
||||||
# Enable Home Assistant API
|
# Enable Home Assistant API
|
||||||
api:
|
api:
|
||||||
|
web_server:
|
||||||
|
logger:
|
||||||
|
|
||||||
ota:
|
ota:
|
||||||
- platform: esphome
|
- platform: esphome
|
||||||
|
@ -19,7 +21,7 @@ wifi:
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
id: button
|
id: bell_button
|
||||||
pin:
|
pin:
|
||||||
number: GPIO15
|
number: GPIO15
|
||||||
mode:
|
mode:
|
||||||
|
@ -27,7 +29,7 @@ binary_sensor:
|
||||||
pulldown: True
|
pulldown: True
|
||||||
filters:
|
filters:
|
||||||
- delayed_on: 10ms
|
- delayed_on: 10ms
|
||||||
- delayed_off: 7.75s
|
- delayed_off: 8s
|
||||||
on_press:
|
on_press:
|
||||||
then:
|
then:
|
||||||
- light.turn_on:
|
- light.turn_on:
|
||||||
|
@ -36,16 +38,11 @@ binary_sensor:
|
||||||
green: 1
|
green: 1
|
||||||
blue: 0.7
|
blue: 0.7
|
||||||
effect: pulse
|
effect: pulse
|
||||||
- output.turn_on: relay_chime
|
- switch.turn_on: relay_chime
|
||||||
- delay: 0.5s
|
- delay: 0.1s
|
||||||
- output.turn_off: relay_chime
|
- switch.turn_off: relay_chime
|
||||||
- delay: 0.5s
|
|
||||||
- output.turn_on: relay_chime
|
|
||||||
- delay: 0.5s
|
|
||||||
- output.turn_off: relay_chime
|
|
||||||
on_release:
|
on_release:
|
||||||
then:
|
then:
|
||||||
- output.turn_off: relay_chime
|
|
||||||
- light.turn_off:
|
- light.turn_off:
|
||||||
id: ring
|
id: ring
|
||||||
transition_length: 1s
|
transition_length: 1s
|
||||||
|
@ -60,9 +57,12 @@ output:
|
||||||
- platform: ledc
|
- platform: ledc
|
||||||
pin: GPIO16
|
pin: GPIO16
|
||||||
id: led_blue
|
id: led_blue
|
||||||
|
|
||||||
|
switch:
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
pin: GPIO12
|
name: Relay Chime
|
||||||
id: relay_chime
|
id: relay_chime
|
||||||
|
pin: GPIO12
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: rgb
|
- platform: rgb
|
||||||
|
|
Loading…
Add table
Reference in a new issue