satan_himself

esphome bin reminder

Feb 11th, 2025
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.05 KB | None | 0 0
  1. esphome:
  2.   name: rgb-bin
  3.   friendly_name: rgb-bin
  4.  
  5. esp8266:
  6.   board: esp01_1m
  7.  
  8. # Enable logging
  9. logger:
  10. # Enable Home Assistant API
  11. api:
  12. ota:
  13.   - platform: esphome
  14.     password: "<ota-password>"
  15.  
  16. wifi:
  17.   ssid: !secret wifi_ssid
  18.   password: !secret wifi_password
  19.   domain: .<my-domain>
  20.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  21.   ap:
  22.     ssid: "Rgb-Bin Fallback Hotspot"
  23.     password: "<fallback-password>"
  24.  
  25. captive_portal:
  26.    
  27. mqtt:
  28.   broker: !secret mqtt_hostname
  29.   discovery: true
  30.   username: !secret mqtt_username
  31.   password: !secret mqtt_password
  32.  
  33. #display:
  34. #  - platform: addressable_light
  35. #    id: led_matrix_32x8_display
  36. #    addressable_light_id: neopixel
  37. #    width: 9
  38. #    height: 5
  39. #    #pixel_mapper: |-
  40. #    #  if (x % 2 == 0) {
  41. #    #    return (x * 8) + y;
  42. #    #  }
  43. #    #  return (x * 8) + (7 - y);
  44. #    rotation: 0°
  45. #    update_interval: 16ms
  46.  
  47. light:
  48.   - platform: neopixelbus
  49.     type: GRB
  50.     variant: WS2811
  51.     pin: GPIO2
  52.     id: neopixel
  53.     restore_mode: RESTORE_DEFAULT_OFF
  54.     num_leds: 45
  55.     name: "RGB Bin"
  56.     method:
  57.       type: esp8266_uart
  58.       bus: 1
  59.     effects:
  60.       - addressable_rainbow:
  61.           name: "Rainbow Slow"
  62.           speed: 5
  63.           width: 45
  64.       - addressable_rainbow:
  65.           name: "Multi Colour Soft 2"
  66.           speed: 15
  67.           width: 8
  68.       - addressable_color_wipe:
  69.           name: "Blue bin"
  70.           colors:
  71.             - red: 0%
  72.               green: 0%
  73.               blue: 100%
  74.               num_leds: 225
  75.             - red: 70%
  76.               green: 66%
  77.               blue: 62%
  78.               num_leds: 18
  79.           add_led_interval: 10ms
  80.           reverse: false
  81.       - addressable_color_wipe:
  82.           name: "Green bin"
  83.           colors:
  84.             - red: 0%
  85.               green: 100%
  86.               blue: 0%
  87.               num_leds: 225
  88.             - red: 70%
  89.               green: 66%
  90.               blue: 62%
  91.               num_leds: 18
  92.           add_led_interval: 10ms
  93.           reverse: false
Advertisement
Add Comment
Please, Sign In to add comment