Page 1 of 1

CHEAP IRBLASTER for domoticz Project

Posted: Friday 09 December 2016 15:34
by dvsat
Hi,

I have create a small project to allow using an IR Blaster with domoticz, Jarvis or Alexa.

Image

You will need :

Hardware:
-Nodemcu
-Wire
-IR Led
-IR reciever
-Resitor 20 ohms

Software :
-Mosquitto
-OpenSSL
-MongoDB
-Node-Red

Image

At the end you could reprodce any IR signal with a simple URL like :

http://<noderedsite>/IRSend?irDevice=<DEVICEMAC>&irCode=0xCA31DA45

https://github.com/JZacharie/nodeMCU_IrBlaster

Chear !

Re: CHEAP IRBLASTER for domoticz Project

Posted: Friday 09 December 2016 15:44
by Justintime
Interesting.... Still have to rearrange my ir node from Mysensors.

Can you set it in learning mode? So it will add a switch or something.
Or do you have to set the IR codes in the sketch.

Re: CHEAP IRBLASTER for domoticz Project

Posted: Friday 09 December 2016 15:57
by dvsat
Yes it could learn signal from the IR reciever and store the Full DATA RAW and the HEXCODE in a mondoDB. By this way, you should be able to use any UNKNOW device in futur.

Re: RE: Re: CHEAP IRBLASTER for domoticz Project

Posted: Friday 09 December 2016 16:07
by Justintime
dvsat wrote:Yes it could learn signal from the IR reciever and store the Full DATA RAW and the HEXCODE in a mondoDB. By this way, you should be able to use any UNKNOW device in futur.
OK nice I have the parts laying around. So will play with it. Thanks for sharing.

Re: CHEAP IRBLASTER for domoticz Project

Posted: Sunday 11 December 2016 20:36
by Justintime
It cant connect to the Wifi network.

I changed the config.h with the broker name: i called it IR
And dont really sure what to do with the fingerprint.

Maybe you can expand your tutorial a bit for the more Noob types. Who want to learn but need point in the right direction.

Re: CHEAP IRBLASTER for domoticz Project

Posted: Monday 12 December 2016 14:35
by dvsat
Hi,

You should use a MQTT server with a valide certificate. (E.G. : Mosquitto + Let's Encrypt)

If you don't know how to build it, uses this one for free : https://www.cloudmqtt.com/

const char* broker = "m21.cloudmqtt.com";
// SHA1 fingerprint of the certificate
// openssl x509 -fingerprint -in <certificate>.crt
const char* fingerprint = "A5 02 FF 13 99 9F 8B 39 8E F1 83 4F 11 23 65 0B 32 36 FC 07";

Regards
Joseph

Re: CHEAP IRBLASTER for domoticz Project

Posted: Wednesday 08 March 2017 9:48
by bidyut
Nice & awsm project!!!
Plz help.
Need version for libraries as well as for Arduino IDE u have used. While compiling the code throwing error.