esp/esp32-c3-oled/led3xdrv-pro.yml

106 lines
1.9 KiB
YAML
Raw Normal View History

2025-10-31 16:07:09 +01:00
esphome:
2025-10-31 17:45:18 +01:00
name: led3xdrv
friendly_name: Led 3x
2025-10-31 16:07:09 +01:00
esp32:
board: esp32-c3-devkitm-1
2025-10-31 17:45:18 +01:00
variant: esp32c3
2025-11-02 22:12:20 +01:00
framework:
type: esp-idf
2025-10-31 16:07:09 +01:00
logger:
2025-10-31 17:45:18 +01:00
baud_rate: 0
2025-10-31 16:07:09 +01:00
api:
encryption:
2025-10-31 17:45:18 +01:00
key: "naGRefDq/h5OWxKuRx+Wo7lJbgz9ynFkUajsMPrBrY4="
2025-10-31 16:07:09 +01:00
ota:
- platform: esphome
2025-10-31 17:45:18 +01:00
password: "2fd6ea54e1209c9ce76a7d9392108b71"
2025-10-31 16:07:09 +01:00
wifi:
ssid: "Lothlorien"
password: "LitwoOjczyznoMojaTysJestJakZdrowie"
web_server:
output:
- platform: ledc
pin: GPIO4
id: led_pwm01
2025-11-02 22:16:26 +01:00
frequency: 20000 Hz
2025-10-31 16:07:09 +01:00
- platform: ledc
2025-10-31 17:45:18 +01:00
pin: GPIO5
2025-10-31 16:07:09 +01:00
id: led_pwm02
2025-11-02 22:16:26 +01:00
frequency: 20000 Hz
2025-10-31 16:07:09 +01:00
- platform: ledc
2025-10-31 17:45:18 +01:00
pin: GPIO6
2025-10-31 16:07:09 +01:00
id: led_pwm03
2025-11-02 22:16:26 +01:00
frequency: 20000 Hz
2025-10-31 16:07:09 +01:00
light:
- platform: monochromatic
name: "LED PWM 1"
output: led_pwm01
gamma_correct: 1.0
- platform: monochromatic
name: "LED PWM 2"
output: led_pwm02
gamma_correct: 1.0
- platform: monochromatic
name: "LED PWM 3"
output: led_pwm03
gamma_correct: 1.0
2025-11-02 22:12:20 +01:00
switch:
- platform: gpio
id: grove_relay
name: "Power AC-DC"
pin:
number: GPIO1
mode:
output: true
pullup: false
pulldown: false
inverted: false # jeśli nie kliknie zmień na true i sprawdź
restore_mode: ALWAYS_OFF
2025-10-31 16:07:09 +01:00
button:
- platform: restart
name: "Restart Device"
- platform: safe_mode
name: "Restart in Safe Mode"
sensor:
- platform: wifi_signal
name: "WiFi RSSI"
id: wifi_rssi
update_interval: 30s
- platform: uptime
name: "Uptime (s)"
id: uptime_s
update_interval: 60s
binary_sensor:
- platform: gpio
pin:
number: GPIO9 # BOOT na większości C3
mode: INPUT_PULLUP
inverted: true
name: "BOOT Button"
id: btn_boot
2025-10-31 17:45:18 +01:00
2025-10-31 16:07:09 +01:00
- platform: gpio
pin:
number: GPIO7
mode:
input: true
pullup: false
pulldown: true
name: "Czujnik ruchu SR505"
device_class: motion
filters:
- delayed_off: 2s