Reader small image

You're reading from  Building Smart Home Automation Solutions with Home Assistant

Product typeBook
Published inSep 2023
PublisherPackt
ISBN-139781801815291
Edition1st Edition
Right arrow
Author (1)
Marco Carvalho
Marco Carvalho
author image
Marco Carvalho

Marco Carvalho is an experienced home automation hobbyist engineer, electrical engineer, and technician. Pursuing his passion for electronics and embedded systems, he created an embedded home automation task scheduler using X10 Home Automation devices in 2006. Nowadays, he uses wireless electronic devices and the Home Assistant software to build different smart home automation applications. As an MSc in Computer Science, Marco has worked with several well-known companies such as IBM, Jabil, Phillips, and Hexagon where he extended his support in development and manufacturing of electronic products. At the time of this publication, he is the Director of Engineering for Apex Microtechnology, where he is involved in the development of high power, high precision analog components.
Read more about Marco Carvalho

Right arrow

Connecting the sensors data to a database using 
Node-RED

In Chapter 7, we briefly delved into Node-RED, where we created an automation flow. This flow involved capturing motion from the double measurement sensor introduced in Chapter 3 and combining it with the sunset condition. As a result, an action was triggered to turn on the lights in my garage. In this section, we will use Node-RED to grab the temperature data from the double measurement sensor and the Bluetooth Mi temperature sensors via the temperature hub, format this data, and store it in the InfluxDB database.

The details about how to create the flow to manage the temperature data capture will be split into three parts:

  • Double measurement sensor data capturing and formatting
  • Temperature hub data capturing and formatting
  • Configuring the data to be stored in the InfluxDB database

I will detail each one of these steps in the following three subsections.

Double measurement sensor data capturing...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Building Smart Home Automation Solutions with Home Assistant
Published in: Sep 2023Publisher: PacktISBN-13: 9781801815291

Author (1)

author image
Marco Carvalho

Marco Carvalho is an experienced home automation hobbyist engineer, electrical engineer, and technician. Pursuing his passion for electronics and embedded systems, he created an embedded home automation task scheduler using X10 Home Automation devices in 2006. Nowadays, he uses wireless electronic devices and the Home Assistant software to build different smart home automation applications. As an MSc in Computer Science, Marco has worked with several well-known companies such as IBM, Jabil, Phillips, and Hexagon where he extended his support in development and manufacturing of electronic products. At the time of this publication, he is the Director of Engineering for Apex Microtechnology, where he is involved in the development of high power, high precision analog components.
Read more about Marco Carvalho