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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,369
» Latest member: talljane
» Forum threads: 2,574
» Forum posts: 13,305

Full Statistics

Online Users
There are currently 56 online users.
» 0 Member(s) | 36 Guest(s)
AhrefsBot, Bing, Bytespider, Crawl, Google, PetalBot, Semrush, bot

Latest Threads
KC868-A2 ESP32 I/O pin de...
Forum: KC868-A2
Last Post: tugra
3 hours ago
» Replies: 7
» Views: 2,261
change wake up name
Forum: KinCony AS
Last Post: gal
11 hours ago
» Replies: 12
» Views: 78
A32 Pro ESPHome yaml incl...
Forum: KC868-A32/A32 Pro
Last Post: xarouli5
Today, 06:38 AM
» Replies: 17
» Views: 181
Need help with configurat...
Forum: KC868-HxB series Smart Controller
Last Post: admin
Today, 04:32 AM
» Replies: 32
» Views: 393
ESP32 S3 set up issue
Forum: Extender module
Last Post: admin
Yesterday, 11:43 PM
» Replies: 10
» Views: 66
KC868-A8 Schematic
Forum: KC868-A8
Last Post: admin
Yesterday, 11:40 PM
» Replies: 7
» Views: 49
"KCS" v2.2.8 firmware BIN...
Forum: "KCS" firmware system
Last Post: admin
Yesterday, 11:38 PM
» Replies: 2
» Views: 172
Dimensions/drawings of bo...
Forum: Schematic and diagram
Last Post: admin
Yesterday, 11:37 PM
» Replies: 1
» Views: 23
how to use AS ESP32-S3 vo...
Forum: KinCony AS
Last Post: admin
12-16-2024, 10:55 PM
» Replies: 12
» Views: 448
Problem with IFTTT automa...
Forum: "KCS" firmware system
Last Post: admin
12-16-2024, 10:53 PM
» Replies: 5
» Views: 34

Exclamation No Response
Posted by: Vaughan2024 - 04-27-2024, 08:54 AM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

I have a KC868-A16S with the following code on it , After installing it it now will not respond,
the relays will only activate via the on board push button not via home assistant interface?
Home assistant show the switch turn on but the board does nothing.

I there any suggestion why this is happing ?

Dose the code look ok and can I reset the board and reload the firmware.

Code:
esphome:
  name: esphome_io_board
  friendly_name: ESPHome IO Board

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:

# Example configuration entry
ota:
  safe_mode: true
  password: !sectet ota_password

# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a


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

  # Optional manual IP
  manual_ip:
    static_ip: 192.168.1.3
    gateway: 192.168.1.1
    subnet: 255.255.255.0


# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_out_2' # for output channel 9-16
    address: 0x25

  - id: 'pcf8574_hub_in_1' # for input channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_in_2' # for input channel 9-16
    address: 0x22 

# Individual outputs
switch:
  - platform: gpio
    name: "relay1"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
    
  - platform: gpio
    name: "relay3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
    
  - platform: gpio
    name: "relay4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
    
  - platform: gpio
    name: "relay5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
    
  - platform: gpio
    name: "relay6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
    
  - platform: gpio
    name: "relay8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay9"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 8
      mode: OUTPUT
      inverted: true
    
  - platform: gpio
    name: "relay10"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 9
      mode: OUTPUT
      inverted: true
 
  - platform: gpio
    name: "relay11"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay12"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 11
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay13"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay14"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay15"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay16"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 15
      mode: OUTPUT
      inverted: true                             

binary_sensor:
  - platform: gpio
    name: "input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input2"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input3"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input4"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input7"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input8"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input9"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 8
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input10"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 9
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input11"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 10
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input12"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 11
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input13"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 12
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input14"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 13
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input15"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 14
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input16"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 15
      mode: INPUT
      inverted: false

Print this item

  KC868-A4 Bluetooth momentary Switch
Posted by: franco.demei@gmail.com - 04-27-2024, 08:39 AM - Forum: KC868-A4 - Replies (3)

I'm trying to program four momentary switch via bluetooth commands. I don't understand why I can't enable  "Relay3".
To compile KC868-A4 code I'm using "Arduino IDE". To program Android code  "MIT App Inventory" .
 Here is the codes I Used.  Can some one help me to understand where is a mistake ? Tank You.

AI Code     

Arduino IDE Code:

#include "BluetoothSerial.h"
BluetoothSerial SerialBT; // RX | TX
int Relay1 = 2;
int Relay2 = 5;
int Relay3 = 15;
int Relay4 = 4;
void setup() {
  pinMode(Relay1, OUTPUT);
  pinMode(Relay2, OUTPUT);
  pinMode(Relay3, OUTPUT);
  pinMode(Relay4, OUTPUT);
 
  Serial.begin(19200);   // Serial monitor
  SerialBT.begin(19200); // Bluetooth serial communication
 
  Serial.println("Bluetooth Control for KC868-A4 Relays");
}
void loop() {
  if (SerialBT.available()) {
    char command = SerialBT.read();
   
    // Command format: '1' to '4' for relays 1 to 4
    if (command >= '1' && command <= '4') {
      int relay = command - '1' + 2; // Calculate the relay control pin
         
      digitalWrite(relay, !digitalRead(relay));
   
      Serial.print("Relay ");
      Serial.print(command);
      Serial.print(" is ");
      Serial.println(digitalRead(relay) ? "ON" : "OFF");
    }
  }
}

Print this item

  Flux Sensor
Posted by: diegover - 04-25-2024, 06:24 PM - Forum: News - Replies (1)

Hello, 


I can use a flux sensor in KC868-A16S in ports AI1-AI4?

I think sensor use pulses.


Thanks

Print this item

  Develop on my own question
Posted by: mottibz - 04-25-2024, 01:36 PM - Forum: KC868-AG / AG Pro / AG8 - Replies (3)

Hello, I am an IoT Maker and I would like to ask regarding the KC868-AG IR Controller:
1. What software do I get with the device when I purchase it?
2. Does the software come in source code? I am asking this as I would like to develop my own code for the device (extend its capabilities)
3. Is there a version of the device with just only its IR capabilities (no need for RF433) for a reduced price? I only need its IR capabilities to control my AC and other IR controlled devices at home
Thanks a lot!

Print this item

  Screws to lock the board on the back of the box
Posted by: Domdsq - 04-25-2024, 10:27 AM - Forum: KC868-A16 - Replies (8)

Hi everyone, I need to know which screws to buy to be able to fix the card directly to the back of the box (as indicated in the photo). I need to remove the front part of the box because in the European control panel the default box does not fit, it does not allow it to be closed correctly, so I have to find the correct screws to be able to do it. I attach photos. Thank you
[Image: photo-2024-04-25-12-26-04.jpg]

Print this item

  Smart lighting project - DIY software
Posted by: JackT99 - 04-21-2024, 11:53 AM - Forum: DIY Project - Replies (25)

Hi Kincony,

I am building a new house and looking to use Kincony products to control lighting only. Well, maybe some aspects of security as well.

Differences from a usual case are:
1. Not interested in any existing home automation software, I want to write my own software in Arduino to do specific tasks only.
2. Not interested in things like Wifi control, phone apps etc etc. Mostly for it to work standalone.
3. Also not interested in 4G, voice controls etc etc.

I want to use wireless light switches only, for my own reasons. They can be Zigbee or RF433 from what I see sold on Aliexpress. I would like to have them talk to one central wireless hub that either talks to the central controller or is a central controller itself. 
Estimating <32 line outputs for lights, so probably using something like 2x KC868-E16V2 would work?

Can you recommend a suitable Kincony product(s) for this case and are there enough examples on how to work with Zigbee or RF433 and Kincony?

Many thanks,
Jack

Print this item

  Issue with KC868-AIO-EXTAO--V1.2
Posted by: mahafree - 04-20-2024, 02:16 PM - Forum: KC868-AIO - Replies (9)

Hello,
Since a few days I have been having problems with the analog outputs on my KC868-AIO. (KC868-AIO-EXTAO--V1.2)
channels 1 to 6 work normally
Channels 7 and 8 are off and no longer respond to anything. (the LEDs on the PCB are also off. With a voltmeter I measure 0V on the output)
channel 9 works normally.
Channels 10 and 11 are off and no longer respond to anything. (the LEDs on the PCB burn at 100%. With a voltmeter I measure 11.72V on the output)
When other channels are at 100% I measure 10.2V on the output.
channels 12 to 16 work normally.
When I disconnect all outputs, the above remains the same.
All other inputs and outputs work normally.

I have no idea what happened.
My configuration has not changed.
All outputs are connected to the exact same type of dimmers.

What else can I test?
Is there something wrong with the "KC868-AIO-EXTAO--V1.2" board?

Thank you in advance!
   
   

Print this item

  Calibration issue M16v2
Posted by: RdP - 04-20-2024, 11:54 AM - Forum: KC868-M16 / M1 / MB / M30 - Replies (3)

Hi,

I've been strugeling with a calibration issue.

Code:
[13:25:21][D][ct_clamp:041]: 'Measured Current-16' - Raw AC Value: 0.010A after 216 different samples (432 SPS)
[13:25:21][D][sensor:094]: 'Measured Current-16': Sending state 0.13940 A with 5 decimals of accuracy

This is in the logging
But I specified this in the yaml config

Code:
  - platform: ct_clamp
    sensor: ai16
    id: Measured_Current_16
    name: "Measured Current-16"
    sample_duration: 500ms
    update_interval: 20s
    accuracy_decimals: 5     
    filters:
    - calibrate_linear:
      - 0.0 -> 0
      - 0.007 -> 0.004
      - 0.008 -> 0.004
      - 0.009 -> 0.004
      - 0.010 -> 0.004
      - 0.011 -> 0.004
      - 0.056480 -> 1.775
      - 0.114445 -> 3.61
      - 0.204695 -> 6.49
      - 0.286630 -> 9.01
      - 0.340460 -> 10.684
      - 0.535860 -> 16.89

A measured raw value of 0.010 should result in a 0.004 current value, but instead 0.13940 is the result.

What am I doing wrong here?

Thanks,
Rien

Print this item

  Kc868-server-modbus
Posted by: ahmedwizza1 - 04-20-2024, 07:42 AM - Forum: KC868-Server Raspberry Pi4 local server - Replies (4)

Hello engineer 

Now I am trying to use Modbus by kc868-server and kc868-HAV2

I can send orders  on and off by injecting node-red as attached photo 

 how can I make node control on and off kc868-server by kc868-HAv2 throw node-red



Attached Files Thumbnail(s)
       
Print this item

  KC868-ATC V1 dont work on Tuya
Posted by: FelipeAlmanca - 04-20-2024, 02:52 AM - Forum: KC868-ATC / Tuya adapter V2 - Replies (12)

I received the board yesterday and start trying. The wifi state led blinks when its looking for conection, but after connect the led turn off, the switchs on Tuya app does not respond. After clean wifi config and connect again the app shows the switchs at the last change I did, and the wifi led star on and turn off after couple seconds. At the Tuya app shows all 32 switchs and the digital the inputs correct.

Print this item