Esphome
This commit is contained in:
67
esp8266.yaml
Normal file
67
esp8266.yaml
Normal file
@@ -0,0 +1,67 @@
|
||||
esphome:
|
||||
name: komp_vitya
|
||||
friendly_name: esp8266
|
||||
|
||||
esp8266:
|
||||
board: esp12e
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: "DLO/jlbPutpVyTwKB5fP7oO36K58yiLzU0Fpw0ZN/hM="
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: "f98db3b86ae6f19b2d1aec85ee5f5bcd"
|
||||
|
||||
wifi:
|
||||
ssid: 'SmartHome'
|
||||
password: ''
|
||||
use_address: 192.168.88.39
|
||||
|
||||
manual_ip:
|
||||
static_ip: 192.168.88.39
|
||||
gateway: 192.168.88.1
|
||||
subnet: 255.255.255.0
|
||||
power_save_mode: none
|
||||
|
||||
captive_portal:
|
||||
|
||||
status_led:
|
||||
pin:
|
||||
number: GPIO16
|
||||
inverted: True
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
pin: GPIO5
|
||||
name: Relay_komp
|
||||
id: relay
|
||||
on_turn_off:
|
||||
then:
|
||||
- wait_until:
|
||||
condition:
|
||||
for:
|
||||
time: 2s
|
||||
condition:
|
||||
lambda: |-
|
||||
return id(relay).state == true;
|
||||
- lambda: |-
|
||||
id(relay).turn_off();
|
||||
|
||||
|
||||
mqtt:
|
||||
broker: 192.168.88.4
|
||||
username: 'miroca'
|
||||
password: 'cbvgcjy0'
|
||||
discovery: False # disable entity discovery
|
||||
discover_ip: True # enable device discovery
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
auth:
|
||||
username: "silver"
|
||||
password: "cbvgcjy0"
|
||||
Reference in New Issue
Block a user