esphome: name: philips-livingcolors friendly_name: Philips LivingColors esp32: board: esp32dev #ESP32-WROOM-32E (version printed on the chip) framework: type: esp-idf # Enable logging logger: level: WARN # Change to DEBUG if needed # Enable Home Assistant API api: encryption: key: !secret api_key on_client_connected: - switch.turn_on: ble_switch on_client_disconnected: - switch.turn_off: ble_switch ota: - platform: esphome password: !secret ota_password wifi: ssid: !secret wifi_ssid password: !secret wifi_password manual_ip: # Adapt this to your own network static_ip: 192.168.0.71 gateway: 192.168.0.254 subnet: 255.255.255.0 # Enable ble tracker esp32_ble_tracker: scan_parameters: continuous: false # Send received packets to HA bluetooth_proxy: switch: # Virtual switch to enable the internal ble tracker - platform: template id: ble_switch name: "BLE tracker" icon: "mdi:access-point" optimistic: true restore_mode: ALWAYS_OFF turn_on_action: - esp32_ble_tracker.start_scan: turn_off_action: - esp32_ble_tracker.stop_scan: # Enable E1.31 lighting protocol e131: method: unicast # Each led GPIO address output: - platform: ledc id: led_R pin: !secret red_led_gpio - platform: ledc id: led_G pin: !secret green_led_gpio - platform: ledc pin: !secret blue_led_gpio id: led_B light: # Real light component - platform: rgb id: base_light internal: true red: led_R green: led_G blue: led_B # Fake light component to simulate a led strip - platform: partition id: livingcolors name: None segments: - single_light_id: base_light effects: - random: name: "Random" transition_length: 3s update_interval: 3s - e131: universe: 1 channels: RGB