Skip to content

Commit

Permalink
✨ (esphome): Add record cabinet led strip
Browse files Browse the repository at this point in the history
  • Loading branch information
thibmaek committed Dec 27, 2023
1 parent 19925db commit e3e4d73
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions esphome/esp32-ledstrip-platenkast.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
substitutions:
device_name: 'esp8266-ledstrip-platenkast'
friendly_name: 'LED Strip Platenkast'

esp32:
board: esp32dev

packages:
base_config: !include ./shared/base_config.yaml
wifi: !include ./shared/wifi.yaml
api: !include ./shared/api.yaml
metrics: !include ./shared/metrics.yaml

output:
- platform: ledc
pin: GPIO4
id: pwm_channel

light:
- platform: monochromatic
id: ledstrip
name: "Light"
output: pwm_channel

binary_sensor:
- platform: gpio
name: "Power"
internal: true
pin:
number: GPIO12
mode: INPUT_PULLUP
inverted: true
on_press:
- light.toggle:
id: ledstrip
on_click:
min_length: 2s
max_length: 3s
then:
- light.turn_on:
id: ledstrip
brightness: 100%

0 comments on commit e3e4d73

Please sign in to comment.