132 lines
2.2 KiB
YAML
132 lines
2.2 KiB
YAML
esphome:
|
|
name: cre-laptop-thing
|
|
|
|
esp32:
|
|
board: esp32-c3-devkitm-1
|
|
framework:
|
|
type: arduino
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
ota:
|
|
- platform: esphome
|
|
password: ""
|
|
|
|
wifi:
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
{}
|
|
|
|
captive_portal:
|
|
|
|
web_server:
|
|
port: 80
|
|
|
|
light:
|
|
- platform: esp32_rmt_led_strip
|
|
id: rgb_light
|
|
name: "RGB Light"
|
|
pin: GPIO3
|
|
rmt_channel: 0
|
|
default_transition_length: 0s
|
|
chipset: WS2812
|
|
num_leds: 1
|
|
rgb_order: grb
|
|
effects:
|
|
- pulse:
|
|
name: "Slow Pulse"
|
|
transition_length: 1000ms
|
|
update_interval: 1000ms
|
|
min_brightness: 50%
|
|
max_brightness: 100%
|
|
- pulse:
|
|
name: "Fast Pulse"
|
|
transition_length: 100ms
|
|
update_interval: 100ms
|
|
min_brightness: 50%
|
|
max_brightness: 100%
|
|
|
|
button:
|
|
- platform: restart
|
|
icon: mdi:power-cycle
|
|
name: "ESP Reboot"
|
|
|
|
|
|
sensor:
|
|
- platform: internal_temperature
|
|
name: "ESP Temperature"
|
|
id: sys_esp_temperature
|
|
|
|
- platform: uptime
|
|
name: Uptime
|
|
id: sys_uptime
|
|
update_interval: 60s
|
|
|
|
- platform: wifi_signal
|
|
name: RSSI
|
|
id: wifi_signal_db
|
|
update_interval: 60s
|
|
entity_category: "diagnostic"
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO6
|
|
inverted: true
|
|
mode:
|
|
input: true
|
|
pullup: true
|
|
name: "Button 1"
|
|
filters:
|
|
- delayed_on: 10ms
|
|
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO7
|
|
inverted: true
|
|
mode:
|
|
input: true
|
|
pullup: true
|
|
name: "Button 2"
|
|
filters:
|
|
- delayed_on: 10ms
|
|
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO10
|
|
inverted: true
|
|
mode:
|
|
input: true
|
|
pullup: true
|
|
name: "Button 3"
|
|
filters:
|
|
- delayed_on: 10ms
|
|
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO5
|
|
inverted: true
|
|
mode:
|
|
input: true
|
|
pullup: true
|
|
name: "Button 4"
|
|
filters:
|
|
- delayed_on: 10ms
|
|
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO4
|
|
inverted: true
|
|
mode:
|
|
input: true
|
|
pullup: true
|
|
name: "Button 5"
|
|
filters:
|
|
- delayed_on: 10ms
|
|
|
|
improv_serial:
|
|
esp32_improv:
|
|
authorizer: none
|
|
|