Wake-up with a fresh morning coffee

Brewed by Google Calendar, Node-RED and Fibaro Home Center 2

Wake-up with a fresh morning coffee

January 20, 2018 (draft)
Applies to: Fibaro Home Center 2, Node-RED and Google Calendar.

Goals

  • Check in Google Calendar if coffee is desirable next morning.
  • Change wake-up routine to activate the coffee machine if needed.

When I have to get up (very) early for a long ride to a client I make myself a cup of coffee in the morning. I thought why not automate this process by reading my calendar and telling the wake-up routine to check if coffee is desirable in the morning!

Table of Contents

How I implemented it

In words

With the Google Calendar node for Node-RED I poll every everning at 21:15 my work calendar in Google. If there is a appointment with a coffee cup emoticon in it Node-RED checks if this appointment is tomorrow. If this is true the global variable Make Coffee is set to yes in the Fibaro Home Center 2 via de Fibaro REST-API.

Devices used

To automate my Technivorm Moccamaster coffee machine I use a Fibaro Wall Plug.

Node-RED part

Install the node for Node-RED to connect to Google Calendar:

$ npm install node-red-node-google

Import the following flow in Node-RED

<empty>

Edit the flow in Node-RED

Change all names and variables to your own in Node-RED and Home Center 2 variables!

Fibaro part

Global variables

This is the global variable you need for the routine to work:

Global Variable Type Value
MakeCoffee Predefined yes, no

This is a draft, come back soon!