Snobs76
(Snobs76)
March 6, 2023, 10:50am
1
Hello,
I have some trouble to get IR signals to copy.
The remote control show me the following results for the canvas:
Received Pronto: data=0000 006D 0019 0000 0010 0034 0032 0012 0010 0034 0032 0012 0010 0034 0032 0012 0010 0034 0032 0012 0010 0034 0032 0012 0010 0034 0032 0012 0010 0034 0032 0012 0010 0034 0032 0012 0010 0034 0010 0034 0010 0034 0010 0034 0010 0034
[11:06:25][D][remote.pronto:240]: 0010 0034 0033 0012 0010 0034 0010 06C3
[11:06:25][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=4 data='010101010101010100000010'
Received Pronto: data=0000 006D 0019 0000 0010 0034 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0034 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0035 0010 0034 0010 0034 0010 0035 0032 0012
[11:07:08][D][remote.pronto:240]: 0010 0035 0010 0035 0010 0034 0010 06C3
[11:07:08][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=4 data='010101010101010100001000'
[11:07:23][D][remote.pronto:238]: Received Pronto: data=0000 006D 0019 0000 0010 0034 0033 0012 0010 0034 0032 0012 0010 0034 0032 0012 0010 0034 0032 0012 0010 0035 0032 0012 0010 0034 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0034 0010 0034 0010 0034 0010 0034 0010 0035
[11:07:23][D][remote.pronto:240]: 0032 0012 0010 0034 0010 0035 0010 06C3
[11:07:23][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=4 data='010101010101010100000100'
But however I write it down into my yml the canvas will not do something. I tried some different codes, no success. Maby can help someone ?
Here a one of my tries:
remote_transmitter:
pin: GPIO04
carrier_duty_percent: 50%
button:
- platform: template
name: hoch
id: lw_up
on_press:
- remote_transmitter.transmit_rc_switch_raw:
code: '010101010101010100000010'
protocol: 4
- remote_transmitter.transmit_pronto:
data: "0000 006D 0019 0000 0012 0032 0035 0010 0012 0032 0035 0010 0012 0032 0034 0011 0011 0034 0033 0011 0011 0033 0034 0011 0011 0034 0033 0011 0011 0033 0033 0011 0011 0033 0033 0011 0011 0033 0011 0033 0011 0033 0011 0033 0011 0033 0011 0034 0033 0011 0011 0033 0011 06C3"
- platform: template
name: stop
id: lw_stop
on_press:
- remote_transmitter.transmit_rc_switch_raw:
code: '010101010101010100001000'
protocol: 4
- remote_transmitter.transmit_pronto:
data: "0000 006D 0019 0000 0010 0034 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0034 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0035 0010 0034 0010 0034 0010 0035 0032 0012 0010 0035 0010 0035 0010 0034 0010 06C3"
- platform: template
name: runter
id: lw_down
on_press:
- remote_transmitter.transmit_rc_switch_raw:
code: '010101010101010100000100'
protocol: 4
- remote_transmitter.transmit_pronto:
data: "0000 006D 0019 0000 0010 0034 0033 0012 0010 0034 0032 0012 0010 0034 0032 0012 0010 0034 0032 0012 0010 0035 0032 0012 0010 0034 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0034 0010 0034 0010 0034 0010 0034 0010 0035 0032 0012 0010 0034 0010 0035 0010 06C3"
vincen
(Vincèn)
March 7, 2023, 7:44am
2
You must transmit only one of the codes not both !! I would try first with the RCSwitch raw What hardware are you using for IR ? Also what device do you try to control by IR ?
Snobs76
(Snobs76)
March 7, 2023, 1:04pm
3
Hi vincen,
thank you for your answer. I try this IR Transreiver from aliexpress. And the following code. I tested the IR LED and saw it light up / blinking via smartphone camera if I press the button at HA.
esphome:
name: ir-transmitter
friendly_name: Leinwand
esp8266:
board: esp8285
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "mykey"
ota:
password: "mypass"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Ir-Transmitter Fallback Hotspot"
password: "anotherpass"
captive_portal:
remote_receiver:
pin:
number: GPIO14
inverted: true
dump: all
remote_transmitter:
pin: GPIO04
carrier_duty_percent: 50%
button:
- platform: template
name: hoch
id: lw_up
on_press:
- remote_transmitter.transmit_rc_switch_raw:
code: '010101010101010100000010'
protocol: 4
#- remote_transmitter.transmit_pronto:
# data: "0000 006D 0019 0000 0012 0032 0035 0010 0012 0032 0035 0010 0012 0032 0034 0011 0011 0034 0033 0011 0011 0033 0034 0011 0011 0034 0033 0011 0011 0033 0033 0011 0011 0033 0033 0011 0011 0033 0011 0033 0011 0033 0011 0033 0011 0033 0011 0034 0033 0011 0011 0033 0011 06C3"
- platform: template
name: stop
id: lw_stop
on_press:
- remote_transmitter.transmit_rc_switch_raw:
code: '010101010101010100001000'
protocol: 4
#- remote_transmitter.transmit_pronto:
# data: "0000 006D 0019 0000 0010 0034 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0034 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0035 0010 0034 0010 0034 0010 0035 0032 0012 0010 0035 0010 0035 0010 0034 0010 06C3"
- platform: template
name: runter
id: lw_down
on_press:
- remote_transmitter.transmit_rc_switch_raw:
code: '010101010101010100000100'
protocol: 4
#- remote_transmitter.transmit_pronto:
# data: "0000 006D 0019 0000 0010 0034 0033 0012 0010 0034 0032 0012 0010 0034 0032 0012 0010 0034 0032 0012 0010 0035 0032 0012 0010 0034 0032 0012 0010 0035 0032 0012 0010 0035 0032 0012 0010 0034 0010 0034 0010 0034 0010 0034 0010 0035 0032 0012 0010 0034 0010 0035 0010 06C3"
Snobs76
(Snobs76)
March 31, 2023, 2:17pm
4
I`m still trying this thing to get work.
Here is log from the orginal remote controller with an esp-home receiver. But If I send this code in any kind of format, nithing happen. Somebody has any idea ?
[16:05:47][C][wifi:504]: WiFi:
[16:05:47][C][wifi:362]: Local MAC:
[16:05:47][C][wifi:363]: SSID: ''[redacted]
[16:05:47][C][wifi:364]: IP Address: 192.168.100.160
[16:05:47][C][wifi:365]: BSSID:
[16:05:47][C][wifi:367]: Hostname: 'ir-receiver'
[16:05:47][C][wifi:369]: Signal strength: -66 dB ▂▄▆█
[16:05:47][C][wifi:373]: Channel: 1
[16:05:47][C][wifi:374]: Subnet: 255.255.255.0
[16:05:47][C][wifi:375]: Gateway: 192.168.0.1
[16:05:47][C][wifi:376]: DNS1: 192.168.0.1
[16:05:47][C][wifi:377]: DNS2: 0.0.0.0
[16:05:47][C][logger:293]: Logger:
[16:05:47][C][logger:294]: Level: DEBUG
[16:05:47][C][logger:295]: Log Baud Rate: 115200
[16:05:47][C][logger:296]: Hardware UART: UART0
[16:05:47][C][remote_transmitter:018]: Remote Transmitter...
[16:05:47][C][remote_transmitter:019]: Carrier Duty: 50%
[16:05:47][C][remote_transmitter:020]: Pin: GPIO0
[16:05:47][C][remote_receiver.esp8266:060]: Remote Receiver:
[16:05:47][C][remote_receiver.esp8266:061]: Pin: GPIO13
[16:05:47][C][remote_receiver.esp8266:066]: Buffer Size: 2000
[16:05:47][C][remote_receiver.esp8266:067]: Tolerance: 50%
[16:05:47][C][remote_receiver.esp8266:068]: Filter out pulses shorter than: 250 us
[16:05:47][C][remote_receiver.esp8266:069]: Signal is done after 4000 us of no changes
[16:05:47][C][captive_portal:088]: Captive Portal:
[16:05:47][C][mdns:108]: mDNS:
[16:05:47][C][mdns:109]: Hostname: ir-receiver
[16:05:47][C][ota:093]: Over-The-Air Updates:
[16:05:47][C][ota:094]: Address: ir-receiver.home.lan:8266
[16:05:47][C][ota:097]: Using Password.
[16:05:47][C][api:138]: API Server:
[16:05:47][C][api:139]: Address: ir-receiver.home.lan:6053
[16:05:47][C][api:143]: Using noise encryption: NO
[16:06:03][D][remote.pronto:238]: Received Pronto: data=0000 006D 0019 0000 0012 0033 0034 0010 0012 0033 0034 0011 0012 0033 0034 0011 0012 0033 0034 0011 0012 0033 0034 0011 0011 0033 0034 0011 0012 0033 0034 0011 0012 0033 0034 0011 0012 0033 0012 0033 0012 0033 0012 0033 0012 0033
[16:06:03][D][remote.pronto:240]: 0034 0011 0012 0033 0012 0033 0012 06C3
[16:06:03][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='010101010101010100000100'
[16:06:03][D][remote.pronto:238]: Received Pronto: data=0000 006D 0019 0000 0013 0033 0034 0011 0012 0033 0034 0011 0012 0033 0034 0011 0012 0033 0034 0011 0012 0033 0034 0011 0012 0033 0034 0010 0012 0033 0034 0011 0012 0033 0034 0011 0012 0033 0012 0033 0012 0033 0012 0033 0012 0033
[16:06:03][D][remote.pronto:240]: 0034 0011 0012 0033 0012 0033 0012 06C3
[16:06:03][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='010101010101010100000100'
[16:08:32][D][remote.pronto:238]: Received Pronto: data=0000 006D 0019 0000 0013 0033 0034 0011 0012 0033 0034 0011 0012 0033 0034 0011 0012 0033 0034 0011 0012 0033 0034 0011 0012 0033 0034 0011 0012 0033 0034 0011 0012 0033 0034 0011 0012 0033 0012 0033 0012 0033 0012 0033 0012 0033
[16:08:32][D][remote.pronto:240]: 0034 0011 0012 0033 0012 0033 0012 06C3
[16:08:32][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='010101010101010100000100'
[16:09:18][D][remote.pronto:238]: Received Pronto: data=0000 006D 0019 0000 0013 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0012 0033 0012 0033 0012 0033 0012 0033
[16:09:18][D][remote.pronto:240]: 0012 0033 0034 0010 0012 0033 0012 06C3
[16:09:18][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='010101010101010100000010'
[16:09:18][D][remote.pronto:238]: Received Pronto: data=0000 006D 0019 0000 0013 0033 0034 0010 0012 0033 0034 0010 0011 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0012 0033 0012 0033 0012 0033 0012 0033
[16:09:18][D][remote.pronto:240]: 0012 0033 0034 0010 0012 0033 0011 06C3
[16:09:18][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='010101010101010100000010'
[16:10:27][I][ota:113]: Boot seems successful, resetting boot loop counter.
[16:11:15][D][remote.pronto:238]: Received Pronto: data=0000 006D 0019 0000 0013 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0012 0033 0012 0033 0012 0033 0034 0010
[16:11:15][D][remote.pronto:240]: 0012 0033 0012 0033 0012 0032 0012 06C3
[16:11:15][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='010101010101010100001000'
[16:11:15][D][remote.pronto:238]: Received Pronto: data=0000 006D 0019 0000 0013 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0034 0010 0012 0033 0012 0033 0012 0033 0012 0033 0034 0010
[16:11:15][D][remote.pronto:240]: 0012 0033 0012 0033 0012 0033 0012 06C3
[16:11:15][D][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='010101010101010100001000'
BR
Sascha