Commit Graph

1540 Commits (984f01359c3acd745710b3fdf88b077f4265d788)

Author SHA1 Message Date
Fabian Affolter 0fb69c5ce4 Conditions are required 2015-09-08 16:33:13 +02:00
Fabian Affolter 922da1da44 Update docstring ('- type:' was removed a while ago) 2015-09-08 16:31:30 +02:00
Fabian Affolter da508236e6 Remove '- type:' from configuration 2015-09-08 13:05:58 +02:00
Paulus Schoutsen 985f20d281 Merge pull request #335 from rhooper/utf-8-in-config
Handle UTF-8 in config file
2015-09-07 15:50:06 -07:00
Fabian Affolter 914a6dff5e Update docstring (config file) and attempt to honor PEP0257 2015-09-07 19:40:09 +02:00
Fabian Affolter 78a555faf5 Update docstring (config file) and attempt to honor PEP0257 2015-09-07 19:39:16 +02:00
Fabian Affolter e824bc4c55 Update docstring (config file) and attempt to honor PEP0257 2015-09-07 19:21:33 +02:00
Fabian Affolter 514b8eddb9 Update docstring (config file) and attempt to honor PEP0257 2015-09-07 19:19:11 +02:00
Fabian Affolter 1ed8e58679 Update docstring (config file) and attempt to honor PEP0257 2015-09-07 19:05:37 +02:00
Fabian Affolter e55922eb9e Update docstring (config file) and attempt to honor PEP0257 2015-09-07 18:55:58 +02:00
Fabian Affolter e196c136c1 Update docstring (config file) and attempt to honor PEP0257 2015-09-07 18:38:49 +02:00
Fabian Affolter 1d910f3a84 Update docstring (config file) and attempt to honor PEP0257 more 2015-09-07 18:35:00 +02:00
Fabian Affolter f9cecdee28 Update docstring (config file) and attempt to honor PEP0257 2015-09-07 18:26:20 +02:00
Roy Hooper d0cda964ac Handle UTF-8 in config file. 2015-09-07 10:56:16 -04:00
sfam 0f68b9d22b Add optional QoS config parameter to MQTT sensor and switch (pylint) 2015-09-07 00:28:45 +00:00
sfam c5fc5cba61 Add optional QoS config parameter to MQTT sensor and switch 2015-09-07 00:16:31 +00:00
Fabian Affolter 1a88e48986 add throttle and other minor improvements 2015-09-06 23:41:01 +02:00
MakeMeASandwich c7a8f5d6ca media_player: add Denon remote support 2015-09-06 12:07:12 +02:00
Fabian Affolter 72426e08b8 update errror message 2015-09-05 13:26:29 +02:00
Fabian Affolter 1c3fa89914 add arest sensor 2015-09-05 13:09:55 +02:00
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
Paulus Schoutsen 97eb84919b Merge pull request #324 from andythigpen/log-rotate
Add option to rotate log file daily.
2015-09-05 01:45:53 -07:00
Andrew Thigpen 2e636f598e Add option to rotate log file daily.
Adds a command line option to rotate the log daily at midnight and
retain up to the specified amount of days.
2015-09-04 19:52:59 -05:00
Paulus Schoutsen 03d187eceb Merge pull request #323 from andythigpen/skip-pip
Add option to skip pip install on startup.
2015-09-04 16:06:30 -07:00
sfam bb9c50d0f1 Merge pull request #318 from sfam/dev
Support for trigger Maker IFTTT
2015-09-04 23:57:15 +01:00
Andrew Thigpen 6519e589b5 Add option to skip pip install on startup.
Since the requirements only change when the software is updated,
this adds a command line switch to disable pip installs on
startup.  The default behavior is maintained when the switch is
not specified.  Skipping pip helps a lot with startup on older RPi
hardware.
2015-09-04 16:50:57 -05:00
sfam 5b7dab6556 Support for trigger Maker IFTTT (fix pylint) 2015-09-04 22:42:11 +01:00
sfam f9ad12920e Support for trigger Maker IFTTT (fix pylint) 2015-09-04 22:14:28 +01:00
sfam 56151a07a5 Support for trigger Maker IFTTT (pyfttt 0.3) 2015-09-04 21:58:09 +01:00
Paulus Schoutsen 450ca842ca Update version number to 0.7.2-pre 2015-09-04 12:58:03 -07:00
zyell d10cecde7c Upstream bug fixed that caused error adding some nest thermostats 2015-09-04 12:00:47 -07:00
sfam 14fc4f6f99 Support for trigger Maker IFTTT (fix pylint) 2015-09-04 16:55:55 +01:00
sfam fd032cf6b7 support for trigger Maker IFTTT 2015-09-04 16:28:58 +01:00
Paulus Schoutsen 97e19908be Merge pull request #308 from nkgilley/actiontec
add support for home_interval variable to actiontec component
2015-09-02 12:51:53 -07:00
Nolan Gilley b9b751d234 fix for last_results 2015-09-02 12:00:20 -04:00
Nolan Gilley 5533618bd2 fix comments for home_interval 2015-09-02 11:48:36 -04:00
Nolan Gilley 5b643a8106 fixes for Paulus' comments. 2015-09-02 11:46:09 -04:00
Michaël Arnauts 5099fb7680 Don't try to parse other entries in client list since they can be empty and are not used anyway. 2015-09-01 21:13:39 +02:00
Nolan Gilley d2a13da930 pylint fix 2015-09-01 15:09:41 -04:00
Nolan Gilley 97076f1ff8 add support for home_interval variable 2015-09-01 14:43:14 -04:00
Paulus Schoutsen 03ceb667ba Hotfix for nmap -> v7.1 2015-09-01 08:50:45 -07:00
Paulus Schoutsen abb8958775 Setup.py fixes 2015-09-01 01:56:13 -07:00
Paulus Schoutsen 53fb46b44b Merge pull request #304 from rmkraus/daemon
Fixed signal binding exception
2015-09-01 01:14:22 -07: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
Paulus Schoutsen c1f172f33a Merge pull request #303 from rmkraus/daemon
Updating Daemon Code
2015-09-01 00:58:03 -07: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
Paulus Schoutsen 58afbecd05 Speed up tests 2015-09-01 00:18:26 -07: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
Paulus Schoutsen a34b00bc9c Style fix for device tracker 2015-08-31 22:20:24 -07:00
Ryan Kraus 83440ad718 Fixed device tracker to install scanner requirements. 2015-08-31 22:11:17 -07:00
Paulus Schoutsen 0987a84bf4 Merge pull request #300 from balloob/nmap-fix
Migrate nmap_tracker to use different nmap lib
2015-08-31 22:06:32 -07:00
Ryan Kraus df4afa5025 Merging balloob/dev into dev. 2015-09-01 01:03:26 -04:00
Paulus Schoutsen b41706efe3 Make nmap work in Docker 2015-08-31 22:01:45 -07:00
Paulus Schoutsen 9eefa67035 Add Python 3.4 check back 2015-08-31 08:53:59 -07:00
Paulus Schoutsen 053e2c2ebc Update frontend with latest changes 2015-08-31 08:40:03 -07:00
Paulus Schoutsen 6c213f6401 Merge pull request #302 from michaelarnauts/dev
Add Aruba Access Point device tracker
2015-08-31 08:38:08 -07:00
Paulus Schoutsen 74303e4be8 Merge pull request #296 from pavoni/feature/enhance_wemo
Feature/enhance wemo
2015-08-31 08:32:20 -07:00
pavoni 794a11db21 Remove debug statements! 2015-08-31 16:33:12 +01:00
pavoni 93cd7bfc5d Split comment to keep line short 2015-08-31 15:19:04 +01:00
pavoni 3256552675 Fix bug, use constants for states. 2015-08-31 13:12:17 +01:00
pavoni 54dd09df29 Fix typos 2015-08-31 12:13:53 +01:00
pavoni 5ed6987067 Refactor wemo standby state slightly 2015-08-31 11:07:52 +01:00
Michaël Arnauts 12ead04faa Add Aruba Access Point device tracker 2015-08-31 11:36:12 +02:00
Paulus Schoutsen 78826648e3 style + dependency fix 2015-08-31 00:44:59 -07:00
Paulus Schoutsen ffac067be8 Migrate nmap_tracker to use different nmap lib 2015-08-31 00:29:41 -07:00
Paulus Schoutsen 9acf3db435 Improved console output for new users 2015-08-30 21:24:10 -07:00
Paulus Schoutsen 64fff48021 Allow spaces in group setup string 2015-08-30 20:44:38 -07:00
Paulus Schoutsen 98b0367249 Upgrade frontend 2015-08-30 17:54:18 -07: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
Paulus Schoutsen 1958dfd0c1 Bugfix release frontend 2015-08-30 15:45:26 -07:00
Paulus Schoutsen fb4121d4b4 Fix components being loaded twice 2015-08-30 15:08:03 -07:00
Paulus Schoutsen 4cadc7df96 Update demo component 2015-08-30 15:08:03 -07:00
Paulus Schoutsen a8b932223f Prevent init screen from shifting 2015-08-30 15:08:03 -07:00
Paulus Schoutsen 335eb10d11 Merge pull request #295 from renekliment/mpd-pause-fix
fixes MPD play/pause
2015-08-30 14:55:20 -07:00
pavoni 028551784a Update pywemo to 0,3 2015-08-30 22:50:08 +01:00
pavoni bfbaaa8e9f Merge remote-tracking branch 'balloob/dev' into feature/enhance_wemo 2015-08-30 22:47:49 +01:00
René Kliment 62f6576e19 fixes MPD play/pause 2015-08-30 16:11:44 +02:00
René Kliment 41011f0c95 support for MPD password authorization 2015-08-30 15:53:40 +02:00
Paulus Schoutsen 9ecac9e934 Upgrade media_player.cast dependency 2015-08-30 01:09:11 -07:00
Paulus Schoutsen 81466246cf Add --version command line argument 2015-08-30 00:59:27 -07:00
Paulus Schoutsen fc6613ffb1 Fix documentation in __main__ 2015-08-29 23:35:19 -07:00
Paulus Schoutsen 3960a465f1 Add conversation and introduction to demo.py 2015-08-29 23:21:26 -07:00
Paulus Schoutsen a20ab24ba5 Remove unused pip constant 2015-08-29 23:08:33 -07:00
Paulus Schoutsen fcee2c6d33 Remove unused file 2015-08-29 23:02:14 -07:00
Paulus Schoutsen a5a1f30798 Make launch more smooth 2015-08-29 23:02:07 -07:00
Paulus Schoutsen 5aa8814a67 Merge pull request #289 from rmkraus/pip_updates
Update dependency installs and prepare for pip deployment
2015-08-29 22:11:20 -07:00
Paulus Schoutsen 7343e33063 Some more frontend bug fixes 2015-08-29 22:02:19 -07: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
Paulus Schoutsen b750457afa Bugfixes frontend 2015-08-29 20:11:27 -07: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
Paulus Schoutsen 75b3cc046d Update frontend with latest changes 2015-08-29 18:17:21 -07: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
pavoni c3a9db0a37 Add defult methods to base class for switch_state and sensor_state 2015-08-29 20:32:46 +01:00
Paulus Schoutsen 0a2652630f Frontend: Style loading page like login form 2015-08-29 12:01:37 -07:00
Paulus Schoutsen 4b31a22a1c Merge pull request #286 from rmkraus/entity_cleanup
Entity cleanup
2015-08-28 17:25:51 -07: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
Paulus Schoutsen 6b241f8600 Merge pull request #282 from sfam/dev
Initial support for THOMSON routers
2015-08-28 17:08:03 -07:00
pavoni 2a0d459722 Fix blank line regression 2015-08-29 00:27:28 +01:00
pavoni dfae1a44a6 Add standby state to WeMo Insight Switch, and add WeMo Maker 2015-08-28 23:11:55 +01:00
MakeMeASandwich 3f4d5eae1c work around build failures also on non-RPi/BB-machines 2015-08-28 18:14:13 +02:00
MakeMeASandwich 76a8bd3969 Add support for Adafruit temperature/humidity sensors 2015-08-28 14:42:41 +02:00
sfam 4ef4aa2095 fix pylint warnings 2015-08-28 00:09:24 +01:00
sfam 1aef768ff0 Initial support for THOMSON routers 2015-08-28 00:02:26 +01:00
Fabian Affolter e0db473294 update dnspython 2015-08-27 14:26:06 +02:00
Fabian Affolter 387769edff add dnspython 2015-08-27 14:16:29 +02:00
Paulus Schoutsen a98ecb6bcc Frontend: material design + introduction card 2015-08-27 01:06:41 -07:00
Paulus Schoutsen ba7b9c625e Add an introduction component to support first usage 2015-08-27 01:06:41 -07:00
Paulus Schoutsen e2cfe2a7d2 Merge pull request #278 from sfam/dev
New RPi_GPIO sensor and switch improvements
2015-08-26 08:40:54 -07:00
Paulus Schoutsen 1cb6077e36 Bugfixes for frontend 2015-08-26 08:39:29 -07:00
sfam 9811869111 fix line too long 2015-08-26 11:27:27 +01:00
sfam 6b3b000822 quick fix 2015-08-26 11:22:06 +01:00
sfam c8b88219b7 rename config parameter to "invert_logic" 2015-08-26 11:03:06 +01:00
Paulus Schoutsen 884af889a4 Merge pull request #268 from nkgilley/actiontec
device_tracker component: Actiontec MI424WR Verizon FiOS Router
2015-08-25 21:59:38 -07:00
zyell e15eb90b33 Have thermostat class make all necessary unit conversions 2015-08-25 17:52:40 -07:00
zyell 6647894c36 updated nest to use helper method and updated requirements 2015-08-25 17:52:40 -07:00
zyell c12b7e70d9 Updated to support Nest API changes and fix set_temp and away_mode and pull in new required python-nest version 2015-08-25 17:52:40 -07:00
sfam 930036272b fix pylint warnings 2015-08-26 00:15:57 +01:00
sfam c194121da6 fix pylint warnings 2015-08-26 00:11:07 +01:00
sfam cfc2232c22 fix pylint warnings 2015-08-26 00:02:52 +01:00
sfam ab5a569922 Add RPi GPIO sensor 2015-08-25 23:24:36 +01:00
sfam 0a9d82fe6f Fix RPi_GPIO switch and add extra parameters 2015-08-25 23:23:51 +01:00
Nolan Gilley bc5a7564b1 fix formatting 2015-08-25 10:09:47 -04:00
Nolan Gilley 047b4abd82 Fix get_device_name and get_actiontec_data 2015-08-25 09:39:00 -04:00
Paulus Schoutsen 917db18b29 Fix netgear username/password combo 2015-08-24 23:32:07 -07:00
theolind a7889ef628 Automation component now supports YAML lists for config key service_entity_id 2015-08-24 21:19:47 +02:00
Paulus Schoutsen 05df84d04f Frontend bugfix url-sync 2015-08-23 22:45:00 -07:00
Nolan Gilley 93bd238be5 add return None for get_actiontec_data 2015-08-24 00:27:26 -04:00
Paulus Schoutsen a419509893 More bugfixes frontend 2015-08-23 19:47:51 -07:00
Paulus Schoutsen d45a7e2ba4 Update demo data to show more features 2015-08-23 19:46:18 -07:00
Paulus Schoutsen 6338f387d2 Bugfixes for frontend 2015-08-23 17:20:23 -07:00
Paulus Schoutsen 35489998df Allow for Netgear router discovery 2015-08-23 17:20:09 -07:00
Paulus Schoutsen e917479fba Update netdisco to latest version 2015-08-23 17:18:52 -07:00
Paulus Schoutsen 517d4b35ed Update Cast dependency to latest version 2015-08-23 17:18:21 -07:00
Paulus Schoutsen d69bb8db6e Frontend: fix sensor label and menu button 2015-08-23 10:20:54 -07:00
Paulus Schoutsen b79d0f5404 Fix discovery and wemo 2015-08-23 10:06:54 -07:00
Paulus Schoutsen 387bdd4a30 Merge pull request #273 from balloob/UI2015
Initial UI revamp
2015-08-23 01:35:48 -07:00
Paulus Schoutsen 33b007b7b4 Initial UI revamp 2015-08-23 01:33:19 -07:00
Paulus Schoutsen 584e67a6d4 Merge pull request #270 from sfam/dev
Add MQTT switch and sensor
2015-08-22 12:34:36 -07:00
sfam d0c674b756 update 2015-08-22 16:10:29 +01:00