Featured image of post Home Assistant: Light Intensity Sensor APDS-9960

Home Assistant: Light Intensity Sensor APDS-9960

Through the combination of ESPHome and Home Assistant, a myriad of sensors can be added, managed, and their data visualized and stored. To extend the arsenal of sensor data, I wanted to detect light intensity as well. After some research on the internet, I decided to get the sensor [APDS-9960](https://www.broadcom.com/products/optical-sensors/integrated-ambient-light-and-proximity-sensors/apds-9960). It detects the intensity of red, green and blue light, and it can detect simple directional gestures like up or down.

Featured image of post IOT: Debugging InfluxDB Storage Errors

IOT: Debugging InfluxDB Storage Errors

Over the course of the last articles, I introduced InfluxDB and showed how to store system and application log files coming from FluentBit inside InfluxDB. About two weeks later, the InfluxDB container would suddenly not start any more. The root cause was insufficient memory during compaction of large databases containing the log files.

Featured image of post IOT: Log File Collection with Fluent Bit

IOT: Log File Collection with Fluent Bit

In a growing network of IOT sensors and computer devices, getting quick access to essential log files is a challenge. On the one side, you have docker containers that host applications like Home Assistant or ESPHome. On another side, you have sensors that produce sensor readings, values, and log files as well. And finally, you have computers or special appliances like a firewall that also generates log files. Now, if there is an error, where do you start? Will you manually log into the systems and check the log files?

Featured image of post Hardware Metrics Collection with IOT Devices

Hardware Metrics Collection with IOT Devices

In a self-made IOT stack, several applications provide, parse, and store data. You might have all applications running on the same or several machines. You might have different sensors providing data, and different methods to access and store this data. For a hobby project, this is all well until the point where things are not running anymore.

Featured image of post IOT Security Camera with a Raspberry Pi Zero and External USB Webcam

IOT Security Camera with a Raspberry Pi Zero and External USB Webcam

In my IOT enabled home, I have several sensors that continuously provide environmental data such as the temperature, humidity, or air quality. In addition, I have experimented with movement sensors and light automation with the goal of activating light during the night when motion is detected. Another idea that sparked my curiosity is motion detection with a video camera or webcam. One camera that I used for permeant video streaming is the ESP32 Camera board: Very compact, very minimal, very low FPWS, and also very simply integrated with ESP Home. However, there is no motion detection feature available.

Featured image of post Home Assistant: Measuring Air Quality, Humidity and Temperature with a BME680 Sensor

Home Assistant: Measuring Air Quality, Humidity and Temperature with a BME680 Sensor

Building an IOT sensor with the ESP8266 and ESP32 boards can be done in two ways. Either you are starting with a basic sketch that accesses your sensor, and then add the IOT integration (WIFI, MQTT, InfluxDB message). Or you use an integrated System such as ESPHome or Home Assistant with which integration boils down to defining the correct configuration. After an initial sketch for a DHT11 sensor that I programmed completely with Arduino code, the next sensor should be integrated directly into ESPHome and Home Assistant. Following this approach, I want to see how different the approaches are, and in general how much work needs to be done.

Featured image of post Home Assistant: How to Measure Battery Voltage of ESP8266 Boards

Home Assistant: How to Measure Battery Voltage of ESP8266 Boards

When you install IOT sensors inside your house, you will have plenty main power outlets, USB adapters etc. to power your boards. But when sensors should be mobile, or should be used at places without power supply, they need to be powered by batteries. Its easy to provide the correct voltage, but how can you approximate the remaining battery power to ensure continuous operation?