Home Automation
24 August, 2018
9:11
Introduction
Having a DIY home automation system for a couple of years and having seen Home Wizard by a neighbor, we decided to try something new.
One of the most important things was that the software should be open source, easy and flexible.
Further more it should handle many of the features we already build in our own system.
For the home automation software we found Domoticz, Open Hab and Home Assistant. All of them are open source and are have a lot of features.
Having a lot of hardware device, running at 433 MHz, 866 MHz and WiFi, we also needed a standard RF-interface (and preferable also an IR-interface), because none of the Home Automation systems will handle our current own build RF-interface. To make a fluently transition from old hardware/software the new RF-interface should preferable also support our old interface. Therefore open source was an absolute demand. And that lead to RFLink.
Domoticz / OpenHAB / Home Assistant
The first experiment was to interface WunderGround to Domoticz as it doesn't require any hardware. This worked very well. Also MQTT en WiFi devices could be connected to Domoticz. After realizing an RFLink device, it was also possible to connect the RF-devices. Being technician and regularly changing devices, this is not well supported in Domoticz, mainly because Domoticz decides which unique idx each device gets. After creating the idx, you've to reprogram your device to get connected.
So after a week we changed to OpenHab, which we couldn't get running under windows.
So we switched to Home Assistant, which was a relief. For non technician Domoticz might be a better starting point, but for technician Home Assistant is really the best. After playing for a week with Home Assistant we found the following major advantages
RFLink
We've experience with other devices than Arduino, i.e. Raspberry, ESP8266 and ESP are our standard devices for the moment.
As RFLink was open source and an ESP is much more powerful than an Arduino it should be easy to get it RFLink running on an ESP.
Problem is that the latest version of RFLink is R48. We couldn't only find sources of version R29 and R35. Both sources didn't work correctly, R29 was the best. We tried to contact "the stuntteam" which owns the orginal sources but didn't get any response. At any moment we're willing to cooperate and merge the ideas of Stuntteam and ours.
After changing about 10 lines of code the program ran on ESP32. Especially the detection of RF sequences wasn't vey stable. After making some improvements, we did form an opinion about the state of the software, which made us decide to rewrite the whole program.
Rebuilding the program gave us very stable RF-sequence detections and everything ran well at the ESP32 and also on the ESP8266.
The new software, called RFLink-ESP, can be found on GitHub: https://github.com/Stef-aap/Domoticz-RFLink-ESP
Some of the advantages of the new software (and we've some new ideas in mind)
Created with Microsoft Office OneNote 2007
One place for all your notes and information