03-16-2023, 12:09 AM
1. i think you not need to use "buzzer", you can remove these code.
2. now you have define gpio for IR and RF. if you want to make buttons on home assistant for these function. you need to create:
a. such as if you want to control your air conditioner by IR, you can use esphome "IR Remote Climate"
such as these code:
# Example configuration entry
remote_transmitter:
pin: GPIO32
carrier_duty_percent: 50%
climate:
- platform: coolix # adjust to match your AC unit!
name: "Living Room AC"
here is details with eshpome: https://esphome.io/components/climate/climate_ir.html
here is video tour: https://www.kincony.com/forum/showthread.php?tid=1827 the config way as same as KC868-AG
b. such as you want to create a RF button to remote control your RF device.
you need see your esphome log output check your remote button's "key code", then use this "key code" make an action, such as when remote button-A is pressed then what action need to do. i don't know whether you want to receive a RF signal or need send your customsize RF code.
esphome is for DIYer, so need config, not directly to use. this i want tell you. you can think whether is suitable for you to use.
2. now you have define gpio for IR and RF. if you want to make buttons on home assistant for these function. you need to create:
a. such as if you want to control your air conditioner by IR, you can use esphome "IR Remote Climate"
such as these code:
# Example configuration entry
remote_transmitter:
pin: GPIO32
carrier_duty_percent: 50%
climate:
- platform: coolix # adjust to match your AC unit!
name: "Living Room AC"
here is details with eshpome: https://esphome.io/components/climate/climate_ir.html
here is video tour: https://www.kincony.com/forum/showthread.php?tid=1827 the config way as same as KC868-AG
b. such as you want to create a RF button to remote control your RF device.
you need see your esphome log output check your remote button's "key code", then use this "key code" make an action, such as when remote button-A is pressed then what action need to do. i don't know whether you want to receive a RF signal or need send your customsize RF code.
esphome is for DIYer, so need config, not directly to use. this i want tell you. you can think whether is suitable for you to use.