Commit Graph
76 Commits
Author SHA1 Message Date
Ryan Kraus a097e9caf2 Reverted a line in package.py to its previous state. 2015-09-05 04:53:44 -04:00
Ryan Kraus 34c4bb585a Fix pip installation issues.
This commit is to fix issue #325.
There were three issues with the PIP installations.

1) If multiple instances of the same platform were found, pip could
attempt to install the same dependency multiple times at once by being
run simultaneously in different processes. This would cause pip
failures due to race conditions. This has been fixed by using a thread
lock to allow only one instance of PIP to run at a time.

2) PIP would not check the target if the dependency was already met.
This would lead to PIP attempting to reinstall every dependency on
every boot. This would eventually fail because the package was already
installed, but it significantly increased boot time, especially on
Raspberry Pis.

3) PIP would not upgrade packages that were already installed. Usually,
when a version is specified to PIP, it will install the specified
version if it is not already installed, even without the \-\-upgrade
flag. This behavior did not work when using the \-\-target flag. When
using the target flag, a new install is always attempted, but nothing
will be overwritten unless the \-\-upgrade flag is also given. This
caused new packages to not be installed when their dependencies were
increased. This is fixed by defaulting towards using the
\-\-upgrade flag.
2015-09-05 04:50:35 -04:00
Ryan Kraus e7caac212d Fixed signal binding exception
Cleanly handle error for failed SIGQUIT binding. This can happen when
running in a thread.
2015-09-01 04:03:51 -04:00
Ryan Kraus 18569104fa Fixes to new Debian daemon script. 2015-09-01 03:54:59 -04:00
Ryan Kraus 7992882fa3 Cleanup PID checking logic and write PID logic. 2015-09-01 03:29:07 -04:00
Ryan Kraus 4ca8f184e6 Updated Debian daemon script. 2015-09-01 03:22:43 -04:00
Ryan Kraus 5b06e8d25e Daemon handling cleanup.
More cleanly handling whether a PID file should be checked.
Fatal Error on PID file IOError.
Pylint fix to bootstrap.
2015-09-01 02:37:52 -04:00
Ryan Kraus 1add38a195 Merge balloob/dev with rmkraus/daemon 2015-09-01 02:23:50 -04:00
Ryan Kraus ff470c8ffe Added core daemon function as flags.
Created three additional flags for the hass command:
-v -  Toggle verbose log file output
—pid-file -  Specify PID file path
—daemon -  Launch as daemon (nix only)

The core now binds to SIGQUIT on nix systems to trigger a clean
shutdown.

Modified HTTP server to write logging messages through the logging
module.
2015-09-01 02:12:00 -04:00
Ryan Kraus 83440ad718 Fixed device tracker to install scanner requirements. 2015-08-31 22:11:17 -07:00
Ryan Kraus df4afa5025 Merging balloob/dev into dev. 2015-09-01 01:03:26 -04:00
Ryan Kraus 881901f4d3 Removed bogus intro test. 2015-08-31 02:48:26 -04:00
Ryan Kraus e6ac225140 Fixed device tracker to install scanner requirements. 2015-08-30 20:22:02 -04:00
Ryan Kraus b1876d586e Fixed importing of dependency for map tracker. 2015-08-30 20:01:02 -04:00
Ryan Kraus 7dd7d7a191 Restructured conversation tests. 2015-08-30 05:04:04 -04:00
Ryan Kraus 364d85b6df Fixed remote tests. 2015-08-30 04:51:49 -04:00
Ryan Kraus 5ba5e0ffb1 Added another conversation test. 2015-08-30 04:30:19 -04:00
Ryan Kraus 10054567de Added test for conversation and introduction components. 2015-08-30 04:24:24 -04:00
Ryan Kraus bea81ddd92 Minor tweaks
Moved another import to the top of main.
Forced an exit code of 1 when there is an error initializing.
2015-08-29 23:31:33 -04:00
Ryan Kraus 4e01e7ca9b Pip requirements and fixes.
1) Reduced the flags being sent to pip.
2) Required a minimum of pip 7.0.0 for Home Assistant.
2015-08-29 23:17:47 -04:00
Ryan Kraus bfa3900e6a Updated core config directory tests 2015-08-29 22:44:59 -04:00
Ryan Kraus f5b98c86f0 Mostly PyLint and Flake8 updates.
Rewrote imports of exceptions to be from the exceptions module.
Made nmap scanner check for libnmap dependency without crashing.
Various flake8 and pylint updates.
2015-08-29 22:34:35 -04:00
Ryan Kraus 0b6358e759 Implemented comments from Paulus.
Revised main to use frontend and demo strings rather than importing
their domains.
Removed submodule validation.
Moved local library mounting to the bootstrap module and out of core.
Added requirements_all.txt for all dependencies.
Made core dependencies looser.
Small updates to setup.py.
2015-08-29 22:19:52 -04:00
Ryan Kraus 893ae15042 Changed component REQUIREMENTS to absolute versions. 2015-08-29 21:39:50 -04:00
Ryan Kraus 6fdf9b8d7c Many changes to cleanup config directory and lib installations.
Cleaned up default config directory determination.
Made bootstrap creators for HA always set config directory.
Made bootstrap creators set the local library in the Python Path.
Moved all exceptions to their own file to make imports easier.
Moved default configuration directory be in the users’ profile.
Moved pip installs to be done to a lib folder in the config directory.
Reduced requirements.txt to only the barebones reqs.
2015-08-29 21:11:24 -04:00
Ryan Kraus 18e32165a4 Cleaned up main file to remove dependency management. 2015-08-29 20:06:54 -04:00
Ryan Kraus 3839c3d0ef Created setup.py for standard installs. 2015-08-29 18:59:05 -04:00
Ryan Kraus c49cdf7ffd Pylint fixes to ISY component. 2015-08-28 20:18:54 -04:00
Ryan Kraus 936e20bdf7 Cleaned up some entities.
1) Modified device tracker entities to allow for attributes to be
overwritten with configuration data.

2) Modified ISY lights to hide brightness when off.
2015-08-28 20:17:07 -04:00
Ryan Kraus 71e60dcfe9 Fixed Issue #280 2015-08-27 22:41:12 -04:00
Ryan Kraus a23ab44a6d Removed unnecessary import in notify component. 2015-08-18 22:49:27 -04:00
Ryan Kraus b8b5ac0653 Removed unnecessary line from notify component. 2015-08-18 22:42:01 -04:00
Ryan Kraus 159411df8b Updated notifier component.
This update to the notifier component allows multiple notifiers to be
configured. In order to support this, an optional property “name” has
been added to all the notifier’s configurations. The notifier can now
be called with the service “notify.NAME”. If the name is not provided,
the service will be mapped to “notify.notify”. Because of this, this
update should be fully backwards compatible.
2015-08-18 22:28:40 -04:00
Ryan Kraus 7fcdb9b975 Updating Debian daemon script for Python Virtual Environments
Fix to init.d script that forces the correct virtual environment to be
loaded.
2015-07-12 18:44:38 -04:00
Ryan Kraus b3479a4ab6 Created init.d script
Created a Debian init.d compatible service script.
2015-07-11 00:28:37 -04:00
Ryan Kraus f3ff8ca9ca Bumped PyChromecast version in requirements
Bumped PyChromecast version to a hypothetical 0.6.9 since the newest is
already 0.6.8.
2015-07-10 00:54:29 -04:00
Ryan Kraus 1bfde8a1e5 Rolling home-assistant-js back to newest
Accidentally rolled home-assistant-js back. Brought it back to the
current version.
2015-07-10 00:34:52 -04:00
Ryan Kraus 67135a7150 Implimented Ignore CEC for Chromecasts
1) Added the ability to ignore CEC data from Chromecasts using pending
updates to PyChromecast library.
2) Modified cast device to not allow the same device to be imported
twice. This can happen when cast is setup as a media_player in the
config when the discovery component is active.
2015-07-10 00:29:07 -04:00
Ryan Kraus d1e4387997 Light update to PyISY version 1.0.5
This is a lighter update to version 1.0.5 to fix Issue #201 more
immediately.
2015-07-07 23:19:34 -04:00
Ryan Kraus 237778a8bc Update to PyISY 1.0.5
Updated Home Assistant to use PyISY version 1.0.5 to fix error when no
climate module is present as well as update HTTPS connections to use
TLS.
2015-07-07 23:04:16 -04:00
Ryan Kraus d8d92e3ff7 merge isy_dev with balloob/dev 2015-07-07 22:49:07 -04:00
Ryan Kraus 45f2f07b6d Used better method for overwritting attributes in entity. 2015-04-25 18:29:37 -04:00
Ryan Kraus be3be0478b Fixed bug in entity helper that ignored suggestions for hiding states. 2015-04-25 14:59:27 -04:00
Ryan Kraus 97bb5bcb7d Merge remote-tracking branch 'upstream/dev' 2015-04-25 14:49:02 -04:00
Ryan Kraus 8255164eda Rearranged visibility control and image control in the configuration file. Now a single generic clause can be used to customize any attribute. 2015-04-25 14:47:15 -04:00
Ryan Kraus 04a98f99b7 Updated entity tests to work with new attribute overwritting logic. 2015-04-25 01:43:03 -04:00
Ryan Kraus a95aad324f Updated a comment in the entity class. 2015-04-25 01:29:42 -04:00
Ryan Kraus f130ad6c27 Subscribed isy994 component to EVENT_HOMEASSISTANT_STOP event to clean itself up before quitting. 2015-04-25 01:10:41 -04:00
Ryan Kraus f77b3dbd0a Added decorate option to configuration file to allow a user to set custom images for different entities. 2015-04-25 00:39:35 -04:00
Ryan Kraus dc4ff25d5b 1) Upped the requirement for PyISY to version 1.0.2. 2) Omitted isy994 components from coveralls tests because it requires an external controller. 2015-04-22 23:10:51 -04:00
Ryan Kraus bd3b93f290 1) Added visibility documentation to the CONTRIBUTING.md documentation. 2) Pylint fixes to homeassistant/helpers/entity.py 2015-04-22 22:19:36 -04:00
Ryan Kraus d779662bdd Updated get_entities.py script to use argparse module. 2015-04-22 22:02:54 -04:00
Ryan Kraus 2b6edd153b Fixed copy pasta error. 2015-04-22 21:27:49 -04:00
Ryan Kraus ff3dacedc0 Moved card visibility logic out of the Entity class and into a VisibilityABC. Then made the Group class inherit the VisibilityABC. No duplication of code now. This is definitely better. 2015-04-22 21:21:50 -04:00
Ryan Kraus 8fcf814eb6 Changed visbility property in configuration.yaml to a hash instead of a list of a single hash. 2015-04-22 21:07:23 -04:00
Ryan Kraus 2b4c75543a 1) Merged with mainline dev branch. 2) Removed assumption in homeassistant/__init__.py that states are visible if not specified. This assumption is intrinsic in the JavaScript. 3) Recompiled frontend to assist merge. 2015-04-22 21:04:52 -04:00
Ryan Kraus d566a328a3 pylint fix to isy switches. 2015-04-22 00:22:48 -04:00
Ryan Kraus 99ea0dc59d Updated requirements to include PyISY. 2015-04-21 23:59:56 -04:00
Ryan Kraus 4d91c4a51b Updated contributing documentation to include details about hidding states. 2015-04-21 23:58:41 -04:00
Ryan Kraus 3b0c685679 Merge remote-tracking branch 'upstream/master' 2015-04-21 23:56:50 -04:00
Ryan Kraus 0032e4b6cf On second thought, make that script use the specified order, not a sorted order. 2015-04-18 00:30:09 -04:00
Ryan Kraus 9a2e6dcba5 Added a script for listing entities in running Home Assistant server. Usefule for creating visibility list in configuration file. 2015-04-18 00:26:40 -04:00
Ryan Kraus da4cf61a09 Forced the isy994 component to treat underscores as spaces. 2015-04-17 09:30:20 -04:00
Ryan Kraus 6b2dd69bcb Updated isy994 component to hide any device with the HIDDEN STRING in its ancestry. 2015-04-17 09:27:14 -04:00
Ryan Kraus b20424261c 1) Performed many pylint and flake8 fixes to clean up isy994 integration and hidden entities addition. 2) Added necessary code to allow groups to also be hidden. 3) Made most of the weather data from the isy994 component be hidden by default. 2015-04-15 02:05:34 -04:00
Ryan Kraus caed69d5ea Added state card hiding to the STATE view on the frontend. 2015-04-14 23:55:08 -04:00
Ryan Kraus 0334074a52 Quick fix to the comparison to validate if an entity is hidden. 2015-04-14 23:38:14 -04:00
Ryan Kraus a3d6972268 1) Added basic back-end framework for supporting hidden entities. 2) Enabled hidden suggestions in the isy994 component entities. 2015-04-14 22:57:32 -04:00
Ryan Kraus c76644323f Updated the broken link to the apple-touch icon in the frontend. 2015-04-14 01:44:39 -04:00
Ryan Kraus 83aea10f06 Added hidden_string and sensor_string properties to the isy994 configuration to allow nodes to be hidden and to be handled as sensors. Implimented the sensor_string. Any node name that contains the sensor_string in its name will be treated as a sensor instead of a switch or light. The hidden_string will be implimented later. 2015-04-13 12:56:37 -04:00
Ryan Kraus 0e9a8a7cc2 Added custom program sensors to the isy994 component. 2015-04-13 01:47:32 -04:00
Ryan Kraus 510064d9c8 Added support for the creation of custom switches using the ISY994 device. 2015-04-12 22:30:14 -04:00
Ryan Kraus 4e3ccfffbb Added not dimming Insteon devices on an ISY controller as switches. 2015-04-12 17:18:14 -04:00
Ryan Kraus f6d75f2db2 Cleaned up ISY994 light and sensor code to use the same abstract class. 2015-04-12 16:45:23 -04:00
Ryan Kraus 57f27cc97a Addded light controls to isy994 component. 2015-04-04 06:13:27 -04:00
Ryan Kraus 80f1581d6e Added ISY994 weather data as sensors. 2015-04-04 04:33:03 -04:00