initial commit esphome

This commit is contained in:
2023-02-22 00:11:45 +01:00
commit 4c9bf4499f
40 changed files with 3507 additions and 0 deletions

184
esphome/og-fl-us-room.yaml Normal file
View File

@@ -0,0 +1,184 @@
substitutions:
devicename: og-fl-us-room
esphome:
name: ${devicename}
platform: ESP8266
board: nodemcuv2
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "7e132689c324a0f7de57d556a0e18e72"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.1.94
gateway: 192.168.1.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "${devicename}"
password: "RL24sDzw4lL6"
captive_portal:
### temp sensor
### switch für releae von garage
### audio connector auch switch???
# Example configuration entry
light:
- platform: neopixelbus
id: neopixel
name: "NeoPixel Light"
type: RGB
variant: WS2812
pin: RX
num_leds: 12
internal: true
- platform: partition
name: "Status LED 01"
segments:
# Use first 10 LEDs from the light with ID light1
- id: neopixel
from: 0
to: 0
- platform: partition
name: "Status LED 02"
segments:
# Use first 10 LEDs from the light with ID light1
- id: neopixel
from: 1
to: 1
- platform: partition
name: "Status LED 03"
segments:
# Use first 10 LEDs from the light with ID light1
- id: neopixel
from: 2
to: 2
- platform: partition
name: "Status LED 04"
segments:
# Use first 10 LEDs from the light with ID light1
- id: neopixel
from: 3
to: 3
- platform: partition
name: "Status LED 05"
segments:
# Use first 10 LEDs from the light with ID light1
- id: neopixel
from: 4
to: 4
- platform: partition
name: "Status LED 06"
segments:
# Use first 10 LEDs from the light with ID light1
- id: neopixel
from: 5
to: 5
- platform: partition
name: "Status LED 07"
segments:
# Use first 10 LEDs from the light with ID light1
- id: neopixel
from: 6
to: 6
- platform: partition
name: "Status LED 08"
segments:
# Use first 10 LEDs from the light with ID light1
- id: neopixel
from: 7
to: 7
- platform: partition
name: "Status LED 09"
segments:
# Use first 10 LEDs from the light with ID light1
- id: neopixel
from: 8
to: 8
- platform: partition
name: "Status LED 10"
segments:
# Use first 10 LEDs from the light with ID light1
- id: neopixel
from: 9
to: 9
- platform: partition
name: "Status LED 11"
segments:
# Use first 10 LEDs from the light with ID light1
- id: neopixel
from: 10
to: 10
- platform: partition
name: "Status LED 12"
segments:
# Use first 10 LEDs from the light with ID light1
- id: neopixel
from: 11
to: 11
binary_sensor:
#D2 ist der Soundchip für die Türklingel
- platform: gpio
pin: D2
name: "Haustür Klingel"
device_class: sound
filters:
- delayed_off: 5s
switch:
#D1 Relais für den Türöffner
- platform: gpio
pin: D1
id: relay
name: "Haustür Türdrücker"
icon: "mdi:door"
on_turn_on:
- delay: 3000ms
- switch.turn_off: relay
- platform: restart
name: "${devicename} Neustart"
# D3 Temp Sensor DS18b20
# Temp_Flur
dallas:
- pin: D3
sensor:
- platform: dallas
address: 0xDB0316A35722FF28
name: "${devicename} Temperature"
- platform: wifi_signal
name: "${devicename} Wi-Fi Signal"
update_interval: 60s
- platform: uptime
name: "${devicename} Uptime"
update_interval: 60s