element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Forget Me Not Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Forget Me Not Design Challenge
  • More
  • Cancel
Forget Me Not Design Challenge
Blog [FMN#11] : OpenHAB @ Home (Summary)
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: vish
  • Date Created: 23 Oct 2014 9:05 AM Date Created
  • Views 821 views
  • Likes 0 likes
  • Comments 0 comments
  • iot_home_intelligent
Related
Recommended

[FMN#11] : OpenHAB @ Home (Summary)

vish
vish
23 Oct 2014

In this post I will be presenting a final wire up of the system I developed for Forget Me Not challenge. So now this is what I have at home. I have my raspberry pi hosting openHAB and running a couple of other scripts in my Living Room, beagle bone black at kitchen, Intel Galileo at bedroom and TI's Connected Launchpad for the outside devices.

 

Now the things are simple in openHAB. I have four pages in openHAB corresponding to each area. I have placed the enocean reed switches in the front door and the kitchen door as these are the only two doors providing access into the house. The enocean temperature sensors at living room and kitchen. Rocker switch is used as the universal remote control for each area, which adapts itself to control the devices in each area. Each room controller has two relays, one connected to switching main lamp in that room and other for the fan. In addition to that, raspberry pi in living room has an additional relay to switch the TV. Also BBB has a relay to control the exhauster fan at kitchen. OpenHAB has direct access to none of these devices. Whenever openHAB requires to switch one, it will send corresponding MQTT message to the room controller and room controller will in turn switch them on.

 

I tried to develop an android app for handling the MQTT based communication in the home network, but failed. I remember some body here saying - "Android can be hard!!". Anyway it was a good learning experience. For those who want to look in that direction, there is a bare bone code of an android app in Eclipse Paho project. So earlier this week I switched to my backup plan - to use "Notify My Android" App. OpenHAB has an addon to access NMA within your openHAB, so things were a lot more simple. Just setup the account in NMA, get the keys and use it with openHAB. I integrated only my reed switches to NMA system. When I'm away, if some one opens either front door or back door, I will receive a notification, except now I'm getting the notification 2 or 3 mins late. So testing this is really tough ( and boring too ).

 

For accessing my raspberry Pi from outside and hence my openHAB, first I tired to put yaler tunnel, but didn't get it working. So I switched back to simple port forwarding as it's much easier to setup though less secure. So now I have my home network online, I can connect to it by knowing it's IP address. But IP addresses change on every connection, or some times automatically on some days. So I have to find some other method for fixing this. I'll do that later.

 

Then came the challenge of using enocean gateway between my python script for rocker switch localization and getting readings from temperature sensor and reed switch. So I had to modify the python script to not only receive rocker switch radios, but also to put temperature and reed switch radios to MQTT messages and forward it to openHAB. As for those readings, I don't require a leader election, I can directly use those MQTT messages inside openHAB. With a slight hack with regular expression, now those sensor readings are in openHAN. Done!

 

Now for the forget me not part, I wanted to be get reminded if I left home turning on any of those lights. The question is how to detect the presence? I found some options like bluetooth and WiFi, but none of them appealed me as they are power hungry and I if I use that, then I may have to use another Forget Me Not App not to forget charging my phone. So decided to leave that as an open question. Anyway I have my raspberry pi online, so any time, I'll be able to check which are the devices are ON/OFF.

 

Regarding the builds, I don't have any specific hardware builds other than the relay circuits connected to room controllers. As all my room controllers are of 3v3 outputs, I used same design across all the controllers.

 

So that briefly covers what I developed for Forget Me Not Challenge.

 

Thanks folks for this wonderful journey,

vish

 

<< Prev | Index | Next >>

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube