Esphome
This commit is contained in:
24
esp8266.yaml
24
esp8266.yaml
@@ -37,22 +37,22 @@ status_led:
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: "a8-input1"
|
||||
name: "input"
|
||||
pin:
|
||||
number: GPIO12
|
||||
mode: INPUT
|
||||
inverted: true
|
||||
number: GPIO12 # Пин, к которому подключена кнопка
|
||||
mode: INPUT_PULLUP
|
||||
inverted: True # Полезно, если кнопка замыкает на землю (GND)
|
||||
on_press:
|
||||
- switch.toggle: relay
|
||||
on_release:
|
||||
- switch.toggle: relay
|
||||
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: GPIO5
|
||||
mode: OUTPUT
|
||||
inverted: True
|
||||
inverted: true
|
||||
name: Relay_komp
|
||||
id: relay
|
||||
on_turn_off:
|
||||
@@ -78,12 +78,12 @@ sensor:
|
||||
name: "DS18B20_kontroller"
|
||||
update_interval: 2s
|
||||
|
||||
mqtt:
|
||||
broker: 192.168.88.4
|
||||
username: 'miroca'
|
||||
password: 'cbvgcjy0'
|
||||
discovery: False # disable entity discovery
|
||||
discover_ip: True # enable device discovery
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user