Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KCS v3 for AG8 IR protocol
#1
UDP Server / TCP Server / Loxone / RS232:

Learn IR (MAX support 192 IR signals):

send:  RELAY-IR-LEARN-255,1,2    // begin learn IR signal ID=1, send by IR tube-2
receive: RELAY-IR-LEARN-255,1,OK  // success
receive: RELAY-IR-LEARN-255,1,TIMEOUT  // timeout

send: RELAY-IR-LEARN-255,200  // if send IR exceeding the maximum IR ID(MAX=192)
receive: RELAY-IR-LEARN-255,200,ERROR  // error

Send IR:

send: RELAY-IR-RUN-255,1  // send IR signal ID=1
receive: RELAY-IR-RUN-255,1,OK

Delete IR:

send: RELAY-IR-DEL-255,1  // delete learned IR signal ID=1
receive: RELAY-IR-DEL-255,1,OK
---------------------------------------------------------------
UDP Client / TCP Client / Loxone / RS232:

IR triggered and auto feedback: (ONLY use for NEC and RC5 IR code)

RELAY-GET_IR-255,1,1,OK  // trigger
RELAY-GET_IR-255,1,0,OK  // not trigger

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

MQTT:

Learn IR:  // begin learn IR signal ID=1, send by IR tube-2
payload:
{
  "learn_ir": {
    "value": 1,
    "tx_channel": 2
  }
}

Delete IR:  // delete learned IR signal ID=1

payload:
{
  "run_ir": {
    "value": 1
  }
}

IR triggered and auto feedback:  // trigger when value=1  (ONLY use for NEC and RC5 IR code)

payload:

// trigger begin
{
  "ir1": {
    "value": 1
  }
}

// trigger end
{
  "ir1": {
    "value": 0
  }
}
   
   
   
---------------------------------------------------------------
RS485 Modbus

// 01: Address 
// 08: Function code - Learn IR
// 00 05: Register address, 05 means ID=6 because ID begin with 0
// 00 04: Send IR tube, values range from 1-8. 04 means the 4th channel 
// F1 C9: CRC 
[Tx] 01 08 00 05 00 04 F1 C9 

// 01: Address 
// 08: Function code - Learn IR
// 02: Data length 
// 00 05: Data value, corresponding to the register address when transmitting 
// 7A 63: CRC 
[Rx] 01 08 02 00 05 7A 63 

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

// 01: Address 
// 07: Function code - Send IR
// 00 02: Register address, send IR at index 2, which ID=3 
// 00 01: Register count, fixed value 1, only one infrared can be controlled at a time 
// D4 0A: CRC 
[Tx] 01 07 00 02 00 01 D4 0A 

// 01: Address 
// 07: Function code - Send IR
// 02: Data length 
// 00 02: Data value, corresponding to the register address when transmitting 
// 38 B5: CRC 
[Rx] 01 07 02 00 02 38 B5 

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

// 01: Address 
// 09: Function code - Delete IR
// 00 07: Register address, 07 means ID=8 
// 00 01: Register count, fixed value 1, only one infrared can be deleted at a time 
// AD CA: CRC 
[Tx][11:32:00.669] 01 09 00 07 00 01 AD CA 

// 01: Address 
// 09: Function code - Delete IR
// 02: Data length 
// 00 07: Data value, corresponding to the register address when transmitting 
// FA 5E: CRC 
[Rx][11:32:01.959] 01 09 02 00 07 FA 5E 

   
   
   
Reply
#2
Hello,  
Inquiry About Controlling Multiple Gree Air Conditioners with KC868-AG8

I have 5 Gree air conditioners, and I want to control them using the KC868-AG8 unit. Do I need to learn the infrared signal separately for each air conditioner 5 times, or can I learn the signal once and use it to control all the air conditioners together? If that is possible, what is the best way to send the signal to all the air conditioners at the same time or individually?
Thank you.
Reply
#3
now if you want send by different IR tube, need to learn IR signal individually.
Do you want control individually? or want learn one IR signal send to ALL IR tubes? Can you take examples?
Reply
#4
Since all the air conditioners are of the same model, the most effective approach is to learn the IR signal from just one unit. After that, the same signal can be reused to control the air conditioners installed in five different rooms—namely, the bedroom, living room, dining room, meeting room, and office—by connecting each air conditioner to a separate IR channel.
In summary:
  • Learn the signal once:
    Since the signals are identical across all units, there is no need to learn separate signals for each device.
Reply
#5
i think this function can be add to next firmware update version.
Reply
#6
I have just purchased the AG8. 

My question: Using ESPhome, 1 tube can transmit many different IR signals, yes? Not necessarily 1 signal only for one IR tube, correct?
Reply
#7
note: Node: ESP32-S3 chip support 4 channel IR sender work at the same time by ESPHome. here is details by ESPHome webpage:
https://esphome.io/components/remote_transmitter.html
KCS v3 support 8 IR tube work at the same time.
Reply
#8
(06-13-2025, 01:13 AM)admin Wrote: note: Node: ESP32-S3 chip support 4 channel IR sender work at the same time by ESPHome. here is details by ESPHome webpage:
https://esphome.io/components/remote_transmitter.html
KCS v3 support 8 IR tube work at the same time.

Dear admin, thank you for your reply.

Yes, I understand ESP32-S3 chip supports 4 channel IR concurrently (work at same time).
Yes, I understand that KCSv3 supports 8 IR tubes working at the same time.

My question, I rephrase...

Can 1 IR tube learn and send different signals? 

Example: Can it learn (1) "off/on" signal and/or learn (2) "change mode" signal, and/or (3) "fan speed" signal?

If I need all three signals above to control my room aircond, do I use 1 IR tube or do I need 3 IR tubes in my room?
Reply
#9
you can learn many different IR signals, send by one IR tube.
Reply
#10
Hello
I need to send IR codes through Home Assistant, passing the parameters directly to AG8 without having to save the commands. Below is an example of what I need to do, similar to what is possible with Tasmota or Esphome.

shipping via tasmota like this

show_name: true
show_icon: true
type: button
icon: mdi:arrow-up-bold
tap_action:
  action: call-service
  service: mqtt.publish
  data:
    topic: cmnd/ag8/IRsend
    payload: |
      {"Protocol":"RC5","Bits":20,"Data":"0x1005B","Channel":2}


I'm trying with ag8 but I'm not getting it

type: button
name: "Teste RC5 Canal 1"
tap_action:
  action: call-service
  service: mqtt.publish
  service_data:
    topic: AG8/CCBAXXXXXX/SET
    payload: >
      {"ir":{"channel":1,"protocol":"RC5","bits":12,"data":"0x1FE"}}
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)