Project and EspHome

This commit is contained in:
Victor Alexandrovich Tsyrenschikov
2026-02-22 10:48:00 +05:00
parent 8fbb66a440
commit 9567f5ee54

View File

@@ -45,16 +45,46 @@ switch:
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
binary_sensor:
- platform: gpio
pin:
number: GPIO12
mode:
input: true
device_class: moisture
name: Liquid_sensor_upper
# - 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