Infrared sender & receiver
Posted: 13 Feb 2018, 20:07
I'm working on a solution to turn on my TV via my domoticz system (via RFxcom 433 hz transmitter, and 433 hz receiver relays) and that works perfectly.
The next step in my home automation is to automaticaly turn on my stereo, without using any remotes. I've spend to much time to try and figure it out, but it's still not working. I already tried to figure out another topic (viewtopic.php?f=5&t=328) but I'm still confused.
At the moment I have 2 esp8266 modules (Wemos D1 mini) with GIT version: v2.0.0-dev12
The first one is the 'sender':

The second one is the 'receiver':

I've enabled the rules, and I got the idea that I have more information in my logging. When i enter the action 'send' the following code: http://192.168.1.24/control?cmd=IRSEND,NEC,C1AA09F6,32 I see on the receive page that I receive the following commands:
So far so good you think. But when I try to read a value from my Sony remote control (or Samsung) I'm not able to 'convert' the commands into a command to use with my 'sender'. (for example, to turn on/of my Sony i see in te logging:
But I don't know how to convert those codes into ESP commands. I cannot find in the code what 'type 4' means. An example of my Samsung (turn on/of) command is:
By the way, I got these sensors:
https://www.ebay.com/itm/2PCS-Digital-3 ... 1eba3899c9
The next step in my home automation is to automaticaly turn on my stereo, without using any remotes. I've spend to much time to try and figure it out, but it's still not working. I already tried to figure out another topic (viewtopic.php?f=5&t=328) but I'm still confused.
At the moment I have 2 esp8266 modules (Wemos D1 mini) with GIT version: v2.0.0-dev12
The first one is the 'sender':

The second one is the 'receiver':

I've enabled the rules, and I got the idea that I have more information in my logging. When i enter the action 'send' the following code: http://192.168.1.24/control?cmd=IRSEND,NEC,C1AA09F6,32 I see on the receive page that I receive the following commands:
Code: Select all
902175 : IR : Code c1aa09f6 - Type: 3 - Bits: 32
902176 : EVENT: Infraredreceive#IR=3249146358
Code: Select all
1046025 : IR : Code a81 - Type: 4 - Bits: 12
1046026 : EVENT: Infraredreceive#IR=2689
Code: Select all
1150465 : IR : Code e0e040bf - Type: 7 - Bits: 32
1150465 : EVENT: Infraredreceive#IR=3772793023
https://www.ebay.com/itm/2PCS-Digital-3 ... 1eba3899c9