Skip to content

Integration of Honeywell HPA250B into smartthings using Raspberry Pi and BluePi

Notifications You must be signed in to change notification settings

philippeportesppo/Honeywell_HPA250B_SmartThings

Repository files navigation

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