Io T
Io T
Started
Home automation has three major parts:
Hardware
Software/Apps
Communication protocols
Lighting control
HVAC
Lawn/Gardening management
Smart Home Appliances
Improved Home safety and security
Home air quality and water quality monitoring
Natural Language-based voice assistants
Better Infotainment delivery
AI-driven digital experiences
Smart Switches
Smart Locks
Smart Energy Meters
The list is still not exhaustive and will evolve over the time to
accommodate new IoT use cases.
Now that you are familiar with home automation applications, let’s have
a detailed look at what components are involved in building a typical
home automation prototype.
IoT sensors
IoT gateways
IoT protocols
IoT firmware
IoT cloud and databases
IoT middleware (if required)
Apart from what we mentioned above, more and more platform builders
are open sourcing their libraries to developers. Take for example the
Dallas temperature library for DS18B20 for Arduino was quickly ported
because of open source development to a new version that helped
developers to integrate DS18B20 with Linkit One. Understanding these
things become crucial as IoT tends to evolve continuously and having an
equally responsive platform makes it business safe to proceed.
Let’s now deeply evaluate each of these components, starting with IoT
sensors.
Temperature sensors
Lux sensors
Water level sensors
Air composition sensors
Video cameras for surveillance
Voice/Sound sensors
Pressure sensors
Humidity sensors
Accelerometers
Infrared sensors
Vibrations sensors
Ultrasonic sensors
Depending upon what you need, you may use one or many of these to
build a truly smart home IoT product. Let’s have a look at some of the
most commonly used home automation sensors.
Temperature Sensors
The market is full of them, but the famous temperature sensors are
DHT11/22, DS18B20, LM35, and MSP430 series from TI. The MSP430
series is more accurate than the rest, but at the same time, it is one of the
most expensive for prototyping or initial product testing purposes.
MSP430 tops all temperature sensors, as the precision and battery
consumption is minimal with them.
The DHT11 has a very restricted temperature range and suffers from
accuracy issues. DHT22, on the other hand, is a little bit more accurate
but still, doesn’t make it as the preference.
The DS18B20, on the other hand, is more accurate, as opposed to digital
temperature sensors like the DHT22 and 11. Dallas temperature sensors
are analog and can be extremely accurate down to 0.5 degrees.
Take note that often, the temperatures that you directly sense from
these sensors may not be very accurate, and you would occasionally see
1000 F or greater values no matter what you are doing.
There’s an entire logic that goes around building temperature sensors
that we will address in another blog post.
Lux Sensors
Lux sensors measure the luminosity and can be used to trigger various
functions range from cross-validating movements to turn the lights on if
it becomes too dark. Some of the most popular light sensors are TSL2591
and BH1750.
Recent tests to include TSL2591 and BH1750 into low-powered IoT
devices have found them to be working fairly well for most use cases.
Here’s a study done by Robert and Tomas that shows how these two
compare against a spectrometer and a photodiode.
To get a good idea of whether these two sensors would meet your needs,
we would suggest illuminance tests followed by normalizations of the
data to observe deviations under various situations.
CO monitoring by MiCS-5525
MQ-8 to measure Hydrogen gas levels
MiCS-2714 to measure nitrogen oxide
MQ135 to sense hazardous gas levels (NH3, NOx, Alcohol, Benzene,
smoke, CO2
Most of these are sensors have a heating time, which also means that
they require a certain time before they actually start delivering accurate
values.
Humidity Sensors
These sensors bring the capability of sensing humidity/RH levels in the
air to smart homes. The accuracy and sensing precision depends a lot on
multiple factors, including the overall sensor design and placement.
But certain sensors like the DHT22 and 11, built for rapid prototyping,
will always perform poorly when compared to high-quality sensors like
HIH6100 and Dig RH.
While building a product to sense humidity levels, ensure that there’s no
localized layer of humidity that is obscuring the actual results. Also, keep
in mind that in certain small spaces, the humidity might be too high at
one end as compared to the others.
When you look at free and open spaces where the air components can
move much freely, the distribution around the sensor can be expected to
be uniform and, subsequently, will require fewer corrective actions for
the right calibration.
Home Assistant
Calaos
Domoticz
OpenHAB: Supports Raspberry Pi, written in Java and has design
tools to build your own mobile apps by tweaking UI.
OpenMotics[Asked their developer, waiting for them to
respond(dev confirmed)]
LinuxMCE
PiDome
MisterHouse
Smarthomatic
Let’s take a look at the major home automation IoT platforms.
Home Assistant
Supports Raspberry Pi, uses Python, and the OS is Hassbian. It has
simplified automation rules that developers can use to build their home
automation product, saving them thousands of lines of code.
Home Assistant supports the following:
Components
State machine
Event bus
Service registry
Timer
Plugin framework
Rules engine
Logging mechanism
UI abstraction: A tree structure for UI Widgets, Item UI providers,
and dynamic UI configuration
UI implementations are available for the web, Android, and iOS
Designer tools availability
OpenHAB has been primarily only been observed as a project for the
hobbyist programmer, and even many parts of openhab.org convey the
same. But we have observed a different effort in recent times from
OpenHAB in building the developer economy for building IoT smart
homes.
Take this slowly growing GitHub repo talking about OpenHAB cloud, for
example.
According to the repository, OpenHAB cloud architecture will look
something like this:
Impressive enough that some open platform out there is thinking about
system services, Cron jobs, logging, etc.
Further, let's look at the frameworks and technologies that openHAB will
support: Node.js, Express.js, Nginx, MongoDB, Redis, Socket.IO.
Unlike Home Assistant’s vast integrability, openHAB is currently limited
to:
IFTTT
Amazon Alexa
AWS EC2 [AWS Multi-AZ isn’t compatible for multiple time zone
availability]
AWS IoT with openHAB
MQTT support
Calaos
Calaos was developed initially by a company that closed back in 2013,
but home automation since then has grown, and it is being maintained
and upgraded by developers. While now being open source, it facilitates
premade source code to:
Premoboard
Cubieboard
Raspberry Pi
Intel-based machines
Domoticz
Domoticz allows you to monitor and configure your devices and sensors
with the simplest possible design. Impressive enough that the entire
project is extremely lightweight, it further is backed by high integrability
with third parties and features like auto-learning switches.
This platform has been designed to work with operating systems like
Linux and Windows.
Protocol capabilities of Domoticz include: Z-wave, Bluetooth, Apple
Homekit, X10, and MQTT
Hardware integration capabilities of Domoticz:
RFXCOM transceiver
ESP2866 Wi-Fi module
P1 smart meter
Youless meter
Pulse counters
1-Wire
Philips Hue
Essent E thermostat
Domiticz can be used to create any sort of services that you can think of,
ranging from a smart weather device to a Telegram bot.
Domoticz Architecture
Currently, very few people know about the architecture of Domoticz,
making it extremely difficult to build applications on it without taking
unnecessary risks in building the product itself.
For example, the entire design of general architecture feels a little weird
when you look at the concept of a sensor to control to an actuator. It
seems to be missing.
Building advanced applications with Domoticz can be done using C++,
lula, PHP, shell, etc.
Blockchain in IoT
Consumers, especially those who grew up in the digital era, understand
the importance of privacy. With the evolution of IoT, security has taken
center stage for realistic deployment scenarios.
Deployment of blockchain into home networks can easily be done with a
$35 Raspberry Pi. A blockchain secured layer between devices and
gateways can be implemented without a massive revamp of the existing
code base.
Simply put, blockchain is a technology that would be an implementation
that most users won’t even know about, but it will play a huge role in the
future to reassure them with revolutionary and new business models
like dynamic renting for Airbnb.
So far, interoperability issues and broken protocols seemed to have
hampered the growth of IoT-based smart homes.
But as technology is progressing and more and more computing power
can be generated with very low-powered devices, home automation will
gradually become a technology that will easy for us to build and develop
for on a daily basis.