cleaned for new home
This commit is contained in:
68
esphome/cfg_offline/rgb_moon_woonkamer.yaml
Normal file
68
esphome/cfg_offline/rgb_moon_woonkamer.yaml
Normal file
@@ -0,0 +1,68 @@
|
||||
substitutions:
|
||||
device_name: "esp32-atom-lite"
|
||||
friendly_name: "RGBLED moon woonkamer"
|
||||
comment: "esp32, RGBled, BT proxy"
|
||||
location: "Woonkamer"
|
||||
api_password: !secret esp32-atomo-lite_api
|
||||
ota_password: !secret ota_password
|
||||
wifi_ssid: !secret wifi_ssid
|
||||
wifi_password: !secret wifi_password
|
||||
gateway: !secret ip_gateway
|
||||
subnet: !secret ip_subnet
|
||||
ip: !secret esp32-atomo-lite_ip
|
||||
pin_button: GPIO39
|
||||
pin_leds: GPIO25
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32_m5atom.yaml
|
||||
connection: !include common/wifi.yaml
|
||||
device_base: !include common/common.yaml
|
||||
bt_proxy: !include common/bluetooth.yaml
|
||||
logger: !include templates/nologger.yaml
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: ${pin_button}
|
||||
inverted: true
|
||||
name: ${device_name}_Button
|
||||
id: rgb_button
|
||||
on_click:
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
- light.is_on: RGB_Light
|
||||
then:
|
||||
- light.turn_off: RGB_Light
|
||||
else:
|
||||
- light.turn_on: RGB_Light
|
||||
on_double_click:
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
- light.is_on: RGB_Light
|
||||
then:
|
||||
- light.dim_relative:
|
||||
id: RGB_Light
|
||||
relative_brightness: 10%
|
||||
else:
|
||||
- light.turn_on: RGB_Light
|
||||
|
||||
light:
|
||||
- platform: neopixelbus
|
||||
type: GRB
|
||||
variant: ws2812X
|
||||
pin: ${pin_leds}
|
||||
num_leds: 1
|
||||
name: moon
|
||||
id: RGB_Light
|
||||
effects:
|
||||
- random:
|
||||
name: "Random"
|
||||
transition_length: 4s
|
||||
update_interval: 5s
|
||||
- addressable_rainbow:
|
||||
name: Rainbow Effect
|
||||
speed: 100
|
||||
width: 50
|
||||
|
||||
Reference in New Issue
Block a user