Skip to content

Node Red application for Home Automation based on WINK api for hub as well as LIFX, IFTTT.

License

Notifications You must be signed in to change notification settings

bigverm23/WinkRedNode

 
 

Repository files navigation

WinkRedNode

Updates

Please check Flows/Bluemix/README.md for latest updates.

This repository explains how to use Node-RED and Freeboard with the Wink API in order to enhance your home automation experience.

This repository is neither officially-endorsed (or supported) by Wink; however, Wink publishes an API and there are lots of wonderful open source tools that allow us to build on that API.

Overview

Node-RED operates around the notion of a "flow". This repository contains examples of many flows that "know" about the Wink API. Once you have one or more flows deployed in your Node-RED process, you can make use of that data. The easiest way is to visual the data using Freeboard.

Running Locally...

You can run this software on your own computer, such as a Raspberry Pi 2 model B or even your own laptop computer! In order to run Node-RED locally, take a look at the documentation. Here is the QUICKSTART for running Node-RED on Raspberry Pi. You can use configuration settings from local windows config if you do not see package.json in .node-red installation folder 2 things you need to install in order to start using node-red authentication: on your raspbery pi session execute following prior to start using node-red:

  • cd .node-red
  • npm install when
  • npm install path

Once you have Node-RED running, there are some "fundamental" flows that you should deploy before doing anything else. To deploy a flow, point your browser to your Node-RED configuration page, e.g., [http://127.0.0.1:1880/]. Click on the three bars in the upper-right hand corner to get the menu, select "Import > Clipboard", cut-and-paste the contents of the Flow file into the pop-up window, and click OK. Then click on the "Deploy" button.

====UPDATE====

Flows/Bluemix:

All these flows works perfectly locally and in the cloud. For local version all you need - port forwarding so your instance can be accessed from outside. This is best option to start with. Other flows below are just starting points that shows you how to use the system. Brian created schedule flow that works with blue mix monitoring - check it here:[Flows/BMeissen Sample Flows](Flows/BMeissen Sample Flows)

  1. Flows/Bluemix/winkCore.json - core flow that performs initial calls to wink servers in order to get access tocken, list of devices and subscribe itself for status updates from wink as well as other services. It also creates connection to weather api, ifttt, initialstate.com api bassed on your configuration settings.
  2. Flows/Bluemix/winkIntegration.json - creates entry points for IFTTT/tasker/etc..
  3. Flows/Bluemix/winkFreeboards.json - set of flows to generate freeboard dashboards)

... or in the Cloud

You can also run this software in the cloud. The HOWTO for the IBM Bluemix cloud explains how to install both Node-RED and Freeboard, and how to deploy the appropriate "fundamental" flows.

There are many excellent cloud platforms as a service; if you really like another, perhaps you contribute a "HOWTO" for installing Node-RED and Freeboard?

Node-RED Flows

The Flows/ directory has many examples!

Freeboard

Here is the HOWTO for how to use Freeboard with Node-RED and Wink.

Useful links

About

Node Red application for Home Automation based on WINK api for hub as well as LIFX, IFTTT.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.6%
  • Shell 3.4%