Yes. Only the components/sensor/usps.py
file is needed to implement the change.
it still doesnt seem to trigger
should i still use a value_template?
Shouldn’t be necessary. I just did a test like this and it triggered just fine.
automation:
- alias: "Test1"
trigger:
platform: numeric_state
entity_id: sensor.usps_mail
above: 2
action:
service: input_select.select_option
data:
entity_id: input_select.test_input
option: "Above 2"
I installed 1.1.3 and now get the following error:
2017-08-02 16:06:09 ERROR (Thread-2) [homeassistant.util.package] Unable to install package myusps==1.1.2
That error is likely from your requirements_all.txt
file not being updated with the new library version. Hopefully this all gets merged into dev soon so all this manual copying can be done.
Does it require both 1.1.2 and 1.1.3?
Nope. 1.1.3 replaces 1.1.2
Anyway to rectify this in the mean time?
2017-08-02 18:54:20 ERROR (Thread-3) [homeassistant.util.package] Unable to install package myusps==1.1.2: Usage:
/srv/homeassistant/bin/python3 -m pip install [options] <requirement specifier> ...
/srv/homeassistant/bin/python3 -m pip install [options] -r <requirements file> ...
/srv/homeassistant/bin/python3 -m pip install [options] [-e] <vcs project url> ...
/srv/homeassistant/bin/python3 -m pip install [options] [-e] <local project path> ...
/srv/homeassistant/bin/python3 -m pip install [options] <archive url/path> ...
no such option: --constraint
2017-08-02 18:54:20 ERROR (MainThread) [homeassistant.setup] Not initializing usps because could not install dependency myusps==1.1.2
2017-08-02 18:54:20 ERROR (MainThread) [homeassistant.setup] Setup failed for usps: Could not install all requirements.
Editing your requirements_all.txt
file and replacing myusps==1.1.2
with myusps==1.1.3
Thanks, and now the hunt is on.
Is it possible to have the images downloaded to a temp folder and then automatically delete after a certain time?
This may help in sending notifications with attachements as @BurnsHA requested.
It’s possible, but it would deviate from the default behavior of the other camera platforms, which I don’t think is a good idea. With hass extension options like appdaemon it really shouldn’t be that much extra work to save the camera feed images locally once a day for use however you see fit.
Anyone seeing “attempted to access page before login” issues again?
I haven’t since the switch to the 1.1.3 version of the myusps library, but I admittedly haven’t been restarting HASS as much lately.
I’m seeing it every update now, even after forcing install of 1.1.3.
anyone get this working on Hass.io?? And is it planned to make it into the master branch? If so, any idea when?
According to https://github.com/home-assistant/home-assistant/pull/8679 it will be in the next release.
I’m have a Pi3 with Hassbian on .52.0. I have the USPS component installed in my config.yaml file -
usps:
username: YOUR_USERNAME
password: YOUR_PASSWORD
And I have the appropriate usps camera and two sensors (mail and package).
But I just get an ‘error loading image’ for the camera. Today was the first day I tried it out and naturally I got no mail today… But, shouldn’t it have a ‘nomail’ place card image? The configuration seems to be right, as I have packages coming and the package sensor shows those correctly.
Any help would be great! Thanks!
Sensor and Camera not working here. I do have mail today (and the last couple days)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/camera/usps.py", line 49, in camera_image
self._usps.update()
File "/usr/local/lib/python3.5/dist-packages/homeassistant/util/__init__.py", line 306, in wrapper
result = method(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/usps.py", line 80, in update
self.packages = myusps.get_packages(self.session)
File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/myusps/__init__.py", line 177, in wrapped
return function(*args)
File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/myusps/__init__.py", line 208, in get_packages
dashboard = _require_elem(response, DASHBOARD_TAG, DASHBOARD_ATTRS)
File "/home/pi/.homeassistant/deps/lib/python3.5/site-packages/myusps/__init__.py", line 89, in _require_elem
raise ValueError('No element found')