10-23-2023, 04:23 AM
I'm trying to setup my KC868-AG but can't learn the codes
Here's my ESPHome yaml file
```
esphome:
name: kc868-a4
friendly_name: "RF 433MHz Gateway"
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
captive_portal:
web_server:
port: 80
remote_receiver:
pin: 19
dump: all
tolerance: 50%
filter: 250us
idle: 4ms
buffer_size: 2kb
remote_transmitter:
pin: 21
# RF uses a 100% carrier signal
carrier_duty_percent: 100%
switch:
- platform: template
name: RF Power Button
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '0101011111111101000000111'
protocol: 1
repeat:
times: 2
wait_time: 20ms
turn_off_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '0101011111111101000000111'
protocol: 1
repeat:
times: 2
wait_time: 20ms
```
Here's the log file
```
INFO ESPHome 2023.10.1
INFO Reading configuration /config/esphome/kc868-ag.yaml...
INFO Starting log output from kc868-a4.local using esphome API
INFO Successfully connected to kc868-a4.local
[14:59:18][I][app:102]: ESPHome version 2023.10.1 compiled on Oct 23 2023, 14:37:50
[14:59:18][C][wifi:546]: WiFi:
[14:59:18][C][wifi:382]: Local MAC: B86:1A:5A:AD:10
[14:59:18][C][wifi:383]: SSID: [redacted]
[14:59:18][C][wifi:384]: IP Address: 192.168.2.243
[14:59:18][C][wifi:386]: BSSID: [redacted]
[14:59:18][C][wifi:387]: Hostname: 'kc868-a4'
[14:59:18][C][wifi:389]: Signal strength: -63 dB ▂▄▆█
[14:59:18][C][wifi:393]: Channel: 11
[14:59:18][C][wifi:394]: Subnet: 255.255.255.0
[14:59:18][C][wifi:395]: Gateway: 192.168.2.1
[14:59:18][C][wifi:396]: DNS1: 192.168.2.1
[14:59:18][C][wifi:397]: DNS2: 0.0.0.0
[14:59:18][C][logger:361]: Logger:
[14:59:18][C][logger:362]: Level: DEBUG
[14:59:18][C][logger:363]: Log Baud Rate: 115200
[14:59:18][C][logger:365]: Hardware UART: UART0
[14:59:18][C][remote_transmitter:015]: Remote Transmitter...
[14:59:18][C][remote_transmitter:016]: Channel: 3
[14:59:18][C][remote_transmitter:017]: RMT memory blocks: 1
[14:59:18][C][remote_transmitter:018]: Clock divider: 80
[14:59:18][C][remote_transmitter:019]: Pin: GPIO21
[14:59:18][C][remote_receiver.esp32:054]: Remote Receiver:
[14:59:18][C][remote_receiver.esp32:055]: Pin: GPIO19
[14:59:18][C][remote_receiver.esp32:060]: Channel: 0
[14:59:18][C][remote_receiver.esp32:061]: RMT memory blocks: 3
[14:59:18][C][remote_receiver.esp32:062]: Clock divider: 80
[14:59:18][C][remote_receiver.esp32:063]: Tolerance: 50%
[14:59:18][C][remote_receiver.esp32:064]: Filter out pulses shorter than: 250 us
[14:59:18][C][remote_receiver.esp32:065]: Signal is done after 4000 us of no changes
[14:59:18][C][captive_portal:088]: Captive Portal:
[14:59:18][C][web_server:161]: Web Server:
[14:59:18][C][web_server:162]: Address: kc868-a4.local:80
[14:59:18][C][mdns:115]: mDNS:
[14:59:18][C][mdns:116]: Hostname: kc868-a4
[14:59:18][C][api:138]: API Server:
[14:59:18][C][api:139]: Address: kc868-a4.local:6053
[14:59:18][C][api:143]: Using noise encryption: NO
```
No log messages when pressing any button on the remote.
I have 2 remotes:
DD2702H | https://rollerhouses.com/products/dd2702...ooya-motor
MT02-0101-067008 | https://www.homeautomationandtubularmoto...101-050008
Looks like I'm missing something. One thing I noticed is the YT video shows a Home Assistant connected message I don't get.... Not sure what's this connection for.
Any idea why this is not working?
Here's my ESPHome yaml file
```
esphome:
name: kc868-a4
friendly_name: "RF 433MHz Gateway"
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
captive_portal:
web_server:
port: 80
remote_receiver:
pin: 19
dump: all
tolerance: 50%
filter: 250us
idle: 4ms
buffer_size: 2kb
remote_transmitter:
pin: 21
# RF uses a 100% carrier signal
carrier_duty_percent: 100%
switch:
- platform: template
name: RF Power Button
turn_on_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '0101011111111101000000111'
protocol: 1
repeat:
times: 2
wait_time: 20ms
turn_off_action:
- remote_transmitter.transmit_rc_switch_raw:
code: '0101011111111101000000111'
protocol: 1
repeat:
times: 2
wait_time: 20ms
```
Here's the log file
```
INFO ESPHome 2023.10.1
INFO Reading configuration /config/esphome/kc868-ag.yaml...
INFO Starting log output from kc868-a4.local using esphome API
INFO Successfully connected to kc868-a4.local
[14:59:18][I][app:102]: ESPHome version 2023.10.1 compiled on Oct 23 2023, 14:37:50
[14:59:18][C][wifi:546]: WiFi:
[14:59:18][C][wifi:382]: Local MAC: B86:1A:5A:AD:10
[14:59:18][C][wifi:383]: SSID: [redacted]
[14:59:18][C][wifi:384]: IP Address: 192.168.2.243
[14:59:18][C][wifi:386]: BSSID: [redacted]
[14:59:18][C][wifi:387]: Hostname: 'kc868-a4'
[14:59:18][C][wifi:389]: Signal strength: -63 dB ▂▄▆█
[14:59:18][C][wifi:393]: Channel: 11
[14:59:18][C][wifi:394]: Subnet: 255.255.255.0
[14:59:18][C][wifi:395]: Gateway: 192.168.2.1
[14:59:18][C][wifi:396]: DNS1: 192.168.2.1
[14:59:18][C][wifi:397]: DNS2: 0.0.0.0
[14:59:18][C][logger:361]: Logger:
[14:59:18][C][logger:362]: Level: DEBUG
[14:59:18][C][logger:363]: Log Baud Rate: 115200
[14:59:18][C][logger:365]: Hardware UART: UART0
[14:59:18][C][remote_transmitter:015]: Remote Transmitter...
[14:59:18][C][remote_transmitter:016]: Channel: 3
[14:59:18][C][remote_transmitter:017]: RMT memory blocks: 1
[14:59:18][C][remote_transmitter:018]: Clock divider: 80
[14:59:18][C][remote_transmitter:019]: Pin: GPIO21
[14:59:18][C][remote_receiver.esp32:054]: Remote Receiver:
[14:59:18][C][remote_receiver.esp32:055]: Pin: GPIO19
[14:59:18][C][remote_receiver.esp32:060]: Channel: 0
[14:59:18][C][remote_receiver.esp32:061]: RMT memory blocks: 3
[14:59:18][C][remote_receiver.esp32:062]: Clock divider: 80
[14:59:18][C][remote_receiver.esp32:063]: Tolerance: 50%
[14:59:18][C][remote_receiver.esp32:064]: Filter out pulses shorter than: 250 us
[14:59:18][C][remote_receiver.esp32:065]: Signal is done after 4000 us of no changes
[14:59:18][C][captive_portal:088]: Captive Portal:
[14:59:18][C][web_server:161]: Web Server:
[14:59:18][C][web_server:162]: Address: kc868-a4.local:80
[14:59:18][C][mdns:115]: mDNS:
[14:59:18][C][mdns:116]: Hostname: kc868-a4
[14:59:18][C][api:138]: API Server:
[14:59:18][C][api:139]: Address: kc868-a4.local:6053
[14:59:18][C][api:143]: Using noise encryption: NO
```
No log messages when pressing any button on the remote.
I have 2 remotes:
DD2702H | https://rollerhouses.com/products/dd2702...ooya-motor
MT02-0101-067008 | https://www.homeautomationandtubularmoto...101-050008
Looks like I'm missing something. One thing I noticed is the YT video shows a Home Assistant connected message I don't get.... Not sure what's this connection for.
Any idea why this is not working?