2024-10-18 16:41:16 +00:00
|
|
|
esphome:
|
|
|
|
|
name: ${device_id}
|
|
|
|
|
name_add_mac_suffix: true
|
2024-10-28 18:59:55 +00:00
|
|
|
friendly_name: "${device_name}"
|
2024-10-18 16:41:16 +00:00
|
|
|
project:
|
|
|
|
|
name: "${project_name}"
|
|
|
|
|
version: "${project_version}"
|
2024-10-18 18:11:31 +00:00
|
|
|
on_boot:
|
2025-02-01 05:54:38 -08:00
|
|
|
- priority: 700
|
|
|
|
|
then:
|
|
|
|
|
- light.turn_on:
|
|
|
|
|
id: led
|
|
|
|
|
red: 1
|
|
|
|
|
green: 0.65
|
|
|
|
|
blue: 0
|
|
|
|
|
transition_length: 0s
|
|
|
|
|
- priority: -100
|
|
|
|
|
then:
|
|
|
|
|
- light.turn_on:
|
|
|
|
|
id: led
|
|
|
|
|
red: 0
|
|
|
|
|
green: 1
|
|
|
|
|
blue: 0
|
|
|
|
|
- delay: 1s
|
|
|
|
|
- light.turn_off: led
|
2024-10-18 16:41:16 +00:00
|
|
|
|
|
|
|
|
esp32:
|
|
|
|
|
board: esp32-s3-devkitc-1
|
|
|
|
|
framework:
|
2024-10-21 18:13:24 +00:00
|
|
|
type: esp-idf
|
2024-10-18 16:41:16 +00:00
|
|
|
|
|
|
|
|
api:
|
|
|
|
|
encryption:
|
|
|
|
|
key: !secret api_key
|
|
|
|
|
|
|
|
|
|
binary_sensor:
|
|
|
|
|
- platform: gpio
|
2025-08-27 14:06:01 +02:00
|
|
|
id: top_button
|
2024-10-19 09:53:29 +00:00
|
|
|
icon: mdi:button-pointer
|
2024-10-18 16:41:16 +00:00
|
|
|
pin:
|
|
|
|
|
number: 41
|
|
|
|
|
inverted: true
|
|
|
|
|
name: "Button"
|
|
|
|
|
|
|
|
|
|
light:
|
|
|
|
|
- platform: esp32_rmt_led_strip
|
|
|
|
|
id: led
|
2024-10-19 09:53:29 +00:00
|
|
|
icon: mdi:led-off
|
2024-10-18 16:41:16 +00:00
|
|
|
rgb_order: GRB
|
|
|
|
|
pin: 35
|
|
|
|
|
num_leds: 1
|
|
|
|
|
chipset: ws2812
|
|
|
|
|
name: "LED"
|
2025-02-01 05:54:38 -08:00
|
|
|
restore_mode: ALWAYS_ON
|
|
|
|
|
default_transition_length: 0.5s
|