A24 configure yaml for ESPhome - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KinCony A24 (https://www.kincony.com/forum/forumdisplay.php?fid=56) +--- Thread: A24 configure yaml for ESPhome (/showthread.php?tid=3922) Pages:
1
2
|
A24 configure yaml for ESPhome - admin - 12-18-2023 esphome: name: a24 platform: ESP32 board: esp32dev # Enable logging logger: # Enable Home Assistant API api: # Example configuration entry i2c: - id: bus_a sda: 16 scl: 5 scan: true frequency: 400kHz # Example configuration entry ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO17_OUT phy_addr: 0 # Example configuration entry pcf8574: - id: 'pcf8574_hub_out_1' # for output channel 1-12 CS1-CS3 i2c_id: bus_a address: 0x21 pcf8575: true - id: 'pcf8574_hub_out_2' # for output channel 13-24 i2c_id: bus_a address: 0x22 pcf8575: true - id: 'pcf8574_hub_in_1' # for input channel 1-16 i2c_id: bus_a address: 0x24 pcf8575: true - id: 'pcf8574_hub_in_2' # for a24--input channel 17-32 i2c_id: bus_a address: 0x25 pcf8575: true # Individual outputs switch: - platform: gpio name: "a24--light1" pin: pcf8574: pcf8574_hub_out_1 number: 0 mode: OUTPUT inverted: true - platform: gpio name: "a24--light2" pin: pcf8574: pcf8574_hub_out_1 number: 1 mode: OUTPUT inverted: true - platform: gpio name: "a24--light3" pin: pcf8574: pcf8574_hub_out_1 number: 2 mode: OUTPUT inverted: true - platform: gpio name: "a24--light4" pin: pcf8574: pcf8574_hub_out_1 number: 3 mode: OUTPUT inverted: true - platform: gpio name: "a24--light5" pin: pcf8574: pcf8574_hub_out_1 number: 4 mode: OUTPUT inverted: true - platform: gpio name: "a24--light6" pin: pcf8574: pcf8574_hub_out_1 number: 5 mode: OUTPUT inverted: true - platform: gpio name: "a24--light7" pin: pcf8574: pcf8574_hub_out_1 number: 6 mode: OUTPUT inverted: true - platform: gpio name: "a24--light8" pin: pcf8574: pcf8574_hub_out_1 number: 7 mode: OUTPUT inverted: true - platform: gpio name: "a24--light9" pin: pcf8574: pcf8574_hub_out_1 number: 8 mode: OUTPUT inverted: true - platform: gpio name: "a24--light10" pin: pcf8574: pcf8574_hub_out_1 number: 9 mode: OUTPUT inverted: true - platform: gpio name: "a24--light11" pin: pcf8574: pcf8574_hub_out_1 number: 10 mode: OUTPUT inverted: true - platform: gpio name: "a24--light12" pin: pcf8574: pcf8574_hub_out_1 number: 11 mode: OUTPUT inverted: true - platform: gpio name: "a24--light13" pin: pcf8574: pcf8574_hub_out_2 number: 0 mode: OUTPUT inverted: true - platform: gpio name: "a24--light14" pin: pcf8574: pcf8574_hub_out_2 number: 1 mode: OUTPUT inverted: true - platform: gpio name: "a24--light15" pin: pcf8574: pcf8574_hub_out_2 number: 2 mode: OUTPUT inverted: true - platform: gpio name: "a24--light16" pin: pcf8574: pcf8574_hub_out_2 number: 3 mode: OUTPUT inverted: true - platform: gpio name: "a24--light17" pin: pcf8574: pcf8574_hub_out_2 number: 4 mode: OUTPUT inverted: true - platform: gpio name: "a24--light18" pin: pcf8574: pcf8574_hub_out_2 number: 5 mode: OUTPUT inverted: true - platform: gpio name: "a24--light19" pin: pcf8574: pcf8574_hub_out_2 number: 6 mode: OUTPUT inverted: true - platform: gpio name: "a24--light20" pin: pcf8574: pcf8574_hub_out_2 number: 7 mode: OUTPUT inverted: true - platform: gpio name: "a24--light21" pin: pcf8574: pcf8574_hub_out_2 number: 8 mode: OUTPUT inverted: true - platform: gpio name: "a24--light22" pin: pcf8574: pcf8574_hub_out_2 number: 9 mode: OUTPUT inverted: true - platform: gpio name: "a24--light23" pin: pcf8574: pcf8574_hub_out_2 number: 10 mode: OUTPUT inverted: true - platform: gpio name: "a24--light24" pin: pcf8574: pcf8574_hub_out_2 number: 11 mode: OUTPUT inverted: true # Individual inputs binary_sensor: - platform: gpio name: "a24--input1" pin: pcf8574: pcf8574_hub_in_1 number: 0 mode: INPUT inverted: true - platform: gpio name: "a24--input2" pin: pcf8574: pcf8574_hub_in_1 number: 1 mode: INPUT inverted: true - platform: gpio name: "a24--input3" pin: pcf8574: pcf8574_hub_in_1 number: 2 mode: INPUT inverted: true - platform: gpio name: "a24--input4" pin: pcf8574: pcf8574_hub_in_1 number: 3 mode: INPUT inverted: true - platform: gpio name: "a24--input5" pin: pcf8574: pcf8574_hub_in_1 number: 4 mode: INPUT inverted: true - platform: gpio name: "a24--input6" pin: pcf8574: pcf8574_hub_in_1 number: 5 mode: INPUT inverted: true - platform: gpio name: "a24--input7" pin: pcf8574: pcf8574_hub_in_1 number: 6 mode: INPUT inverted: true - platform: gpio name: "a24--input8" pin: pcf8574: pcf8574_hub_in_1 number: 7 mode: INPUT inverted: true - platform: gpio name: "a24--input9" pin: pcf8574: pcf8574_hub_in_1 number: 8 mode: INPUT inverted: true - platform: gpio name: "a24--input10" pin: pcf8574: pcf8574_hub_in_1 number: 9 mode: INPUT inverted: true - platform: gpio name: "a24--input11" pin: pcf8574: pcf8574_hub_in_1 number: 10 mode: INPUT inverted: true - platform: gpio name: "a24--input12" pin: pcf8574: pcf8574_hub_in_1 number: 11 mode: INPUT inverted: true - platform: gpio name: "a24--input13" pin: pcf8574: pcf8574_hub_in_1 number: 12 mode: INPUT inverted: true - platform: gpio name: "a24--input14" pin: pcf8574: pcf8574_hub_in_1 number: 13 mode: INPUT inverted: true - platform: gpio name: "a24--input15" pin: pcf8574: pcf8574_hub_in_1 number: 14 mode: INPUT inverted: true - platform: gpio name: "a24--input16" pin: pcf8574: pcf8574_hub_in_1 number: 15 mode: INPUT inverted: true - platform: gpio name: "a24--input17" pin: pcf8574: pcf8574_hub_in_2 number: 0 mode: INPUT inverted: true - platform: gpio name: "a24--input18" pin: pcf8574: pcf8574_hub_in_2 number: 1 mode: INPUT inverted: true - platform: gpio name: "a24--input19" pin: pcf8574: pcf8574_hub_in_2 number: 2 mode: INPUT inverted: true - platform: gpio name: "a24--input20" pin: pcf8574: pcf8574_hub_in_2 number: 3 mode: INPUT inverted: true - platform: gpio name: "a24--input21" pin: pcf8574: pcf8574_hub_in_2 number: 4 mode: INPUT inverted: true - platform: gpio name: "a24--input22" pin: pcf8574: pcf8574_hub_in_2 number: 5 mode: INPUT inverted: true - platform: gpio name: "a24--input23" pin: pcf8574: pcf8574_hub_in_2 number: 6 mode: INPUT inverted: true - platform: gpio name: "a24--input24" pin: pcf8574: pcf8574_hub_in_2 number: 7 mode: INPUT inverted: true sensor: - platform: adc pin: 35 name: "A24 A1 Voltage" update_interval: 10s attenuation: 11db filters: - lambda: if (x >= 3.11) { return x * 1.60256; } else if (x <= 0.15) { return 0; } else { return x * 1.51; } - platform: adc pin: 34 name: "A24 A2 Voltage" update_interval: 10s attenuation: 11db filters: # - multiply: 1.51515 - lambda: if (x >= 3.11) { return x * 1.60256; } else if (x <= 0.15) { return 0; } else { return x * 1.51; } - platform: adc pin: 39 name: "A24 A3 Current" update_interval: 10s unit_of_measurement: mA attenuation: 11db filters: - multiply: 6.66666666 - platform: adc pin: 36 name: "A24 A4 Current" update_interval: 10s unit_of_measurement: mA attenuation: 11db filters: - multiply: 6.66666666 - platform: max31855 name: "K-Type Thermocouple-1" cs_pin: pcf8574: pcf8574_hub_out_1 number: 13 mode: OUTPUT inverted: false update_interval: 5s - platform: max31855 name: "K-Type Thermocouple-2" cs_pin: pcf8574: pcf8574_hub_out_1 number: 14 mode: OUTPUT inverted: false update_interval: 5s - platform: max31855 name: "K-Type Thermocouple-3" cs_pin: pcf8574: pcf8574_hub_out_1 number: 15 mode: OUTPUT inverted: false update_interval: 5s spi: - id: spi_bus0 clk_pin: 14 miso_pin: 12 gp8403: id: my_gp8403 voltage: 10V output: - platform: gp8403 id: gp8403_output_1 gp8403_id: my_gp8403 channel: 0 - platform: gp8403 id: gp8403_output_2 gp8403_id: my_gp8403 channel: 1 light: - platform: monochromatic name: "A24-DAC-1" output: gp8403_output_1 - platform: monochromatic name: "A24-DAC-2" output: gp8403_output_2 A24-ESPHome.txt (Size: 10.11 KB / Downloads: 163) RE: A24 configure yaml for ESPhome - Yocee - 01-10-2024 Hi! Please post working esphome config, for modbus communication. I has multiple devices ( ESP32 with ttl converter automatic flow controll, Lillygo can with flow pin controll, Elfin ew11 modbus gateway), and the communication beetween heatpump and Home assistant is working, but with KC868-24 is not. I use this config: https://pastebin.com/K71z8P50 RE: A24 configure yaml for ESPhome - admin - 01-10-2024 do you want A24 work as modbus "SLAVE" or "MASTER"? RE: A24 configure yaml for ESPhome - Yocee - 01-10-2024 (01-10-2024, 09:42 AM)Yocee Wrote: Hi! I think, i need SLAVE. I want to read and write heatpumps, fancoils, thermostat registers. RE: A24 configure yaml for ESPhome - admin - 01-10-2024 if you want A24 work as "SLAVE", you can download KCS firmware, enable RS485 protocol, then it will work as modbus slave. RE: A24 configure yaml for ESPhome - Yocee - 01-11-2024 (01-10-2024, 11:57 PM)admin Wrote: if you want A24 work as "SLAVE", you can download KCS firmware, enable RS485 protocol, then it will work as modbus slave. Ok, i understand the names. I need MASTER configuration for esphome. RE: A24 configure yaml for ESPhome - admin - 01-11-2024 here is video tour about esphome use by MASTER modbus controller: https://youtu.be/xmBWzVGpggo RE: A24 configure yaml for ESPhome - Yocee - 01-11-2024 Thanks. But that's not what I asked for. I need a configuration file for exactly this panel. It wasn't cheap and so I can't use it. In the linked video using 13/16 gpio. RE: A24 configure yaml for ESPhome - admin - 01-12-2024 draw a paper, what you want A24 to do and your different devices relationship with A24. RE: A24 configure yaml for ESPhome - Yocee - 01-12-2024 (01-12-2024, 12:23 AM)admin Wrote: draw a paper, what you want A24 to do and your different devices relationship with A24. I am attaching the requested drawing. Please read older post. Please onen links. It's not a complicated task. I was able to solve it with several tools, as I already wrote. Now I want to solve it with the A24 panel. The task is already done at home with: https://esphome.io/components/modbus_controller.html (auto flow kontroll) And with this: https://github.com/Xinyuan-LilyGO/T-CAN485 (flow kontroll pin define is requied) And with this: http://www.hi-flying.com/elfin-ew10-elfin-ew11 And with this: https://github.com/Mosibi/Midea-heat-pump-ESPHome But I want to solve it with A24. Here is my not working esphome config.: https://pastebin.com/K71z8P50 |