diff --git a/bak.yaml b/bak.yaml index 155603c..ba419ac 100644 --- a/bak.yaml +++ b/bak.yaml @@ -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