[Release] Honeywell HPA250B v1.2 (Air purifer) with UPNP discovery support

devicetype
smartapp
honeywell

(PPO16) #1

Hi everyone,
I updated my Honeywell HPA250B integration in order to implement a UPNP detection of the Raspberry Pi and remove the manual input of the parameters in the devicehandler.
Now you just have to install the Honeywell HPA250B UPnP Service Manager and get your device installed automatically.
This release comes with the pre-filter usage indicator (works) and prefigures the future EPA usage indicator (I didn’t find the parameter for this one yet in the BT traffic, so as soon as I’ll identify it, I put the code to manage it).
The device view is unchanged and shares as usual the AirMentor air quality indications as well as weather underground equivalent information when available.
More at:


[RELEASE] Honeywell HPA250B Air Purifier integration (through Raspberry Pi)
(Mitchell Lu) #2

@Philippe_Portes

Try to implement the solution, Some question and update.

  1. execute below command but got Fail
    sudo python hpa250b_agent.py d0:b5:c2:93:be:7e 12345 wlan0 0&
    [1] 953
    pi@raspberrypi2:~ $ Traceback (most recent call last):
    File “hpa250b_agent.py”, line 23, in
    import netifaces as ni
    ImportError: No module named netifaces

2.It seem you forgot tell us to put 2 files ssdp.py
and upnp_http_server.py at /home/pi/lib in this article, without these 2 files , It can not start the below command
python /home/pi/ssdp_server_hpa250b.py&


(PPO16) #3

Looks like you really have something not working on the netifaces. Can you make sure the version is netifaces (0.10.6) and python is 2.7?

[UPDATE]

Can you try install netifaces directly by:

pip install netifaces

Answer should be:

Collecting netifaces
Installing collected packages: netifaces
Successfully installed netifaces-0.10.6

For some reasons, python -m pip install netifaces seems not working anymore on my side

Good finding, thanks, I fixed it now in the readme


(Mitchell Lu) #4

@Philippe_Portes

Here what I have done and result

Python version
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170124] on linux2

pi@raspberrypi2:~ $ pip install netifaces
Collecting netifaces
Installing collected packages: netifaces
Successfully installed netifaces-0.10.6

pi@raspberrypi2:~ $ sudo python /home/pi/hpa250b_agent.py d0:b5:c2:93:be:7e 12345 wlan0 0&
[1] 895
pi@raspberrypi2:~ $ Traceback (most recent call last):
File “/home/pi/hpa250b_agent.py”, line 23, in
import netifaces as ni
ImportError: No module named netifaces