Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,372
» Latest member: FnoXpert
» Forum threads: 2,845
» Forum posts: 15,039

Full Statistics

Online Users
There are currently 151 online users.
» 0 Member(s) | 130 Guest(s)
Amazonbot, Bytespider, Crawl, Google, PetalBot, Semrush, WordPress/, Yandex, bot, owler

Latest Threads
[Arduino source code for ...
Forum: KC868-A2
Last Post: powerup
1 hour ago
» Replies: 5
» Views: 1,486
KinCony ESP32-S3 Core Boa...
Forum: Extender module
Last Post: admin
1 hour ago
» Replies: 37
» Views: 1,400
Using 12v on Digital Inpu...
Forum: KC868-A16
Last Post: admin
2 hours ago
» Replies: 13
» Views: 364
[Arduino IDE demo source ...
Forum: KC868-A16
Last Post: admin
2 hours ago
» Replies: 8
» Views: 2,587
Curtain/Window Shade Cont...
Forum: Suggestions and feedback on KinCony's products
Last Post: admin
2 hours ago
» Replies: 1
» Views: 2
Pull up on A8
Forum: KC868-A series and Uair Smart Controller
Last Post: heffneil
5 hours ago
» Replies: 17
» Views: 241
A16: IFTTT Time based act...
Forum: KC868-A16
Last Post: sebfromgermany
Yesterday, 01:20 PM
» Replies: 17
» Views: 164
analog input resolution 3...
Forum: KC868-A16
Last Post: Yosemite
Yesterday, 12:43 PM
» Replies: 15
» Views: 388
KC868-HA-V21 serial port ...
Forum: KC868-HA /HA v2
Last Post: admin
Yesterday, 10:15 AM
» Replies: 8
» Views: 97
Using B16M for driving LE...
Forum: B16M
Last Post: admin
Yesterday, 10:11 AM
» Replies: 3
» Views: 11

  "KCS" v2.0.5 firmware BIN file download
Posted by: admin - 07-22-2023, 01:20 AM - Forum: "KCS" v2 firmware system - Replies (14)

Here is "KCS" firmware for KinCony KC868-A series (ESP32) board.
How to download and use, online guide: https://www.kincony.com/esp32-kcsv2-firmware.html

v2.0.5 improment:

1. IFTTT function running locally
2. 4G SIM7600 GSM module for SMS, voice control , DTMF control way.
3. use tuya app by 4G if without ethernet or wifi.
4. digital input port support "OLD switch panel"
5. support DS18B20/DHT11/DHT22 sensor monitor.
6. support AUTOMATION with HTTP,TCP,RS232,RS485,UDP protocol to other devices.
7. relay output "momentary delay time" set be set longer.
8. fixed some bugs based "KCS v1" firmware.
9. support many new ESP32 board models.
10. something other updates.



Attached Files
.zip   KCS_KC868_A2_V2.0.5.zip (Size: 814.06 KB / Downloads: 474)
.zip   KCS_KC868_A4_V2.0.5.zip (Size: 804.81 KB / Downloads: 435)
.zip   KCS_KC868_A6_V2.0.5.zip (Size: 800.51 KB / Downloads: 337)
.zip   KCS_KC868_A8_V2.0.5.zip (Size: 808.14 KB / Downloads: 501)
.zip   KCS_KC868_A8M_V2.0.5.zip (Size: 825.43 KB / Downloads: 332)
.zip   KCS_KC868_A8S_V2.0.5.zip (Size: 827.08 KB / Downloads: 366)
.zip   KCS_KC868_A16_V2.0.5.zip (Size: 815.77 KB / Downloads: 350)
.zip   KCS_KC868_A16S_V2.0.5.zip (Size: 826.86 KB / Downloads: 329)
.zip   KCS_KC868_A32_V2.0.5.zip (Size: 809.59 KB / Downloads: 313)
.zip   KCS_KC868_A32M_V2.0.5.zip (Size: 828.11 KB / Downloads: 370)
.zip   KCS_KC868_A64_V2.0.5.zip (Size: 809.53 KB / Downloads: 462)
.zip   KCS_KC868_A128_V2.0.5.zip (Size: 809.7 KB / Downloads: 324)
.zip   KCS_KC868_AG_V2.0.5.zip (Size: 786.69 KB / Downloads: 343)
.zip   KCS_KC868_AI_V2.0.5.zip (Size: 811.87 KB / Downloads: 270)
.zip   KCS_KC868_AK_V2.0.5.zip (Size: 789.89 KB / Downloads: 379)
.zip   KCS_KC868_AM_V2.0.5.zip (Size: 801.33 KB / Downloads: 315)
.zip   KCS_KC868_ASR_V2.0.5.zip (Size: 776.8 KB / Downloads: 350)
.zip   KCS_KC868_E16S_V2.0.5.zip (Size: 811.91 KB / Downloads: 375)
.zip   KCS_KC868_UAIR_V2.0.5.zip (Size: 789.83 KB / Downloads: 417)
Print this item

  RTC stop working with button cell
Posted by: jmartin - 07-20-2023, 05:30 PM - Forum: KC868-A6 - Replies (11)

I am having problems with the DS1307 RTC. It works fine when it is not used with the CR1220 button cell backup. When the CR1220 button cell is inserted the time cannot be set up and it always read 2165/165/165 (Saturday) 165:165:85. I have tried two CR1220 button cells, one of them new,  and I have checked that they provides 3 V.  Any suggestion?

Print this item

  Button Switch Board with problem
Posted by: cadejaja - 07-20-2023, 11:46 AM - Forum: KC868-HxB series Smart Controller - Replies (6)

I have a problem with the button switch board working with the KC868-H32B Pro. When I click on an entry the relay turns on and off. It doesn't change levels. But by activating the controller's internal buttons, the relay is in the high state. And on the button switch board they work ALL ON and ALL OFF, normally. I updated the firmware to 1.18. Thank you if you can help me.

Print this item

  H32B Pro/H32BS RS485 command list for KNX bus converter
Posted by: admin - 07-20-2023, 02:10 AM - Forum: KC868-HxB series Smart Controller - No Replies

   
This is demo solution, KinCony H32B Pro relay controller work with KNX system. 8 gang switch panel is KNX type.
KinCony H32B Pro / H32BS relay controller RS485 command list:

send: Turn ON Relay1:01 05 00 00 FF 00 8C 3A  receive:01 05 00 00 FF 00 8C 3A
send: Turn ON Relay2:01 05 00 01 FF 00 DD FA  receive:01 05 00 01 FF 00 DD FA
send: Turn ON Relay3:01 05 00 02 FF 00 2D FA  receive:01 05 00 02 FF 00 2D FA
send: Turn ON Relay4:01 05 00 03 FF 00 7C 3A  receive:01 05 00 03 FF 00 7C 3A
send: Turn ON Relay5:01 05 00 04 FF 00 CD FB  receive:01 05 00 04 FF 00 CD FB
send: Turn ON Relay6:01 05 00 05 FF 00 9C 3B  receive:01 05 00 05 FF 00 9C 3B
send: Turn ON Relay7:01 05 00 06 FF 00 6C 3B  receive:01 05 00 06 FF 00 6C 3B
send: Turn ON Relay8:01 05 00 07 FF 00 3D FB  receive:01 05 00 07 FF 00 3D FB
send: Turn ON Relay9:01 05 00 08 FF 00 0D F8  receive:01 05 00 08 FF 00 0D F8
send: Turn ON Relay10:01 05 00 09 FF 00 5C 38  receive:01 05 00 09 FF 00 5C 38
send: Turn ON Relay11:01 05 00 0A FF 00 AC 38  receive:01 05 00 0A FF 00 AC 38
send: Turn ON Relay12:01 05 00 0B FF 00 FD F8  receive:01 05 00 0B FF 00 FD F8
send: Turn ON Relay13:01 05 00 0C FF 00 4C 39  receive:01 05 00 0C FF 00 4C 39
send: Turn ON Relay14:01 05 00 0D FF 00 1D F9  receive:01 05 00 0D FF 00 1D F9
send: Turn ON Relay15:01 05 00 0E FF 00 ED F9  receive:01 05 00 0E FF 00 ED F9
send: Turn ON Relay16:01 05 00 0F FF 00 BC 39  receive:01 05 00 0F FF 00 BC 39
send: Turn ON Relay17:01 05 00 10 FF 00 8D FF  receive:01 05 00 10 FF 00 8D FF
send: Turn ON Relay18:01 05 00 11 FF 00 DC 3F  receive:01 05 00 11 FF 00 DC 3F
send: Turn ON Relay19:01 05 00 12 FF 00 2C 3F  receive:01 05 00 12 FF 00 2C 3F
send: Turn ON Relay20:01 05 00 13 FF 00 7D FF  receive:01 05 00 13 FF 00 7D FF
send: Turn ON Relay21:01 05 00 14 FF 00 CC 3E  receive:01 05 00 14 FF 00 CC 3E
send: Turn ON Relay22:01 05 00 15 FF 00 9D FE  receive:01 05 00 15 FF 00 9D FE
send: Turn ON Relay23:01 05 00 16 FF 00 6D FE  receive:01 05 00 16 FF 00 6D FE
send: Turn ON Relay24:01 05 00 17 FF 00 3C 3E  receive:01 05 00 17 FF 00 3C 3E
send: Turn ON Relay25:01 05 00 18 FF 00 0C 3D  receive:01 05 00 18 FF 00 0C 3D
send: Turn ON Relay26:01 05 00 19 FF 00 5D FD  receive:01 05 00 19 FF 00 5D FD
send: Turn ON Relay27:01 05 00 1A FF 00 AD FD  receive:01 05 00 1A FF 00 AD FD
send: Turn ON Relay28:01 05 00 1B FF 00 FC 3D  receive:01 05 00 1B FF 00 FC 3D
send: Turn ON Relay29:01 05 00 1C FF 00 4D FC  receive:01 05 00 1C FF 00 4D FC
send: Turn ON Relay30:01 05 00 1D FF 00 1C 3C  receive:01 05 00 1D FF 00 1C 3C
send: Turn ON Relay31:01 05 00 1E FF 00 EC 3C  receive:01 05 00 1E FF 00 EC 3C
send: Turn ON Relay32:01 05 00 1F FF 00 BD FC  receive:01 05 00 1F FF 00 BD FC
---------------------------------------------------------------------

send: Turn OFF Relay1:01 05 00 00 00 00 CD CA  receive:01 05 00 00 00 00 CD CA
send: Turn OFF Relay2:01 05 00 01 00 00 9C 0A  receive:01 05 00 01 00 00 9C 0A
send: Turn OFF Relay3:01 05 00 02 00 00 6C 0A  receive:01 05 00 02 00 00 6C 0A
send: Turn OFF Relay4:01 05 00 03 00 00 3D CA  receive:01 05 00 03 00 00 3D CA
send: Turn OFF Relay5:01 05 00 04 00 00 8C 0B  receive:01 05 00 04 00 00 8C 0B
send: Turn OFF Relay6:01 05 00 05 00 00 DD CB  receive:01 05 00 05 00 00 DD CB
send: Turn OFF Relay7:01 05 00 06 00 00 2D CB  receive:01 05 00 06 00 00 2D CB
send: Turn OFF Relay8:01 05 00 07 00 00 7C 0B  receive:01 05 00 07 00 00 7C 0B
send: Turn OFF Relay9:01 05 00 08 00 00 4C 08  receive:01 05 00 08 00 00 4C 08
send: Turn OFF Relay10:01 05 00 09 00 00 1D C8  receive:01 05 00 09 00 00 1D C8
send: Turn OFF Relay11:01 05 00 0A 00 00 ED C8  receive:01 05 00 0A 00 00 ED C8
send: Turn OFF Relay12:01 05 00 0B 00 00 BC 08  receive:01 05 00 0B 00 00 BC 08
send: Turn OFF Relay13:01 05 00 0C 00 00 0D C9  receive:01 05 00 0C 00 00 0D C9
send: Turn OFF Relay14:01 05 00 0D 00 00 5C 09  receive:01 05 00 0D 00 00 5C 09
send: Turn OFF Relay15:01 05 00 0E 00 00 AC 09  receive:01 05 00 0E 00 00 AC 09
send: Turn OFF Relay16:01 05 00 0F 00 00 FD C9  receive:01 05 00 0F 00 00 FD C9
send: Turn OFF Relay17:01 05 00 10 00 00 CC 0F  receive:01 05 00 10 00 00 CC 0F
send: Turn OFF Relay18:01 05 00 11 00 00 9D CF  receive:01 05 00 11 00 00 9D CF
send: Turn OFF Relay19:01 05 00 12 00 00 6D CF  receive:01 05 00 12 00 00 6D CF
send: Turn OFF Relay20:01 05 00 13 00 00 3C 0F  receive:01 05 00 13 00 00 3C 0F
send: Turn OFF Relay21:01 05 00 14 00 00 8D CE  receive:01 05 00 14 00 00 8D CE
send: Turn OFF Relay22:01 05 00 15 00 00 DC 0E  receive:01 05 00 15 00 00 DC 0E
send: Turn OFF Relay23:01 05 00 16 00 00 2C 0E  receive:01 05 00 16 00 00 2C 0E
send: Turn OFF Relay24:01 05 00 17 00 00 7D CE  receive:01 05 00 17 00 00 7D CE
send: Turn OFF Relay25:01 05 00 18 00 00 4D CD  receive:01 05 00 18 00 00 4D CD
send: Turn OFF Relay26:01 05 00 19 00 00 1C 0D  receive:01 05 00 19 00 00 1C 0D
send: Turn OFF Relay27:01 05 00 1A 00 00 EC 0D  receive:01 05 00 1A 00 00 EC 0D
send: Turn OFF Relay28:01 05 00 1B 00 00 BD CD  receive:01 05 00 1B 00 00 BD CD
send: Turn OFF Relay29:01 05 00 1C 00 00 0C 0C  receive:01 05 00 1C 00 00 0C 0C
send: Turn OFF Relay30:01 05 00 1D 00 00 5D CC  receive:01 05 00 1D 00 00 5D CC
send: Turn OFF Relay31:01 05 00 1E 00 00 AD CC  receive:01 05 00 1E 00 00 AD CC
send: Turn OFF Relay32:01 05 00 1F 00 00 FC 0C  receive:01 05 00 1F 00 00 FC 0C

----------------------------------------------------------------

ALL ON:
send:01 0F 00 00 00 20 04 FF FF FF FF C5 1C  receive:01 0F 00 00 00 20 54 13

ALL OFF:
send:01 0F 00 00 00 20 04 00 00 00 00 C4 88  receive:01 0F 00 00 00 20 54 13

   
   
   



Attached Files
.txt   H32B_Pro_H32BS_RS485_Command_List.txt (Size: 5.71 KB / Downloads: 213)
.zip   RS485_Configuration_V1.1.3.zip (Size: 5.61 MB / Downloads: 212)
Print this item

  RS232 FEMALE cable +KC868-AK
Posted by: KinCony Support - 07-20-2023, 01:43 AM - Forum: Schematic and diagram - No Replies

   

Print this item

  KC868-A8-E
Posted by: avihay - 07-19-2023, 12:55 PM - Forum: "KCS" v2 firmware system - Replies (19)

I was able to create a recording of the remote for the generator, it records the ignition frequency and that when I send a test it does not turn on the generator, is there a possibility that I end an on or off that will send the code several times in a row? And in the background of the recording?



Attached Files
.txt   karavan.txt (Size: 11.43 KB / Downloads: 267)
Print this item

  Custom Control Box
Posted by: LTDU - 07-19-2023, 09:52 AM - Forum: DIY Project - Replies (3)

Dear team,

do you also do custom control boxes? In my case I‘d need a KC868-a64, about 8 holes for lamps/switches and a LCD display.

Let me know if you do custom configurations, so I can support more details. This is for a prototype that might become series.

Print this item

  [Arduino source code for KC868-M16v2]-05 simple usage detect AC voltage
Posted by: admin - 07-18-2023, 01:39 PM - Forum: KC868-M16 / M1 / MB / M30 - No Replies

Code:
/**
* This program shows you how to use the basics of this library.
*/

#include <ZMPT101B.h>

//#define SENSITIVITY 500.0f
#define SENSITIVITY 507.25f

// ZMPT101B sensor output connected to analog pin A0
// and the voltage source frequency is 50 Hz.
ZMPT101B voltageSensor(34, 50.0);

void setup() {
  Serial.begin(115200);
  // Change the sensitivity value based on value you got from the calibrate
  // example.
  voltageSensor.setSensitivity(SENSITIVITY);
}

void loop() {
  // read the voltage and then print via Serial.
  float voltage = voltageSensor.getRmsVoltage();
  Serial.println(voltage);

  delay(1000);
}
before use code, install zmpt101b arduino library firstly.
[Image: attachment.php?aid=2665]

Print this item

  [Arduino source code for KC868-M16v2]-04 calibrate AC voltage
Posted by: admin - 07-18-2023, 01:37 PM - Forum: KC868-M16 / M1 / MB / M30 - No Replies

Code:
/**
* This program shows how we can get (estimate) the right sensitivity value for
* the sensor.
*
* This program will swipe from the lowest sensitivity estimate value to the
* highest. The program will stop if the voltage reading result from the sensor
* is within the specified tolerance limit or the sensitivity value has exceeded
* the highest predetermined value (which in this case is considered failed to
* be determined).
*/

#include <ZMPT101B.h>

#define ACTUAL_VOLTAGE 220.0f // Change this based on actual voltage

#define START_VALUE 0.0f
#define STOP_VALUE 1000.0f
#define STEP_VALUE 0.25f
#define TOLLERANCE 1.0f

#define MAX_TOLLERANCE_VOLTAGE (ACTUAL_VOLTAGE + TOLLERANCE)
#define MIN_TOLLERANCE_VOLTAGE (ACTUAL_VOLTAGE - TOLLERANCE)

// ZMPT101B sensor output connected to analog pin A0
// and the voltage source frequency is 50 Hz.
ZMPT101B voltageSensor(34, 50.0);

void setup() {
  Serial.begin(115200);
  Serial.print("The Actual Voltage: ");
  Serial.println(ACTUAL_VOLTAGE);

  float senstivityValue = START_VALUE;
  voltageSensor.setSensitivity(senstivityValue);
  float voltageNow = voltageSensor.getRmsVoltage();

  Serial.println("Start calculate");

  while (voltageNow > MAX_TOLLERANCE_VOLTAGE || voltageNow < MIN_TOLLERANCE_VOLTAGE) {
    if (senstivityValue < STOP_VALUE) {
      senstivityValue += STEP_VALUE;
      voltageSensor.setSensitivity(senstivityValue);
      voltageNow = voltageSensor.getRmsVoltage();
      Serial.print(senstivityValue);
      Serial.print(" => ");
      Serial.println(voltageNow);
    } else {
      Serial.println("Unfortunately the sensitivity value cannot be determined");
      return;
    }
  }

  Serial.print("Closest voltage within tolerance: ");
  Serial.println(voltageNow);
  Serial.print("Sensitivity Value: ");
  Serial.println(senstivityValue, 10);
}

void loop() {}
before use code, install zmpt101b arduino library firstly.
   

Print this item

  KC868-M16v2 configure yaml for ESPhome
Posted by: admin - 07-18-2023, 01:33 PM - Forum: KC868-M16 / M1 / MB / M30 - Replies (38)

   
   
before you config ymal file, please upload zmpt101b folder to home assistant disk:
   
unzip files, 3 files upload to disk folder as image.

.zip   zmpt101b.zip (Size: 1.83 KB / Downloads: 711)



.txt   KC868-M16v2-ESPHome.txt (Size: 9.55 KB / Downloads: 670)
esphome:
  name: m16
  includes:
    - zmpt101b/ZMPT101B.h
    - zmpt101b/ZMPT101B.cpp
    - zmpt101b/zmpt101b_custom_sensor.h

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "D69bY/GXlmjYkovak6WIhgmbOH8vwyqvMxIHBriYoaY="


# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a

cd74hc4067:
  - id: cd74hc4067_1
    pin_s0: 32
    pin_s1: 33
    pin_s2: 13
    pin_s3: 16

web_server:
  port: 80

font:

  - file: "gfonts://Roboto"
    id: roboto
    size: 20

display:
  - platform: ssd1306_i2c
    model: "SSD1306 128x64"
    address: 0x3C
    lambda: |-
      it.printf(0, 0, id(roboto), "T: %.1f°C", id(temperature).state);
      it.printf(0, 20, id(roboto), "H: %.1f%%", id(humidity).state);
      it.printf(0, 40, id(roboto), "AC:%.1fV", id(voltage_2).state);

# Example configuration entry
sensor:
  - platform: custom
    lambda: |-
      auto my_sensor34 = new ZMPT101BSensor(34);
      auto my_sensor36 = new ZMPT101BSensor(36);
      auto my_sensor39 = new ZMPT101BSensor(39);
      App.register_component(my_sensor34);
      App.register_component(my_sensor36);
      App.register_component(my_sensor39);
      return {my_sensor34, my_sensor36, my_sensor39};
    sensors:
      - name: "m16--AI zmpt 34"
        id: voltage_1
        unit_of_measurement: V
        accuracy_decimals: 1
        state_class: "measurement"
      - name: "m16--AI zmpt 36"
        id: voltage_2
        unit_of_measurement: V
        accuracy_decimals: 1
        state_class: "measurement"
      - name: "m16--AI zmpt 39"
        id: voltage_3
        unit_of_measurement: V
        accuracy_decimals: 1
        state_class: "measurement"

  - platform: sht3xd
    temperature:
      name: "sht Temperature"
      id: temperature
    humidity:
      name: "sht Humidity"
      id: humidity
    address: 0x44
    update_interval: 5s

  - platform: adc
    pin: 35
    id: adc35
    update_interval: never
    attenuation: 11db

  # - platform: adc
  #  name: "m16--AI-1"
  #  pin: 36
  #  id: adc36
  #  update_interval: 60s
  #  attenuation: 11db

  # - platform: adc
  #  pin: 34
  #  name: "m16--AI-2"
  #  id: adc34
  #  update_interval: 60s
  #  attenuation: 11db

  # - platform: adc
  #  pin: 39
  #  name: "m16--AI-3"
  #  id: adc39
  #  update_interval: 60s
  #  attenuation: 11db




  - platform: cd74hc4067
    id: ai1
    number: 0
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai2
    number: 1
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai3
    number: 2
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai4
    number: 3
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai5
    number: 4
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai6
    number: 5
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai7
    number: 6
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai8
    number: 7
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai9
    number: 8
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai10
    number: 9
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai11
    number: 10
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai12
    number: 11
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai13
    number: 12
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai14
    number: 13
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai15
    number: 14
    sensor: adc35
    update_interval: 60s

  - platform: cd74hc4067
    id: ai16
    number: 15
    sensor: adc35
    update_interval: 60s


  - platform: ct_clamp
    sensor: ai1
    id: Measured_Current_1
    name: "Measured Current-1"
    update_interval: 5s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0.0034 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: template
    id: power1
    name: "power1"
    lambda: return id(Measured_Current_1).state * id(voltage_1).state;
    device_class: power
    unit_of_measurement: 'W'
    update_interval: 60s

  - platform: total_daily_energy
    name: "Total Daily Energy1"
    power_id: power1
    filters:
        - multiply: 0.001
    unit_of_measurement: kWh
    accuracy_decimals: 3
    icon: mdi:clock-alert
    device_class: energy


  - platform: ct_clamp
    sensor: ai2
    name: "Measured Current-2"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai3
    name: "Measured Current-3"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai4
    name: "Measured Current-4"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai5
    name: "Measured Current-5"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai6
    name: "Measured Current-6"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai7
    name: "Measured Current-7"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai8
    name: "Measured Current-8"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai9
    name: "Measured Current-9"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai10
    name: "Measured Current-10"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai11
    name: "Measured Current-11"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai12
    name: "Measured Current-12"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai13
    name: "Measured Current-13"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai14
    name: "Measured Current-14"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai15
    name: "Measured Current-15"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

  - platform: ct_clamp
    sensor: ai16
    name: "Measured Current-16"
    update_interval: 60s
    filters:
      - calibrate_linear:
          # Measured value of 0 maps to 0A
          - 0 -> 0
          # Known load: 4.0A
          # Value shown in logs: 0.1333A
          - 0.31749 -> 8.95608

time:
  - platform: sntp
    id: my_time

Print this item