Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need Help: ESPHome YAML for AG8 Board to Control 4 Gree AC Units with Temperature
#1
Hello Admin and respected members,
I purchased the AG8 control board , and I’m currently working on a smart home project. I would like to integrate this board with ESPHome to control four Gree air conditioners.
I need a YAML configuration file that allows me to:
  • Turn each AC unit on and off individually
  • Also control the temperature for each unit
It would be very helpful if the YAML file includes clear comments for each part, to make it easier to understand.
I already checked the ESPHome documentation for Gree ACs:
? https://esphome.io/components/climate/cl...ml#gree-ir
I kindly ask for your support in providing the suitable code.
Thank you very much for your time and help ?
Reply
#2
because we don't have "Gree" brand air conditioner for testing.
do you have modify the yaml for your air conditioner? have some issue?
Reply
#3
Hello,

I previously used KCS Firmware to control the air-conditioner without any issues. Now I’d like to switch to ESPHome, and I need your help to provide a complete YAML file suitable for an ESP32-S3 (AG8 board) to control Gree air-conditioners. Please note that I will connect the board via a LAN cable.

Thank you for your support.
Reply
#4
I have attached the configuration file and a screenshot, but the entities are not showing up. Could you please complete any missing sections in the configuration file if something was left out?

esphome:
  name: ag8
  friendly_name: ag8_gr
  platformio_options:
    board_build.flash_mode: dio
esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: esp-idf
    sdkconfig_options:
      SOC_RMT_SUPPORT_RX_PINGPONG: "n"
logger:
  hardware_uart: USB_SERIAL_JTAG
api:
  encryption:
    key: "dolIFOGZiGF8GT9wSJVBuoNzVQSHanaieBBbRcj1t48="
ethernet:
  type: W5500
  clk_pin: GPIO42
  mosi_pin: GPIO43
  miso_pin: GPIO44
  cs_pin: GPIO41
  interrupt_pin: GPIO2
  reset_pin: GPIO1
remote_transmitter:
  - id: ir1
    pin: GPIO9
    carrier_duty_percent: 50%
  - id: ir2
    pin: GPIO10
    carrier_duty_percent: 50%
  - id: ir3
    pin: GPIO11
    carrier_duty_percent: 50%
  - id: ir4
    pin: GPIO12
    carrier_duty_percent: 50%
climate:
  # غرفة المجلس (مكيف 1)
  - platform: gree
    id: ac_majles_1
    name: "AC ـ Majles 1"
    model: yan
    transmitter_id: ir1
  # غرفة المجلس (مكيف 2)
  - platform: gree
    id: ac_majles_2
    name: "AC ـ Majles 2"
    model: yan
    transmitter_id: ir2
  # غرفة الطعام
  - platform: gree
    id: ac_dining
    name: "AC _ Dining"
    model: yan
    transmitter_id: ir3
  # المطبخ
  - platform: gree
    id: ac_kitchen
    name: "AC ـ Kitchen"
    model: yan
    transmitter_id: ir4
web_server:
  port: 80

Code:
esphome:
  name: ag8
  friendly_name: ag8_gr
  platformio_options:
    board_build.flash_mode: dio

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: esp-idf
    sdkconfig_options:
      SOC_RMT_SUPPORT_RX_PINGPONG: "n"

logger:
  hardware_uart: USB_SERIAL_JTAG

api:
  encryption:
    key: "dolIFOGZiGF8GT9wSJVBuoNzVQSHanaieBBbRcj1t48="

ethernet:
  type: W5500
  clk_pin: GPIO42
  mosi_pin: GPIO43
  miso_pin: GPIO44
  cs_pin: GPIO41
  interrupt_pin: GPIO2
  reset_pin: GPIO1


remote_transmitter:
  - id: ir1
    pin: GPIO9
    carrier_duty_percent: 50%
  - id: ir2
    pin: GPIO10
    carrier_duty_percent: 50%
  - id: ir3
    pin: GPIO11
    carrier_duty_percent: 50%
  - id: ir4
    pin: GPIO12
    carrier_duty_percent: 50%

climate:
  # غرفة المجلس (مكيف 1)
  - platform: gree
    id: ac_majles_1
    name: "AC ـ Majles 1"
    model: yan
    transmitter_id: ir1

  # غرفة المجلس (مكيف 2)
  - platform: gree
    id: ac_majles_2
    name: "AC ـ Majles 2"
    model: yan
    transmitter_id: ir2

  # غرفة الطعام
  - platform: gree
    id: ac_dining
    name: "AC _ Dining"
    model: yan
    transmitter_id: ir3

  # المطبخ
  - platform: gree
    id: ac_kitchen
    name: "AC ـ Kitchen"
    model: yan
    transmitter_id: ir4

web_server:
  port: 80


Attached Files Image(s)
   
Reply
#5
I have modified the YAML configuration file and it has been successfully executed. The YAML configuration file is attached 

esphome:
  name: ag8-gr
  friendly_name: AG8_GR
esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: esp-idf
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
  - platform: esphome
ethernet:
  type: W5500
  clk_pin: GPIO42
  mosi_pin: GPIO43
  miso_pin: GPIO44
  cs_pin: GPIO41
  interrupt_pin: GPIO2
  reset_pin: GPIO1
  manual_ip:
    static_ip: 192.168.0.6
    gateway: 192.168.0.1
    subnet: 255.255.255.0
    dns1: 8.8.8.8
    dns2: 8.8.4.4
  # Enable fallback hotspot (captive portal) in case wifi connection fails
#  ap:
#    ssid: "Ag8-GR Hotspot"
#    password: "Ll2223243"
#captive_portal:
web_server:
  port: 80
remote_receiver:
  pin: 48
  #rmt_channel: 4  
  dump: all  
remote_transmitter:
  - id: ir1
    pin: GPIO9
    carrier_duty_percent: 50%
  - id: ir2
    pin: GPIO10
    carrier_duty_percent: 50%
  - id: ir3
    pin: GPIO11
    carrier_duty_percent: 50%
  - id: ir4
    pin: GPIO12
    carrier_duty_percent: 50%
   
#    carrier_duty_percent: 50%
climate:
  # غرفة المجلس (مكيف 1)
  - platform: gree
    id: ac_majles_1
    name: "AC ـ Majles 1"
    model: yac1fb9
    transmitter_id: ir1
  # غرفة المجلس (مكيف 2)
  - platform: gree
    id: ac_majles_2
    name: "AC ـ Majles 2"
    model: yac1fb9
    transmitter_id: ir2
  # غرفة الطعام
  - platform: gree
    id: ac_dining
    name: "AC _ Dining"
    model: yac1fb9
    transmitter_id: ir3
  # المطبخ
  - platform: gree
    id: ac_kitchen
    name: "AC ـ Kitchen"
    model: yac1fb9
    transmitter_id: ir4

Code:
esphome:
  name: ag8-gr
  friendly_name: AG8_GR

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: esp-idf

# Enable logging
logger:

# Enable Home Assistant API
api:


ota:
  - platform: esphome


ethernet:
  type: W5500
  clk_pin: GPIO42
  mosi_pin: GPIO43
  miso_pin: GPIO44
  cs_pin: GPIO41
  interrupt_pin: GPIO2
  reset_pin: GPIO1

  manual_ip:
    static_ip: 192.168.0.6
    gateway: 192.168.0.1
    subnet: 255.255.255.0
    dns1: 8.8.8.8
    dns2: 8.8.4.4


  # Enable fallback hotspot (captive portal) in case wifi connection fails
#  ap:
#    ssid: "Ag8-GR Hotspot"
#    password: "Ll2223243"

#captive_portal:


web_server:
  port: 80

remote_receiver:
  pin: 48
  #rmt_channel: 4 
  dump: all 


remote_transmitter:
  - id: ir1
    pin: GPIO9
    carrier_duty_percent: 50%
  - id: ir2
    pin: GPIO10
    carrier_duty_percent: 50%
  - id: ir3
    pin: GPIO11
    carrier_duty_percent: 50%
  - id: ir4
    pin: GPIO12
    carrier_duty_percent: 50%
   


#    carrier_duty_percent: 50%




climate:
  # غرفة المجلس (مكيف 1)
  - platform: gree
    id: ac_majles_1
    name: "AC ـ Majles 1"
    model: yac1fb9
    transmitter_id: ir1

  # غرفة المجلس (مكيف 2)
  - platform: gree
    id: ac_majles_2
    name: "AC ـ Majles 2"
    model: yac1fb9
    transmitter_id: ir2

  # غرفة الطعام
  - platform: gree
    id: ac_dining
    name: "AC _ Dining"
    model: yac1fb9
    transmitter_id: ir3

  # المطبخ
  - platform: gree
    id: ac_kitchen
    name: "AC ـ Kitchen"
    model: yac1fb9
    transmitter_id: ir4
Reply
#6
thanks share your result.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)