nixos-configuration/hosts/iron/services/esphome/devices/kueche-leiste.yaml
2024-11-08 22:19:44 +01:00

92 lines
1.6 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:
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
output_power: 8.5
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
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