Hoi,
Ik probeer met IR een airco te sturen met Home Assistant. Ik heb een NodeMCU met daarop een IR reciever en IR transmitter erop staan volgens onderstaande schema. De reciever staat niet op dit schema maar werkt gewoon op D4/GND/VCC. De transistor die ik gebruik is een BC549, geen weerstand (zou niet nodig zijn omdat de LED heel kort aan staat.
Dus ik heb de signalen van de airco opgenomen en probeer die opniew "af te spelen" met de transmitter LED en dat werkt niet. De airco reageert niet, en verschillende LED's geprobeerd. Ook met meerdere camera's de LED opgenomen en ik zie geen geflikker (met betreffende camera's wel de RC van de airco, dus de camera's registreren wel degelijk IR licht).
Nu heb ik er ook een gewone LED (zo'n mini verkeerslichtje maar dan alleen de rode LED gebruikt) op aangesloten (GND - D2, zonder de transistor) en ook geen rood pinklicht. Op een ander bordje werkt dit verkeerslicht wel.
Als ik in log op de ESPHome om de logs te zien, zie ik ook dat hij van home assistant het (correcte) commando krijgt om een switch te bedienen. Alleen wederom, geen IR led die flikkert.
Iemand een idee wat ik mis kan doen hierin?
/f/image/LBbroxn0JB6P4CqZ3yFyOLne.png?f=fotoalbum_large)
ESPHome logs
Ik probeer met IR een airco te sturen met Home Assistant. Ik heb een NodeMCU met daarop een IR reciever en IR transmitter erop staan volgens onderstaande schema. De reciever staat niet op dit schema maar werkt gewoon op D4/GND/VCC. De transistor die ik gebruik is een BC549, geen weerstand (zou niet nodig zijn omdat de LED heel kort aan staat.
Dus ik heb de signalen van de airco opgenomen en probeer die opniew "af te spelen" met de transmitter LED en dat werkt niet. De airco reageert niet, en verschillende LED's geprobeerd. Ook met meerdere camera's de LED opgenomen en ik zie geen geflikker (met betreffende camera's wel de RC van de airco, dus de camera's registreren wel degelijk IR licht).
Nu heb ik er ook een gewone LED (zo'n mini verkeerslichtje maar dan alleen de rode LED gebruikt) op aangesloten (GND - D2, zonder de transistor) en ook geen rood pinklicht. Op een ander bordje werkt dit verkeerslicht wel.
Als ik in log op de ESPHome om de logs te zien, zie ik ook dat hij van home assistant het (correcte) commando krijgt om een switch te bedienen. Alleen wederom, geen IR led die flikkert.
Iemand een idee wat ik mis kan doen hierin?
/f/image/LBbroxn0JB6P4CqZ3yFyOLne.png?f=fotoalbum_large)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
| esphome:
name: aircokerstberging
esp8266:
board: nodemcu
# Enable logging
logger:
# Enable Home Assistant API
api:
password: ""
ota:
password: ""
wifi:
ssid: "blah"
password: "moreblah"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Honeywellir Fallback Hotspot"
password: "blah"
captive_portal:
mqtt:
broker: 10.10.10.3
remote_receiver:
pin:
number: D4
inverted: true
mode:
input: true
pullup: true
dump: all
remote_transmitter:
pin: D2
carrier_duty_percent: 50%
switch:
- platform: template
name: Turn on Honeywell airco
turn_on_action:
- remote_transmitter.transmit_pronto:
data: "0000 006D 006A 0000 015A 00AE 0014 0043 0013 0043 0013 0017 0013 0017 0013 0017 0013 0017 0013 0043 0013 0043 0013 0043 0013 0043 0013 0043 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0043 0013 0043 0013 0043 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0014 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0043 0013 0043 0013 0017 001"
- platform: template
name: Turn off Honeywell airco
turn_on_action:
- remote_transmitter.transmit_pronto:
data: "0000 006D 006A 0000 015A 00AE 0014 0043 0013 0043 0013 0017 0013 0017 0013 0017 0013 0017 0013 0043 0013 0043 0013 0043 0013 0043 0013 0043 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0043 0013 0043 0013 0043 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0014 0016 0013 0017 0014 0016 0014 0016 0013 0017 0013 0017 0014 0016 0013 0017 0013 0043 0013 0043 0013 0017 001"
- platform: template
name: Cool to 16 degrees fan full speed
turn_on_action:
- remote_transmitter.transmit_pronto:
data: "0000 006D 006A 0000 015A 00AE 0014 0043 0014 0042 0013 0017 0013 0017 0013 0017 0013 0017 0013 0043 0014 0042 0014 0042 0013 0043 0013 0043 0013 0017 0013 0017 0013 0017 0013 0043 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0043 0013 0043 0014 0042 0013 0017 0014 0016 0014 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0013 0043 0013 0043 0013 0017 002" |
ESPHome logs
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
| [10:31:27][I][app:102]: ESPHome version 2022.5.1 compiled on Jun 9 2022, 10:30:57 [10:31:27][C][wifi:491]: WiFi: [10:31:27][C][wifi:353]: Local MAC: [10:31:27][C][wifi:354]: SSID: '' [10:31:27][C][wifi:355]: IP Address: [10:31:27][C][wifi:356]: BSSID: [10:31:27][C][wifi:358]: Hostname: '' [10:31:27][C][wifi:360]: Signal strength: -72 dB ▂▄▆█ [10:31:27][C][wifi:364]: Channel: 5 [10:31:27][C][wifi:365]: Subnet: 255.255.255.0 [10:31:27][C][wifi:366]: Gateway: [10:31:27][C][wifi:367]: DNS1: [10:31:27][C][wifi:368]: DNS2: [10:31:27][C][logger:274]: Logger: [10:31:27][C][logger:275]: Level: DEBUG [10:31:27][C][logger:276]: Log Baud Rate: 115200 [10:31:27][C][logger:277]: Hardware UART: UART0 [10:31:27][C][template.switch:058]: Template Switch 'Turn on Honeywell airco' [10:31:27][C][template.switch:059]: Restore State: NO [10:31:27][C][template.switch:060]: Optimistic: NO [10:31:27][C][template.switch:058]: Template Switch 'Turn off Honeywell airco' [10:31:27][C][template.switch:059]: Restore State: NO [10:31:27][C][template.switch:060]: Optimistic: NO [10:31:27][C][template.switch:058]: Template Switch 'Cool to 16 degrees fan full speed' [10:31:27][C][template.switch:059]: Restore State: NO [10:31:27][C][template.switch:060]: Optimistic: NO [10:31:27][C][remote_transmitter:018]: Remote Transmitter... [10:31:27][C][remote_transmitter:019]: Carrier Duty: 50% [10:31:27][C][remote_transmitter:020]: Pin: GPIO4 [10:31:27][C][remote_receiver.esp8266:060]: Remote Receiver: [10:31:27][C][remote_receiver.esp8266:061]: Pin: GPIO2 [10:31:27][C][remote_receiver.esp8266:066]: Buffer Size: 1000 [10:31:27][C][remote_receiver.esp8266:067]: Tolerance: 25% [10:31:27][C][remote_receiver.esp8266:068]: Filter out pulses shorter than: 50 us [10:31:27][C][remote_receiver.esp8266:069]: Signal is done after 10000 us of no changes [10:31:27][C][captive_portal:088]: Captive Portal: [10:31:27][C][mdns:084]: mDNS: [10:31:27][C][mdns:085]: Hostname: aircokerstberging [10:31:27][C][ota:085]: Over-The-Air Updates: [10:31:27][C][ota:086]: Address: aircokerstberging.local:8266 [10:31:27][C][api:138]: API Server: [10:31:27][C][api:139]: Address: aircokerstberging.local:6053 [10:31:27][C][api:143]: Using noise encryption: NO [10:31:27][C][mqtt:065]: MQTT: [10:31:28][C][mqtt:066]: Server Address: [10:31:28][C][mqtt:068]: Username: '' [10:31:28][C][mqtt:069]: Client ID: 'aircokerstberging' [10:31:28][C][mqtt:071]: Discovery prefix: 'homeassistant' [10:31:28][C][mqtt:072]: Discovery retain: YES [10:31:28][C][mqtt:074]: Topic Prefix: 'aircokerstberging' [10:31:28][C][mqtt:076]: Log Topic: 'aircokerstberging/debug' [10:31:28][C][mqtt:079]: Availability: 'aircokerstberging/status' [10:31:28][C][mqtt.switch:041]: MQTT Switch 'Turn on Honeywell airco': [10:31:28][C][mqtt.switch:042]: State Topic: 'aircokerstberging/switch/turn_on_honeywell_airco/state' [10:31:28][C][mqtt.switch:042]: Command Topic: 'aircokerstberging/switch/turn_on_honeywell_airco/command' [10:31:28][C][mqtt.switch:041]: MQTT Switch 'Turn off Honeywell airco': [10:31:28][C][mqtt.switch:042]: State Topic: 'aircokerstberging/switch/turn_off_honeywell_airco/state' [10:31:28][C][mqtt.switch:042]: Command Topic: 'aircokerstberging/switch/turn_off_honeywell_airco/command' [10:31:28][C][mqtt.switch:041]: MQTT Switch 'Cool to 16 degrees fan full speed': [10:31:28][C][mqtt.switch:042]: State Topic: 'aircokerstberging/switch/cool_to_16_degrees_fan_full_speed/state' [10:31:28][C][mqtt.switch:042]: Command Topic: 'aircokerstberging/switch/cool_to_16_degrees_fan_full_speed/command' [10:31:29][D][remote.jvc:049]: Received JVC: data=0xC3E0 [10:31:29][D][remote.lg:054]: Received LG: data=0xC3E00700, nbits=32 [10:31:29][D][remote.nec:070]: Received NEC: address=0x07C3, command=0x00E0 [10:31:29][D][remote.pronto:229]: Received Pronto: data=0000 006D 006A 0000 015A 00AE 0014 0043 0013 0043 0013 0017 0013 0017 0013 0017 0013 0017 0013 0043 0013 0043 0013 0043 0013 0043 0013 0043 0012 0018 0013 0017 0013 0017 0013 0017 0012 0018 0013 0018 0012 0018 0012 0018 0013 0017 0012 0018 0013 0043 0012 0044 0012 0044 0012 0018 0012 0018 0013 0017 0012 0018 0013 0017 0013 0018 0013 0017 0013 0018 0013 0018 0013 0017 0013 0017 0013 0017 0013 0017 0013 0043 0013 0043 0013 0017 001 [10:31:30][D][remote.jvc:049]: Received JVC: data=0xC3E0 [10:31:30][D][remote.lg:054]: Received LG: data=0xC3E00700, nbits=32 [10:31:30][D][remote.nec:070]: Received NEC: address=0x07C3, command=0x00E0 [10:31:30][D][remote.pronto:229]: Received Pronto: data=0000 006D 006A 0000 015A 00AE 0014 0043 0013 0043 0013 0017 0013 0018 0013 0017 0013 0017 0012 0044 0013 0043 0013 0043 0013 0043 0013 0043 0013 0017 0013 0018 0013 0017 0013 0017 0013 0017 0013 0017 0013 0017 0014 0016 0012 0018 0013 0017 0013 0043 0013 0043 0013 0043 0013 0017 0012 0018 0012 0018 0013 0017 0013 0017 0013 0018 0013 0017 0013 0018 0012 0018 0012 0018 0013 0017 0012 0018 0012 0018 0013 0043 0013 0043 0013 0017 001 # Deze commandos krijgt hij binnen omdat ik met Home Assistant switchen aanstuur: [10:31:40][D][switch:013]: 'Cool to 16 degrees fan full speed' Turning ON. [10:31:40][D][remote.pronto:101]: Send Pronto: frequency=38kHz [10:31:40][D][remote.pronto:106]: Send Pronto: intros=212 [10:31:40][D][remote.pronto:107]: Send Pronto: repeats=0 [10:31:40][D][remote_transmitter:075]: Sending remote code... [10:31:42][D][switch:013]: 'Cool to 16 degrees fan full speed' Turning ON. [10:31:42][D][remote.pronto:101]: Send Pronto: frequency=38kHz [10:31:42][D][remote.pronto:106]: Send Pronto: intros=212 [10:31:42][D][remote.pronto:107]: Send Pronto: repeats=0 [10:31:42][D][remote_transmitter:075]: Sending remote code... [10:31:43][D][switch:013]: 'Turn off Honeywell airco' Turning ON. [10:31:43][D][remote.pronto:101]: Send Pronto: frequency=38kHz [10:31:43][D][remote.pronto:106]: Send Pronto: intros=212 [10:31:43][D][remote.pronto:107]: Send Pronto: repeats=0 [10:31:43][D][remote_transmitter:075]: Sending remote code... [10:31:44][D][switch:013]: 'Turn on Honeywell airco' Turning ON. [10:31:44][D][remote.pronto:101]: Send Pronto: frequency=38kHz [10:31:44][D][remote.pronto:106]: Send Pronto: intros=212 [10:31:44][D][remote.pronto:107]: Send Pronto: repeats=0 [10:31:44][D][remote_transmitter:075]: Sending remote code... |