116 lines
2 KiB
YAML
116 lines
2 KiB
YAML
esphome:
|
|
name: "kueche-leiste"
|
|
friendly_name: "Küche Leiste"
|
|
platformio_options:
|
|
board_build.flash_mode: dio
|
|
on_boot:
|
|
then:
|
|
- light.control:
|
|
id: led_light
|
|
brightness: 50%
|
|
color_temperature: 2700 K
|
|
|
|
esp32:
|
|
board: esp32-c3-devkitm-1
|
|
variant: ESP32C3
|
|
framework:
|
|
type: esp-idf
|
|
|
|
logger:
|
|
|
|
api:
|
|
encryption:
|
|
key: !secret apikey_kueche_leiste
|
|
|
|
ota:
|
|
- platform: esphome
|
|
password: !secret otapass_kueche_leiste
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid_bw
|
|
password: !secret wifi_password_bw
|
|
domain: .iot.bw.jalr.de
|
|
enable_on_boot: True
|
|
fast_connect: On
|
|
|
|
esp32_ble_tracker:
|
|
scan_parameters:
|
|
active: false
|
|
|
|
bluetooth_proxy:
|
|
active: true
|
|
|
|
xiaomi_ble:
|
|
|
|
output:
|
|
- platform: ledc
|
|
pin: GPIO0
|
|
id: output_warm
|
|
- platform: ledc
|
|
pin: GPIO1
|
|
id: output_cold
|
|
|
|
light:
|
|
- platform: cwww
|
|
name: "LED light"
|
|
id: led_light
|
|
cold_white: output_cold
|
|
warm_white: output_warm
|
|
cold_white_color_temperature: 6500 K
|
|
warm_white_color_temperature: 2700 K
|
|
constant_brightness: true
|
|
gamma_correct: 0
|
|
|
|
sensor:
|
|
- platform: wifi_signal
|
|
name: "WiFi Signal Sensor"
|
|
update_interval: 60s
|
|
- platform: dht
|
|
model: DHT22
|
|
pin: GPIO5
|
|
temperature:
|
|
name: "Temperatur"
|
|
id: temperature
|
|
humidity:
|
|
name: "Feuchtigkeit"
|
|
id: humidity
|
|
accuracy_decimals: 1
|
|
update_interval: 60s
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO6
|
|
mode:
|
|
input: true
|
|
pullup: true
|
|
inverted: true
|
|
name: "Physical Power Button"
|
|
on_press:
|
|
then:
|
|
- light.toggle:
|
|
id: led_light
|
|
internal: True
|
|
|
|
spi:
|
|
- id: spi_bus_main
|
|
clk_pin: GPIO21
|
|
mosi_pin: GPIO10
|
|
miso_pin: GPIO20
|
|
|
|
pn532_spi:
|
|
spi_id: spi_bus_main
|
|
# FIXME: GPIO9 is a strapping pin
|
|
cs_pin: GPIO9
|
|
update_interval: 1s
|
|
on_tag:
|
|
then:
|
|
- homeassistant.tag_scanned: !lambda 'return x;'
|
|
- switch.turn_on: buzzer
|
|
- delay: 250ms
|
|
- switch.turn_off: buzzer
|
|
|
|
switch:
|
|
- platform: gpio
|
|
pin: GPIO7
|
|
id: buzzer
|