Commit Graph

4682 Commits (7ff9aecd4e0b8772465b4054b7d0928f80f165ef)

Author SHA1 Message Date
Paulus Schoutsen 49e588deb3 Merge pull request #1381 from fabaff/template-helpers
Template helpers
2016-02-23 13:38:19 -08:00
Fabian Affolter 6b4dd64cfe Add break to fix length of lines 2016-02-23 22:06:45 +01:00
Fabian Affolter a47d6c944e Update docstrings to match PEP257 2016-02-23 21:31:38 +01:00
Fabian Affolter 582394bc3b Modify import of template and PEP257 2016-02-23 21:19:22 +01:00
Fabian Affolter 213cc920d0 Move template to helpers 2016-02-23 21:19:10 +01:00
Dan Smith 05a1e11db2 Filter out AirCam models in UVC camera platform
The older (unsupported AirCam) models behave differently and also apparently
suffer some under the last release of the NVR that supported them. Since they
are EOL and not supported by current software, filter them out so we don't
break while trying to extract an image from them.
2016-02-23 12:01:51 -08:00
Rowan Hine f8240a9cda Changed to use dictionary 2016-02-23 18:02:48 +00:00
Paulus Schoutsen d6a14a1767 Merge pull request #1379 from jaharkes/wemo_switch
Fix dispatching for regular WeMo switch devices.
2016-02-23 07:22:25 -08:00
Jan Harkes 9b0b3c474e Fix dispatching of WeMo switch devices.
I only have WeMo Link and Insight devices and assumed model names of other
devices were fairly straightforward.

But it looks like the regular WeMo switch uses 'Socket' as the model name.
2016-02-23 10:05:14 -05:00
Rowan Hine 532d807771 Add Steam sensor 2016-02-23 09:35:27 +00:00
sander 019af42e94 removed unnecessary properties. 2016-02-23 09:42:34 +01:00
Fabian Affolter 60d579af84 Update/add docstrings (PEP257) 2016-02-23 06:23:04 +01:00
Paulus Schoutsen c64da761f1 Merge pull request #1359 from balloob/template-helpers
New template helpers now, utcnow, distance, closest
2016-02-22 19:20:49 -08:00
Dan Smith 2d3d674295 Merge pull request #1376 from kk7ds/uvc-passwords-fixes-tests
UVC Fixes, features, and tests
2016-02-22 15:17:57 -08:00
Dan Smith 590512916a Add tests for camera.uvc and fix bugs found in the process
This adds tests for the uvc camera module. It's a good thing too,
because I found a few bugs which are fixed here as well:

 - Graceful handling of non-integer port
 - Failure to take the first host that works when probing host,internalHost
 - Failure to detect if neither of them actually work

This also converts the code to only call add_devices once with a listcomp.
2016-02-22 14:37:57 -08:00
Dan Smith d398832112 Make UVC cameras honor the local camera password store, if set
The NVR tells us the admin username, but not the password for the
camera. Right now, we assume the default password, which obviously
doesn't work for people that have changed it. The uvcclient library
provides a way to set the cached admin password for a camera, which
is stored in a client-specific location. We can utilize that to
grab the password, falling back to the default if it's unset. With
this, people just need to run a command per camera to set the
admin password on their systems, if it has changed.
2016-02-22 13:17:53 -08:00
sander 88e7967a7d - removed update method
- removed failing tests from test_scene
2016-02-22 22:01:05 +01:00
sander e37c232bf6 flake8 correction 2016-02-22 20:05:42 +01:00
sander fb449cbc82 first commit 2016-02-22 19:53:55 +01:00
Paulus Schoutsen 88dc7a08c4 Merge pull request #1346 from stefan-jonasson/add_for_to_conditions
Added the "for" param to the conditions as well
2016-02-22 07:49:35 -08:00
Paulus Schoutsen 7cc3b8d7b1 Merge pull request #1371 from davidedmundson/dev
Fix service documentation appearing for notifications
2016-02-22 07:37:08 -08:00
Paulus Schoutsen 09ff394abc Merge pull request #1369 from t30/test-command_rollershutter
Added command_rollershutter component
2016-02-22 07:36:14 -08:00
Paulus Schoutsen b294383f20 Merge pull request #1368 from Gerto/dev
Don't set Bitcoin wallet if not setup in configuration
2016-02-22 07:35:24 -08:00
Fabian Affolter 5bd0b5ab99 Update docstring 2016-02-22 14:43:12 +01:00
Fabian Affolter 7d9e882d52 Update docstrings to match PEP257 2016-02-22 14:42:11 +01:00
Daniel 1f842140ef Fix issue #1301 2016-02-22 13:45:01 +01:00
David Edmundson 8d5a164346 Fix service documentation appearing for notifications
We want the descriptions for notify.notify regardless of the name of the
exact notify service being called.
2016-02-22 11:14:05 +00:00
Gert cbe27d8f1a Don't set wallet if not setup in configuration
Because of problems with the Wallet part of python blockchain library (see #1242 ) , the entire Bitcoin module isn't working currently.
This change does not fix those problems but at least makes the sensor work again for people who don't need Wallet-related functionality.

It also just seems better practice to not set a wallet and call "wallet.get_balance()" when not wallet is set in configuration.
2016-02-22 11:44:00 +01:00
t30 066b569cfe Added command_rollershutter component 2016-02-22 10:43:29 +00:00
Fabian Affolter fd3ea95b82 Add docstrings, fix typos, and update docsstring for PEP257 2016-02-22 10:11:46 +01:00
Stefan Jonasson e4485dcf3d Updated structure, added more tests 2016-02-22 09:40:27 +01:00
Paulus Schoutsen 7a0c99a1d5 Update frontend 2016-02-21 23:14:36 -08:00
Paulus Schoutsen 7c15f6a4b3 Merge pull request #1332 from jaharkes/wemo_leds
Wemo leds
2016-02-21 20:52:55 -08:00
Jan Harkes afe564fb3f Move WeMo discovery into a common component 2016-02-21 22:23:00 -05:00
Paulus Schoutsen 82e11e237e Merge pull request #1268 from flyte/tcp-component-pr
Add generic TCP socket component
2016-02-21 19:21:20 -08:00
Jan Harkes 4dad40fffb Add support for WeMo LED lights. 2016-02-21 21:57:53 -05:00
Jan Harkes 368ad93eb6 Only add discovered switches instead of any WeMo device. 2016-02-21 21:57:53 -05:00
Paulus Schoutsen 92be572374 Merge pull request #1351 from tpatja/zwave_binary_sensor
ZWave binary sensor support
2016-02-21 13:57:06 -08:00
Paulus Schoutsen c77266c544 Merge pull request #1357 from w1ll1am23/update_wink_for_binary_switch_fix
Updated wink version for binary switch fix
2016-02-21 13:50:59 -08:00
Paulus Schoutsen aa748e3e48 Merge pull request #1358 from andythigpen/script-improvements
Script improvements
2016-02-21 13:49:49 -08:00
Paulus Schoutsen 3d8e9b4261 Lint fixes 2016-02-21 13:09:49 -08:00
Paulus Schoutsen 7c6dcdb082 Catch an extra error that could break util.convert 2016-02-21 11:23:16 -08:00
Paulus Schoutsen c3bb6d32aa Add closest template helper 2016-02-21 11:13:40 -08:00
Paulus Schoutsen 9f5f13644a Add template multiply test 2016-02-21 11:12:37 -08:00
Paulus Schoutsen 7805d2800c Expose current time object instead of method to retrieve (thanks @fabaff) 2016-02-21 09:32:43 -08:00
Andrew Thigpen 7dd529356a Add toggle support for scripts. 2016-02-21 11:22:38 -06:00
Paulus Schoutsen 070cee48a8 Merge pull request #1353 from balloob/assume-state
Add assumed_state to Group, MQTT Switch, MQTT Light
2016-02-21 09:19:54 -08:00
Andrew Thigpen b961b5037f Only turn on scripts that are not currently running.
Prevents an errant API call from advancing a currently executing delay
step before it should.
2016-02-21 11:11:35 -06:00
William Scanlon 3da554a198 Update wink version 2016-02-21 12:01:32 -05:00
Teemu Patja d1a4dc77d1 Disable pylint warning 2016-02-21 10:01:03 +02:00