Open energy monitor home Automation Hub with MQTT, nodeRED, OpenHAB & LightwaveRF

At the fully Charged live event at Silverstone earlier this month we stopped by the open energy monitor mean a chat with Glyn Hudson (check out the NIEVO video below for a taste of the show).



Glyn’s smart home configuration is based around the emonPi and employs MQTT, nodeRED, OpenHAB, LightwaveRF and Google Home.

Over to Glyn for all the good stuff…

I believe automation can play an useful role in assisting to reduce energy consumption. For example being able to control my home central heating system remotely enables me to only turn on the heating when it’s required and not have it running on a set schedule when the house is empty.

As previously mentioned in a blog post, the emonPi (running emonSD pre-built SD card) can function as a powerful home automation hub. Utilising the emonPi as a home automation hub is a good fit for a number of reasons:

It’s already running 24/7 for energy monitoring

It’s optimised for robust long term operation: the root Raspberry Pi file-system is read-only to increase SD card lifespan

It’s already connected to your local network

It’s running Debian Raspbian Jessie therefore installing extra bundles is easy and lots of support is available

Raspberry Pi 3 has plenty of space capacity

Extra radios / accessories can be connected via USB

It’s already running an MQTT server

emonSD pre-built SD card comes pre packed with the following integrations nodeRED, OpenHAB and LightWaveRF

In this post I want to share with you how I use the emonPi in my own home.

Here is a video demo using Google home to control my central heating and gadgets via MQTT:

Read on to learn how this is achieved using an emonPi and open-source software…

There are many many options when it comes to home automation and control. Where possible I prefer open-source solutions which do not depend on any third-party services. All the software services for my home system as I describe in this post runs locally on my emonPi and apart from Google home voice integration does not require an Internet connection to function. A self-hosted open-source solution has the added benefit of increased privacy and security which you are in fully in control of.

MQTT

MQTT lightweight communication protocol is used as the ‘glue’ communication layer between all the following services. See technical/MQTT section of the user guide for more info about how MQTT works on the emonPi.

Energy Monitoring

Emoncms…obviously!

Recently I have been loving using the V2 Emoncms Android app (currently in beta) which supports multiple pages (see forum thread).

Video demo Emoncms Android app V2 beta:



I have also recently enjoyed using the redesigned Emoncms apps module which have just bee released on Emoncms.org. It’s now possible to have more than one MyElectric or MySolarPV ‘app’ per Emoncms account and economy 7 split time of use tariffs are now supported (see forum thread):

Control

केन्द्रीय ताप

To control my gas central heating boiler I use an MQTT WiFi relay which also has a developed in thermostat and scheduler, although I don’t use these features, I just control directly via MQTT. The WiFi Relay has been very reliable, it’s been used daily for the past two years in my home and never once required a reboot.

Plug sockets (lights)

I use LightWave RF plugs to which I have lights and other entertainment gadgets connected e.g. stereo and chromecast. being able to switch a whole plug bank on/off has the advantage of being able to turn gadgets fully off when not in use to minimise any vampire drain.

The emonPi can control LightWave RF gadgets directly via MQTT if an RF OOk modules is fitted. See LightWave RF emonPi user Guide.

LightWave RF gadgets are not perfect, the OOK RF protocol is simplistic, unsecure, occasionally unreliable and state feedback is not available. I am considering swithcing to ESp8266 based Sonoff plug with third party MQTT firmware or EmonESP firmware.

Interface

For the past few years I have been using OpenHAB as the control interface. OpenHAB is pre-loaded onto the emonPi emonSD pre-built image. I am yet to upgrade to OpenHAB V2.0, it looks very nice. However, V1.8 has been very reputable and fits my needs. I use the OpenHAB Android app to access the interface quickly from my phone:

OpenHAB also integrates with my Pebble smartwatch which makes it super easy to turn on/off the heating while out and about:

A while back (early 2016) I dabbled with HomeAssistant, (see blog post). I was quite impressed, I have been following the project and it looks like it’s matured to be an excellent home automation platform. quit possibly a rival to OpenHAB.

Another option for an interface is NodeRED dashboard which is now officially part of the NodeRED project.

The beauty of MQTT is that it’s platform agnostic, it’s possible to have many different interfaces controlling the same control nodes.

भ्वाइस इन्टरफेस

I’ve recentlyगुगल घर आवाज अधिग्रहण स्पिकर प्राप्त, हे-पुल स्पिकरबाट सानो सहयोगको साथ एक फियरन ही ब्रिज अनुकरण गर्न को लागी एक सजिलो घर प्राप्त गर्न को लागी एक सजिलो घर प्राप्त गर्न को लागी एक सजिलो छ। समान कन्फिगरेसनले अमेजन इकोको साथ पनि काम गर्दछ। Emonpi को लागी हाव-ब्रिज कन्फिगरेसन गाईड हेर्नुहोस्।

यस पोष्टको शीर्षमा भिडियो डेमो हेर्नुहोस्।

उपकरण कन्फिगर हे-पुल वेबपेज GUI प्रयोग गरेर:

गुगल घर अनुप्रयोग सेटअप:

एकीकरण र स्वचालन

म नोभेम्बर प्रयोग गर्दछु जुन अन्य सेवाहरू बीचको भर्खरको बाहिरी तापक्रमको साथ प्राइमरी / EMAND मा पूर्व लोड गरिएको छ, मेरो फोन प्रयोग गरेर पुश सूचनाहरू (तटेटेयर सचेत) पठाउनुहोस्। यी सेवा दुवै प्री-एकीकरणले एकीकरणलाई धेरै सजिलो बनाएका छन्। नोमेड्रेड पूर्व-स्थापना गरिएको छ र EMMOMPI / EMOND मा कन्फिगर गरिएको छ। ईनमेनीमा समावेश गरिएको उदाहरण ईनथ र बाह्य तापमान डाटाबाट मौसम भूमिगतबाट MQTT र बाह्य तापमान डाटाबाट ईनथ डाटा पढिन्छ।

मसँग एक नोहेड प्रवाह पनि छ कि जीवित स्थानमा तापक्रम जब हम्मरबाट तालिम दिँदै (EMMANT द्वारा निर्धारित गरिएको बिन्दुमा पुग्छ। मैले यस गर्नको लागि wifi गुफामा प्रयोग गर्न सक्थें, जबकि बैठक कोठाको रेफरी रिलेबाट मलसेकम एनफोर्स सेन्सर चलाउनको लागि यो मेरो घरमा गाह्रो हुनेछ।

सुरक्षा र रिमोट पहुँच

रिमोट कन्ट्रोल (स्थानीय नेटवर्क बाहिरबाट) एक गतिशील dns सेवा सेवाको प्रयोग गरेर बाहिरबाट सेवाहरू प्रदान गर्न प्रयोग गर्न सकिन्छ। E.g मैले पोर्ट 80800 खोल्छु जुन स्मोपटेमा पहुँच गर्न इन्टरनेटबाट E EMMIPI मा चल्दै। Opebab को प्रमाणीकरण छ र https एक सुरक्षित जडान सिर्जना गर्न प्रयोग गर्न सकिन्छ।

वैकल्पिक रूपमा, र संभवतः राम्रो समाधान म्यूपिनाब.org सेवा प्रयोग गर्न सक्दछ रिमोट कन्ट्रोललाई अनुमति नदिनुहोस्।

गृह सहायक घर सहायक सेवाहरू स्थानीय सहायताको पहुँच गर्न टोर प्यार्सन सेवाहरू प्रयोग गर्ने एउटा उदाहरण पाएको छ।

Oponnerenonemonemone.org को भ्रमण गर्नुहोस्

ग्लेन हडसन द्वारा मूल ब्लग पोष्टबाट पुन: उत्पादन।

यो साझा गर्नुहोस्:
फेसबुक
जाउ
Reddit
रेन्क्नाइनको काम
पिटिस्ट्रष्ट
इमेज
अरु

Whatsapp
छाप्ने काम

स्काइप
Tumblr

टेलीग्राम
गोजी

Leave a Reply

Your email address will not be published. Required fields are marked *