LouisLee985 / Homekit_ESP_AC_IRemote

Homekit ESP 8266 AC IRemote
MIT License
46 stars 7 forks source link

SparkFun WiFi IR Blaster (ESP8266) #4

Closed iondarie closed 1 year ago

iondarie commented 1 year ago

Hello,

Is there any way i could get this working on a SparkFun WiFi IR Blaster (ESP8266) board?

IR_LED_RECEIVE = 13 IR_LED_SEND = 4

Thank you,

LouisLee985 commented 1 year ago

ESP8266_WiFi_IR_Blaster

You can try Air_Conditioner_Remote_1.6.0-sparkfun_ir_blaster.bin

iondarie commented 1 year ago

Thank you!!! I will try asap and come back with the results

iondarie commented 1 year ago

"Unable to Add Accessory. Accessory is out of compliance"

this is the log if it helps:

[20:17:33]>>> [  64541] HomeKit: Got new client: local 192.168.1.96:5556, remote 192.168.1.121:58505
[20:17:33]>>> [  64550] HomeKit: [Client 1073699956] Pair Setup Step 1/3
[20:17:33]>>> [  64632] HomeKit: [Client 1073699956] Pair Setup Step 2/3
[20:17:33]>>> [  64643] HomeKit: Call s_mp_exptmod in integer.c, original winsize 6
[20:17:43]>>> [  74672] HomeKit: Call s_mp_exptmod in integer.c, original winsize 5
[20:17:49]>>> [  79808] HomeKit: [Client 1073699956] Pair Setup Step 3/3
[20:17:49]>>> [  79837] HomeKit: Call ge_double_scalarmult_vartime_lowmem in ge_low_mem.c
[20:17:49]>>> [  80558] HomeKit: Added pairing with 81429B0D-497F-4A9B-BDDB-D96D195999B8
[20:17:49]>>> [  80631] HomeKit: Free saved_preinit_pairing_context
[20:17:49]>>> [  80636] HomeKit: [Client 1073699956] Successfully paired
[20:17:50]>>> [  80880] HomeKit: [Client 1073699956] Disconnected!
[20:17:50]>>> [  80885] HomeKit: [Client 1073699956] Closing client connection
[20:17:50]>>> [  80901] HomeKit: Got new client: local 192.168.1.96:5556, remote 192.168.1.121:58506
[20:17:50]>>> [  80911] HomeKit: [Client 1073683452] Pair Verify Step 1/2
[20:17:50]>>> [  81232] HomeKit: Free heap: 29352
[20:17:50]>>> [  81421] HomeKit: [Client 1073683452] Pair Verify Step 2/2
[20:17:50]>>> [  81428] HomeKit: [Client 1073683452] Found pairing with 81429B0D-497F-4A9B-BDDB-D96D195999B8
[20:17:50]>>> [  81451] HomeKit: Call ge_double_scalarmult_vartime_lowmem in ge_low_mem.c
[20:17:51]>>> [  82182] HomeKit: [Client 1073683452] Verification successful, secure session established
[20:17:51]>>> [  82190] HomeKit: Free heap: 29464
[20:17:51]>>> [  82340] HomeKit: [Client 1073683452] Get Accessories
[20:17:52]>>> [  82857] HomeKit: [Client 1073683452] Disconnected!
[20:17:52]>>> [  82863] HomeKit: [Client 1073683452] Closing client connection
LouisLee985 commented 1 year ago

Edited Retry

iondarie commented 1 year ago

It works now but it will not send commands to the ac.

LouisLee985 commented 1 year ago

Your ac IR protocol must be in IRremoteESP8266.h enum decode_type_t {}. Change IR protocol to yourself : Long press IO0 KEY 5-10 second, the LED flashes 2 times per second,press ON/OFF key on your original remote.

iondarie commented 1 year ago

hi, i did change the ir protocol here is my log output

Using '/dev/cu.usbserial-0001' as serial port.
Showing logs:
[20:08:19]█      ██      ██        ██████
[20:08:19]            ██  ████      ██  ██  ██  ████        ██    ██        
[20:08:19]        ██  ████    ██████████████  ██  ████    ████████████  ██  
[20:08:19]                        ██    ██████  ██████  ████      ██        
[20:08:19]        ██████████████  ████████████████    ██████  ██  ████████  
[20:08:19]        ██          ██    ██████████    ██  ██  ██      ████  ████
[20:08:19]        ██  ██████  ██    ██████    ████    ████████████████      
[20:08:19]        ██  ██████  ██  ██    ██  ████████  ██  ██    ████    ████
[20:08:19]        ██  ██████  ██    ██████  ████        ████  ██      ██  ██
[20:08:19]        ██          ██  ██  ████      ██          ██    ██    ████
[20:08:19]        ██████████████  ██      ████          ██████    ████      
[20:08:19]
[20:08:19]
[20:08:19]
[20:08:19]
[20:08:38]
[20:08:38] ets Jan  8 2013,rst cause:2, boot mode:(3,1)
[20:08:38]
[20:08:38]load 0x4010f000, len 3460, room 16 
[20:08:38]tail 4
[20:08:38]chksum 0xcc
[20:08:38]load 0x3fff20b8, len 40, room 4 
[20:08:38]tail 4
[20:08:38]chksum 0xc9
[20:08:38]csum 0xc9
[20:08:38]v000a4ea0
[20:08:38]~ld
[20:08:39]
[20:08:39]LINE 172:  Init  Ac_Protocol: 15
[20:08:39]LINE 176: EEPROM Ac_Protocol: 24
[20:08:39]>>> [    912] HomeKit: Starting server
[20:08:39]>>> [    916] HomeKit: Using existing accessory ID: EC:13:D8:BC:E5:7E
[20:08:39]>>> [    922] HomeKit: Found admin pairing with 81429B0D-497F-4A9B-BDDB-D96D195999B8, disabling pair setup
[20:08:39]>>> [    932] HomeKit: Configuring MDNS
[20:08:39]>>> [    937] HomeKit: MDNS begin: HAC-C0B3DD, IP: 192.168.1.96
[20:08:39]>>> [    946] HomeKit: Init server over
[20:08:39]Setup Code: 985-21-985
[20:08:39]QR Code Generation Time: 23
[20:08:39]QR Code: X-HM://00KVW5QWXAAAA
LouisLee985 commented 1 year ago

Ac_Protocol: 24,GREE. Check your hardware like infrared emitter is good and properly soldering. You can test it by IRremoteESP8266 /examples/TurnOnGreeAC