Accéder au contenu principal

Articles

Affichage des articles du 2018

A simple temperature and humidity MQTT sensor for Home Assistant, based on Arduino MKR1000

This article describes a way to create and manage multiple very simple temperature and humidity sensors based on Arduino MKR1000 , and being able to send their information to Home Assistant . The Arduino MKR1000 is a pretty cool device, which has an integrated Wifi chip, optimized for low power consumption. This post is not addressing the power aspect, but keep in mind that a possible enhancement of the presented configuration could be to leverage the low power and sleep mode possibilities, in order to run the sensor on battery, instead of having it constantly plugged in. Without taking that into consideration, my requirements were the following: - To be able to plug in a sensor in each room of my home, connected to my Wifi network; - To read humidity and temperature every few minutes; - To collect all data on a pre-configured Home Assistant server; - To be able to re-connect automatically, whenever an Internet, wifi or power outage occurs (and in my place, you can expect all t...

Get Foobot measurements in Home Assistant using RESTful API

There is no Foobot module yet available in Home Assistant . Nevertheless, Foobot is offering a RESTful API which you can easily access, and which is configurable with the RESTful sensor component in Home Assistant. The first thing you need to do, is to request a Foobot API key if you don't have one. You can do this here:  https://api.foobot.io/apidoc/index.html On the same API page, you can get your device uuid, by using the Identity API. Just enter your user name, and click "Try it out!": You will be able to read your uuid form the JSON response body. You now have all the information necessary to retrieve Foobot sensor values for a specific period of time. The API allows to get two types of data points: data points read in the last N seconds, or between two specific date and times. As in Home Assistant we would like to read the latest information given by the Foobot, we will use the first one. Using the Data Point API, we are now able to generate a...