Project and EspHome
This commit is contained in:
46
bak.yaml
46
bak.yaml
@@ -45,16 +45,46 @@ switch:
|
|||||||
name: Relay
|
name: Relay
|
||||||
id: 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: template
|
||||||
- platform: gpio
|
# name: "Measured Power (Apparent)"
|
||||||
pin:
|
# unit_of_measurement: "W"
|
||||||
number: GPIO12
|
# id: measured_power
|
||||||
mode:
|
# device_class: power
|
||||||
input: true
|
# update_interval: 2s
|
||||||
device_class: moisture
|
# # Умножение тока на фиксированное напряжение сети (например, 220В)
|
||||||
name: Liquid_sensor_upper
|
# 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:
|
# mqtt:
|
||||||
# broker: 192.168.88.4
|
# broker: 192.168.88.4
|
||||||
|
|||||||
Reference in New Issue
Block a user