This commit is contained in:
Victor Alexandrovich Tsyrenschikov
2026-02-13 21:40:00 +05:00
parent 5ee04327fd
commit ffcf420513
3 changed files with 497 additions and 12 deletions

View File

@@ -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