Files
EspHome/bak.yaml
Victor Alexandrovich Tsyrenschikov 9567f5ee54 Project and EspHome
2026-02-22 10:48:00 +05:00

100 lines
2.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
esphome:
name: relay_auto_bak
friendly_name: bak
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:
number: GPIO5
inverted: true
name: Relay
id: relay
# sensor:
# - platform: adc
# pin: A0 # Replace A0 with the actual GPIO pin you are using
# name: "CT Clamp Raw Voltage"
# id: ct_raw_voltage
# update_interval: 100ms
# internal: True
# - platform: ct_clamp
# sensor: ct_raw_voltage
# id: measured_current
# name: "Grid Current"
# update_interval: 2s
# # This filter line is for calibration. You need to adjust the multiplier
# # based on your specific hardware setup and measurements.
# filters:
# - calibrate_linear:
# - 0.001 -> 0.0
# - 1.000 -> 100.0 # Example: if 1V input corresponds to 100A
# unit_of_measurement: "A"
# accuracy_decimals: 2
# - platform: template
# name: "Measured Power (Apparent)"
# unit_of_measurement: "W"
# id: measured_power
# device_class: power
# update_interval: 2s
# # Умножение тока на фиксированное напряжение сети (например, 220В)
# lambda: |-
# return id(measured_current).state * 230.0;
# binary_sensor:
# - platform: gpio
# pin:
# number: GPIO12
# mode:
# input: true
# device_class: moisture
# name: Liquid_sensor_upper
# 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"