This commit is contained in:
Victor Alexandrovich Tsyrenschikov
2026-02-08 00:20:10 +05:00
parent fff0982531
commit 5ee04327fd

View File

@@ -1,5 +1,5 @@
esphome:
name: komp_vitya
name: relay_auto_generator
friendly_name: esp8266
esp8266:
@@ -34,10 +34,25 @@ status_led:
pin:
number: GPIO16
inverted: True
binary_sensor:
- platform: gpio
name: "a8-input1"
pin:
number: GPIO12
mode: INPUT
inverted: true
on_press:
- switch.toggle: relay
on_release:
- switch.toggle: relay
switch:
- platform: gpio
pin: GPIO5
pin:
number: GPIO5
mode: OUTPUT
inverted: True
name: Relay_komp
id: relay
on_turn_off:
@@ -45,13 +60,23 @@ switch:
- wait_until:
condition:
for:
time: 2s
time: 5s
condition:
lambda: |-
return id(relay).state == true;
- lambda: |-
id(relay).turn_off();
one_wire:
- platform: gpio
pin: GPIO14
id: bus14
sensor:
- platform: dallas_temp
one_wire_id: bus14
name: "DS18B20_kontroller"
update_interval: 2s
mqtt:
broker: 192.168.88.4