Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: rgb-bin
- friendly_name: rgb-bin
- esp8266:
- board: esp01_1m
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- - platform: esphome
- password: "<ota-password>"
- wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- domain: .<my-domain>
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Rgb-Bin Fallback Hotspot"
- password: "<fallback-password>"
- captive_portal:
- mqtt:
- broker: !secret mqtt_hostname
- discovery: true
- username: !secret mqtt_username
- password: !secret mqtt_password
- #display:
- # - platform: addressable_light
- # id: led_matrix_32x8_display
- # addressable_light_id: neopixel
- # width: 9
- # height: 5
- # #pixel_mapper: |-
- # # if (x % 2 == 0) {
- # # return (x * 8) + y;
- # # }
- # # return (x * 8) + (7 - y);
- # rotation: 0°
- # update_interval: 16ms
- light:
- - platform: neopixelbus
- type: GRB
- variant: WS2811
- pin: GPIO2
- id: neopixel
- restore_mode: RESTORE_DEFAULT_OFF
- num_leds: 45
- name: "RGB Bin"
- method:
- type: esp8266_uart
- bus: 1
- effects:
- - addressable_rainbow:
- name: "Rainbow Slow"
- speed: 5
- width: 45
- - addressable_rainbow:
- name: "Multi Colour Soft 2"
- speed: 15
- width: 8
- - addressable_color_wipe:
- name: "Blue bin"
- colors:
- - red: 0%
- green: 0%
- blue: 100%
- num_leds: 225
- - red: 70%
- green: 66%
- blue: 62%
- num_leds: 18
- add_led_interval: 10ms
- reverse: false
- - addressable_color_wipe:
- name: "Green bin"
- colors:
- - red: 0%
- green: 100%
- blue: 0%
- num_leds: 225
- - red: 70%
- green: 66%
- blue: 62%
- num_leds: 18
- add_led_interval: 10ms
- reverse: false
Advertisement
Add Comment
Please, Sign In to add comment