Menu

QuinLED-Hybrid-Hexa ESPhome Example configs

WORK IN PROGRESS

substitutions:
  esphome_name: preprod-anhybrid-1

esphome:
  name: ${esphome_name}

esp32:
  board: mhetesp32devkit
  #framework:
  #  type: esp-idf
#  version: latest

ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0
  use_address: 10.10.128.101
  #power_pin: GPIO5
  #manual_ip:
    # Set this to the IP of the ESP
    #static_ip: 10.10.128.123
    # Set this to the IP address of the router. Often ends with .1
    #gateway: 10.10.128.254
    # The subnet of the network. 255.255.255.0 works for most home networks.
    #subnet: 255.255.255.0

web_server:

#Disable logging/UART
logger:
# level: NONE
  baud_rate: 0

i2c:
  sda: 15
  scl: 16
  frequency: 50kHz
  scan: true

api:
  reboot_timeout: 60min
  password: nohackinghere

ota:
  password: nohackinghere
  
time:
  - platform: homeassistant
    id: homeassistant_time

switch:
  - platform: restart
    name: ${esphome_name}-restart
    id: restart_switch

  - platform: gpio
    pin: 13
    name: "Digital RGB power output"

output:
  - platform: ledc
    pin: 2
    frequency: 19531Hz
    id: LED_channel_1

  - platform: ledc
    pin: 4
    frequency: 19531Hz
    id: LED_channel_2

  - platform: ledc
    pin: 12
    frequency: 19531Hz
    id: LED_channel_3

  - platform: ledc
    pin: 32
    frequency: 19531Hz
    id: LED_channel_4

  - platform: ledc
    pin: 33
    frequency: 19531Hz
    id: LED_channel_5

light:
  - platform: monochromatic
    name: "${esphome_name}-1"
    gamma_correct: 2.0
    default_transition_length: 10s
    id: LED1
    output: LED_channel_1

  - platform: monochromatic
    name: "${esphome_name}-2"
    gamma_correct: 2.0
    default_transition_length: 10s
    id: LED2
    output: LED_channel_2

  - platform: monochromatic
    name: "${esphome_name}-3"
    gamma_correct: 2.0
    default_transition_length: 10s
    id: LED3
    output: LED_channel_3

  - platform: monochromatic
    name: "${esphome_name}-4"
    gamma_correct: 2.0
    default_transition_length: 10s
    id: LED4
    output: LED_channel_4
    
  - platform: monochromatic
    name: "${esphome_name}-5"
    gamma_correct: 2.0
    default_transition_length: 10s
    id: LED5
    output: LED_channel_5
  
  - platform: rgbww
    name: "Livingroom Lights"
    red: LED_channel_1
    green: LED_channel_2
    blue: LED_channel_3
    cold_white: LED_channel_4
    warm_white: LED_channel_5
    cold_white_color_temperature: 5000 K
    warm_white_color_temperature: 2700 K
    effects:
      - random:          
          name: "My Slow Random Effect"
          transition_length: 60s
          update_interval: 60s
      - random:
          name: "My Medium Random Effect"
          transition_length: 30s
          update_interval: 30s
      - random:
          name: "My Fast Random Effect"
          transition_length: 10s
          update_interval: 10s
      - random:
          name: "My Very Fast Random Effect"
          transition_length: 1s
          update_interval: 1s

  - platform: neopixelbus
    type: GRB
    variant: WS2811
    pin: GPIO5
    num_leds: 100
    name: "NeoPixel WS28xx Light"
    effects:
      - addressable_rainbow:
      - addressable_rainbow:
          name: Rainbow Effect With Custom Values
          speed: 50
          width: 100
      - addressable_scan:
      - addressable_scan:
          name: Scan Effect With Custom Values
          move_interval: 15ms
          scan_width: 1
      - addressable_twinkle:
      - addressable_twinkle:
          name: Twinkle Effect With Custom Values
          twinkle_probability: 30%
          progress_interval: 12ms
      - addressable_random_twinkle:
      - addressable_random_twinkle:
          name: Random Twinkle Effect With Custom Values
          twinkle_probability: 25%
          progress_interval: 32ms
      - addressable_fireworks:
      - addressable_fireworks:
          name: Fireworks Effect With Custom Values
          update_interval: 15ms
          spark_probability: 30%
          use_random_color: true
          fade_out_rate: 100


sensor:
  - platform: sht3xd
    temperature:
      name: "SHT30 Temperature"
      accuracy_decimals: 2
    humidity:
      name: "SHT30 Room Humidity"
      accuracy_decimals: 2
    address: 0x44
    update_interval: 30s

  - platform: uptime
    name: "${esphome_name}_Uptime Sensor"

binary_sensor:
  - platform: gpio
    pin: 36
    name: Button_1
    filters:
      - invert:
#    on_press:
#    - light.toggle:
#        id: LED1
  - platform: gpio
    pin: 39
    name: Button_2
    filters:
      - invert:
#    on_press:
#    - light.toggle:
#        id: LED2
  - platform: gpio
    pin: 34
    name: Button_3
    filters:
      - invert:
#    on_press:
#    - light.toggle:
#        id: LED2
  - platform: gpio
    pin: 14
    name: Button_4
    filters:
      - invert:
#    on_press:
#    - light.toggle:
#        id: LED2