95 lines
1.7 KiB
YAML
95 lines
1.7 KiB
YAML
substitutions:
|
|
esp_name: "vw-bus"
|
|
|
|
esphome:
|
|
name: ${esp_name}
|
|
comment: ${esp_name}
|
|
|
|
esp32:
|
|
board: esp32dev
|
|
framework:
|
|
type: arduino
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
encryption:
|
|
key: !secret vw_bus_api
|
|
|
|
ota:
|
|
password: !secret vw_bus_ota
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: ${esp_name} fallback
|
|
password: !secret fallback_password
|
|
|
|
captive_portal:
|
|
|
|
output:
|
|
- platform: ledc
|
|
pin: GPIO5
|
|
id: INTERIOUR
|
|
- platform: ledc
|
|
pin: GPIO18
|
|
id: DIM_FL
|
|
- platform: ledc
|
|
pin: GPIO27
|
|
id: DIM_FR
|
|
- platform: ledc
|
|
pin: GPIO4
|
|
id: BLINK_FL
|
|
- platform: ledc
|
|
pin: GPIO17
|
|
id: BLINK_FR
|
|
- platform: ledc
|
|
pin: GPIO14
|
|
id: DIM_RL
|
|
- platform: ledc
|
|
pin: GPIO26
|
|
id: DIM_RR
|
|
|
|
light:
|
|
- platform: monochromatic
|
|
output: INTERIOUR
|
|
name: "Interiour lights"
|
|
- platform: monochromatic
|
|
output: DIM_FL
|
|
name: "Dim FL"
|
|
- platform: monochromatic
|
|
output: DIM_FR
|
|
name: "Dim FR"
|
|
- platform: monochromatic
|
|
output: DIM_RL
|
|
name: "Dim RL"
|
|
effects:
|
|
- pulse:
|
|
transition_length: 0.3s
|
|
update_interval: 0.5s
|
|
- platform: monochromatic
|
|
output: DIM_RR
|
|
name: "Dim RR"
|
|
effects:
|
|
- pulse:
|
|
transition_length: 0.3s
|
|
update_interval: 0.5s
|
|
- platform: monochromatic
|
|
output: BLINK_FL
|
|
name: "Blink FL"
|
|
effects:
|
|
- pulse:
|
|
transition_length: 0.3s
|
|
update_interval: 0.5s
|
|
- platform: monochromatic
|
|
output: BLINK_FR
|
|
name: "Blink FR"
|
|
effects:
|
|
- pulse:
|
|
transition_length: 0.3s
|
|
update_interval: 0.5s |