03-15-2023, 08:01 PM
(03-15-2023, 11:44 AM)admin Wrote: if you want directly to use, without any config and setting. you can chose KC102, that use by Tuya app.
here is video tour: https://youtu.be/G-o2piyGoiU
if you want, we can send you this KC102. play with it.
Thanks for the offer but KC102 does not have RF and I need RF. I already have one of these: LINK but every button of my devices appears in home assistant as a scene, plus it is reliant on the web to operate and I would prefer something within my own network.
With regard to the KC868-AG are you being overly polite and maybe i just need to be told that this device is really for advanced users who understand coding of hardware like this? I guess if it was easy to get working you would have provided a YAML conifg and maybe some instructions to get it working....but it seems like you think this is too much of an undertaking for someone like me who is familiar with coding, but by no means an expert in esphome conifguration.
I did have another go - but dont seem to have the rc_switch library installed and have no idea how to get it installed.
Code:
esphome:
name: esp-remote-ir-rf-remote
friendly_name: "ESP Remote IR / RF Remote"
libraries:
- name: rc-switch
version: "2.0.0"
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "Xx"
ota:
password: "xx"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "esp_remote_ir_rf_remote"
password: !secret wifi_password
# Configure the IR receiver
remote_receiver:
pin:
number: GPIO23
inverted: True
dump: all
tolerance: 50%
filter: 250us
idle: 4ms
# Configure the IR sender
remote_transmitter:
pin:
number: GPIO2
inverted: True
carrier_duty_percent: 50%
# Configure the 433MHz receiver
rc_switch:
pin:
number: GPIO13
inverted: True
protocol: 1
pulselength: 350
tolerance: 50%
filter: 250us
idle: 4ms
# Configure the 433MHz sender
rc_switch_transmitter:
pin:
number: GPIO22
inverted: True
protocol: 1
pulselength: 350
# Configure the buzzer
output:
- platform: gpio
pin:
number: GPIO4
inverted: True
id: buzzer