@scurb This looks very interesting and my factor now to save me from having to create my own :-). I have been planning to do the same thing (although maybe on a smaller software scale) by writing a simple Python server that would pull serial packets off of a gateway arduino (either running mysensors or something I write myself) and pipe this through MQTT to openHAB. I have two questions:
How do you interface with a sensor network? Do you go through a serial connection to read the serial packet format (a,b,c,d)? I see several implementations that put the mqtt client directly on the Arduino, but it seems much cheaper for me to just plug it into a USB port to get a virtual serial port instead of investing in a separate ethernet shield
How does an item configurations look like for a switch in openHAB? I'm looking to build a toggle switch which toggles light on or off every time it is activated, and I cannot really understand how to configure the switch to allow this behaviour for an mqtt input.
Feel free to take the second question with me directly since this might not be very interesting to the others in the forum
I recently build successfully a mysensor node based on an Arduino Uno, a Robolink IR sensor and a Robolink DHT11 sensor. The last two from an Elektor sensor kit ever bought for my son when he was still interested by electronics .
My controller is Home Assistant, so I did a merge of the given MySensors example sketch and the Home Assistant example sketch together with the DHT11 sketch.
The airco is a Samsung one, so in the sketch you will find these defines uncommented. Replace by your airco manufacturer.
People interested in building one, can find my sketch on https://github.com/ericvb/MySensorsArduinoSketches
@ToniA a big thanks for the work to decode all these IR sequences!
@Zwer2k my expectations seem correct. I created a bug report that also includes a rudimentary workaround.
https://github.com/mysensors/MySensors/issues/1496#issue-968399284
Wow, great! Its alway nice to see others using my work too. Your code improvement seem to be very helpful too.
I have most recently also integrated this directly into my gateway build (see here). I am still struggling with code there though.
Hi @talhatec ,
The remote controls work well. 4 months ago I installed a new battery and from time to time I press the button to check if they continue with battery, they sleep correctly.
I remain pending to change the RF antenna for a better one and to improve some failures in the connectors of the battery that at the moment are very fragile (the pad has little copper).
The casing can be purchased online
https://www.ebay.com/itm/Bluetooth-4-0-GPS-Tracker-Locator-Smart-Alarm-Anti-lost-Device-Self-Portrait-SC/401394156488
For now the project is stopped, I want to test the Aqara sensors (I buy them this week), in any case the domotics is now my lowest priority.