Giter VIP home page Giter VIP logo

honeywell_hpa250b_smartthings's Introduction

Integration of Honeywell HPA250B into smartthings using Raspberry Pi and BluePi

Hardware needed:

  • Honeywell HPA250B (Bluetooth enabled)
  • Raspberry Pi 3 rev 2
  • Raspberry configuration:

  • Bluez (http://www.elinux.org/RPi_Bluetooth_LE)
  • BluePy (https://github.com/IanHarvey/bluepy)
  • requests (http://raspberrypi-aa.github.io/session4/requests.html)
  • netifaces (python -m pip install netifaces)
  • Assign static IP address. Port 12345 will be used between Raspberry and SmartThings Hub.
  • Put in /home/pi the python script ssdp_server.py (this file uses wlan0 as interface. You can change the code to use eth0 or other)
  • Create a folder "lib" in /home/pi
  • Put in /home/pi/lib the 2 files ssdp.py and upnp_http_server.py.
  • This is mandatory the 2 files are in a lib folder and the lib folder at the same location as ssdp_server.py
  • Command line for py script on Raspberry Pi: sudo python hpa250b_agent.py [mac address] [port] [inet] [hci port #] &

    Example: sudo python hpa250b_agent.py fe:ed:fa:ce:da:ad 12345 wlan0 1 &

  • SSDP UPnP Server: python ssdp_server_hpa250b.py &
  • Configuration SmartThings:

    Install the Honeywell HPA250B UPnP Service Manager from the app Smartapps -> myApps after you published it for yourself

    Search for the Raspberry, select it, save. The Device will be created automatically.

    Pollster

    Configure Pollster to frequently poll the HPA250B notifications in case you plan to use the device panel. I will work later on pushing the notification to SmartThings Handler. For now, the changes done on the device are either refreshed when a command is sent from the SmartThings app or when pollster polls the refresh. I use 1 minute pollster refresh on my side for now".

    Hope you like it! Support via PayPal

    General architecture

    honeywell_hpa250b_smartthings's People

    Contributors

    philippeportesppo avatar

    Stargazers

     avatar  avatar  avatar  avatar

    Watchers

     avatar  avatar  avatar

    Forkers

    muz classicvalues

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google โค๏ธ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.