Open dov opened 4 years ago
it did not work for me either, i am using Arduino Pro Micro.
Well, it's been a long time since I did this and actually don't have access to this kind of AC to test anymore. The equivalent code you created using 'electraAcRemote' doesn't seem quite equivalent, I think this would give what you generated with your remote: "./electraAcRemote 3 COOL 22 OFF SWING_OFF".
Anyhow since what you sent to the AC should also be a valid code I can only suggest some debug options:
What I can confirm is that back in the day this worked on two different Electra ACs with both pi and esp8266.
Good Luck!
I tried to use this code to send commands to my Electra AirConditioner. As I only wanted the raw codes,I removed the irSling stuff and did some other tweaks to get it to compile.
I have written a http server for an ESP8266 LOLIN D1 mini chip through which I'm able to send raw commands as simply as:
where
$CODE
is the raw code that I want to send to my AC. Meanwhile I'm using a couple of codes that recorded from my remote control through the arduino IRrecvDumpV2 program and it works fine. E.g. the following command turns on the AC at 22°C:Before comparing to to the output of Electra-AC-Remote I rounded these numbers to multiples of 100 and I got the following command that works just the same.
So now I tried generating the equivalent code through
electraAcRemote
as follows:which generated: [3000,3000,1000,1000,1000,1000,1000,2000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,1000,1000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,2000,1000,3000,3000,1000,1000,1000,1000,1000,2000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,1000,1000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,2000,1000,3000,3000,1000,1000,1000,1000,1000,2000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,1000,1000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,2000,1000,4000,0,0,0,0,0,0,0]
I modifed the output (removed square brackets and added the leading "38000") value and send the output to the 8266 chip:
The result was a no-op. The AC did not recognize this code.
Any idea why? Meanwhile I'll record some more codes for myself to use, but I'd much rather have them computer generated.