Menu

QuinLED-An-Mini ESPhome Example configs

WORK IN PROGRESS

Current configuration used to test the boards:

substitutions:
  esphome_name: preprod-anmini-1

esphome:
  name: ${esphome_name}
  platformio_options:
    board_build.flash_mode: dio

esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: esp-idf
#  version: latest
#  variant: ESP32C3

# Enable logging
logger:

# Enable Home Assistant API
api:
  reboot_timeout: 60min
  password: nohackinghere

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

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  #use_address: 10.24.1.127
  manual_ip:
   static_ip: 10.24.1.128
   gateway: 10.24.1.1
   subnet: 255.255.255.0

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Quinled-An-Mini Fallback Hotspot"
    password: "p5NxuK1PSumc"

i2c:
  sda: GPIO6
  scl: GPIO7
  scan: true
  id: I2C

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: "system uptime"

  - platform: wifi_signal
    name: "wifi strength"
    update_interval: 60s


binary_sensor:
  - platform: gpio
    pin: 2
    name: Button_1
    filters:
      - invert:
#    on_press:
#    - light.toggle:
#        id: LED1
  - platform: gpio
    pin: 8
    name: Button_2
    filters:
      - invert:
#    on_press:
#    - light.toggle:
#        id: LED2
  - platform: gpio
    pin: 9
    name: Button_3
    filters:
      - invert:
#    on_press:
#    - light.toggle:
#        id: LED2

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

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

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

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

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

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

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

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

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

  - platform: monochromatic
    name: "${esphome_name}-4"
    #gamma_correct: 2.0
    default_transition_length: 3s
    id: LED4
    output: LED_channel_4
    
  - platform: monochromatic
    name: "${esphome_name}-5"
    #gamma_correct: 2.0
    default_transition_length: 3s
    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