Updated gartenhaus light
This commit is contained in:
142
led_controller_gartenhaus.yaml
Normal file
142
led_controller_gartenhaus.yaml
Normal file
@@ -0,0 +1,142 @@
|
||||
# ----------------------------------------- Generic -----------------------------------------------
|
||||
|
||||
esphome:
|
||||
name: gartenhaus-led-controller
|
||||
|
||||
esp32:
|
||||
board: esp32-poe
|
||||
framework:
|
||||
type: arduino
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
#password: !secret ota_password
|
||||
encryption:
|
||||
key: !secret api_encryption_key
|
||||
|
||||
ota:
|
||||
password: !secret ota_password
|
||||
|
||||
|
||||
ethernet:
|
||||
type: LAN8720
|
||||
mdc_pin: GPIO23
|
||||
mdio_pin: GPIO18
|
||||
clk_mode: GPIO17_OUT
|
||||
phy_addr: 0
|
||||
power_pin: GPIO12
|
||||
|
||||
# ----------------------------------------- Buttons -----------------------------------------------
|
||||
# 13 led r
|
||||
# 14 led l
|
||||
# 16 button r
|
||||
# 15 button l
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: gartenhaus-led-controller-button-links
|
||||
pin:
|
||||
number: 15
|
||||
inverted: true
|
||||
mode:
|
||||
input: true
|
||||
pullup: true
|
||||
- platform: gpio
|
||||
name: gartenhaus-led-controller-button-rechts
|
||||
pin:
|
||||
number: 16
|
||||
inverted: true
|
||||
mode:
|
||||
input: true
|
||||
pullup: true
|
||||
# Motion sensor
|
||||
- platform: gpio
|
||||
pin: 32
|
||||
name: gartenhaus-led-controller-motion-sensor
|
||||
device_class: motion
|
||||
|
||||
# ----------------------------------------- Button lights -----------------------------------------------
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: gartenhaus-led-controller-button-led-links
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
pin:
|
||||
number: 14
|
||||
mode:
|
||||
output: true
|
||||
- platform: gpio
|
||||
name: gartenhaus-led-controller-button-led-rechts
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
pin:
|
||||
number: 13
|
||||
mode:
|
||||
output: true
|
||||
|
||||
# ----------------------------------------- Led Channel 1 -----------------------------------------------
|
||||
|
||||
# Kanal1: GPIO3
|
||||
# Kanal2: GPIO2
|
||||
# Kanal3: GPIO4
|
||||
# Kanal4: GPIO5
|
||||
|
||||
light:
|
||||
- platform: esp32_rmt_led_strip
|
||||
rgb_order: grb
|
||||
chipset: SK6812
|
||||
icon: mdi:led-strip-variant
|
||||
id: gartenhaus_wandlicht
|
||||
name: Gartenhaus Wandlicht
|
||||
pin: 3
|
||||
num_leds: 300
|
||||
is_rgbw: true
|
||||
rmt_channel: 0
|
||||
effects:
|
||||
- addressable_rainbow:
|
||||
name: Regenbogen
|
||||
width: 300
|
||||
- addressable_color_wipe:
|
||||
name: Wipe
|
||||
colors:
|
||||
random: true
|
||||
num_leds: 150
|
||||
- random:
|
||||
name: "Zufall langsam"
|
||||
transition_length: 30s
|
||||
update_interval: 30s
|
||||
- addressable_twinkle:
|
||||
name: Twinkle
|
||||
- addressable_fireworks:
|
||||
name: Feuerwerk
|
||||
- platform: esp32_rmt_led_strip
|
||||
rgb_order: grb
|
||||
chipset: SK6812
|
||||
name: Gartenhaus Deckenlicht
|
||||
id: gartenhaus_deckenlicht
|
||||
pin: 2
|
||||
num_leds: 352
|
||||
is_rgbw: true
|
||||
rmt_channel: 1
|
||||
internal: true
|
||||
- platform: partition
|
||||
name: Gartenhaus Deckenlicht Hinten
|
||||
segments:
|
||||
- id: gartenhaus_deckenlicht
|
||||
from: 0
|
||||
to: 116
|
||||
- platform: partition
|
||||
name: Gartenhaus Deckenlicht Mitte
|
||||
segments:
|
||||
- id: gartenhaus_deckenlicht
|
||||
from: 117
|
||||
to: 233
|
||||
reversed: true
|
||||
- platform: partition
|
||||
name: Gartenhaus Deckenlicht Vorne
|
||||
segments:
|
||||
- id: gartenhaus_deckenlicht
|
||||
from: 234
|
||||
to: 351
|
||||
Reference in New Issue
Block a user