Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.61 KB | None | 0 0
  1. esphome:
  2.   name: wohnzimmerlampe
  3.   platform: ESP8266
  4.   board: d1_mini
  5.   includes:
  6.    - diyhueasyncudp.h
  7.   libraries:
  8.    - ESPAsyncUDP@697c75a025
  9.  
  10. custom_component:
  11. - lambda: |-
  12.     auto diyhue = new diyhueudp();
  13.     return {diyhue};
  14.    
  15.  
  16. wifi:
  17.   ssid: "***"
  18.   password: "***"
  19.  
  20. # Enable logging
  21. logger:
  22. # Enable Home Assistant API
  23. api:
  24. ota:
  25. light:
  26.   - platform: fastled_clockless
  27.     chipset: WS2811
  28.     pin: GPIO2
  29.     num_leds: 34
  30.     id: color_led
  31.     rgb_order: GRB
  32.     name: "Stehlampe Wohnzimmer"
  33.     effects:
  34.       - addressable_rainbow:
  35.       - addressable_scan:
  36.       - addressable_fireworks:
  37.       - addressable_color_wipe:
  38.       - addressable_flicker:
  39.   - platform: cwww
  40.     id: white_led
  41.     name: "white_led"
  42.     cold_white: cold_white_gpio
  43.     warm_white: warm_white_gpio
  44.     cold_white_color_temperature: 6500 K
  45.     warm_white_color_temperature: 2000 K
  46.     gamma_correct: 0.8
  47.     default_transition_length: 0.4s
  48.      
  49. output:
  50.   - platform: esp8266_pwm
  51.     pin: GPIO5
  52.     id: cold_white_gpio
  53.     frequency: 1000 Hz
  54.     inverted: False
  55.     min_power: 0
  56.     max_power: 0.7
  57.    
  58.   - platform: esp8266_pwm
  59.     pin: GPIO12
  60.     id: warm_white_gpio
  61.     frequency: 1000 Hz
  62.     inverted: False
  63.     min_power: 0
  64.     max_power: 0.7
  65.    
  66. switch:
  67.   - platform: template
  68.     name: entertainment_switch
  69.     id: entertainment_switch
  70.     optimistic: true
  71.    
  72. text_sensor:
  73.   - platform: template
  74.     name: "light_id"
  75.     id: light_id
  76.     lambda: |-
  77.       return {"esphome_diyhue_light;SUPER-SECRET-MAC;LIGHT-NAME;CT-BOOST;RGB-BOOST"};
  78.     update_interval: 24h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement