Commit graph

1044 commits

Author SHA1 Message Date
Paulus Schoutsen
00e298206e Optimize template 2 ()
* Enforce compiling templates

* Refactor templates

* Add template validator to Logbook service

* Some more fixes

* Lint

* Allow easy skipping of rfxtrx tests

* Fix template bug in AND & OR conditions

* add entities extractor

Conflicts:
	tests/helpers/test_template.py

* fix unittest

* Convert template to be async

* Fix Farcy

* Lint fix

* Limit template updates to related entities

* Make template automation async
2016-09-27 21:29:55 -07:00
Per Sandström
4c45e92116 modbus update, add error log instead of AttributeError exception () 2016-09-26 20:46:34 -07:00
Dan Cinnamon
d761b000a5 Added a dispatch call to the envisalink sensor to also get partition status updates. 2016-09-26 20:13:41 -07:00
Paulus Schoutsen
0c0feda834 Pre-compile templates ()
* Pre-compile templates

* Compile templates in numeric_state condition
2016-09-25 13:33:01 -07:00
Fabian Affolter
ad2dea939b Fix lint issues () 2016-09-23 12:20:22 +02:00
Fabian Affolter
0065dc0cd7 Update links () 2016-09-23 10:28:05 +02:00
Open Home Automation
de4c63b437 Added more configuration parameters ()
Upgraded miflora library to 0.1.9 (which is more stable)
2016-09-23 00:09:15 -07:00
tinglis1
f1caf3f2b5 Bom weather current component ()
* add bom_weather_current component

* wrong fork

* wrong fork

* Code tidy up

- fixed order of imports
- changes some of the units to be standardised

* Rename bom_weather_current.py to bom.py

* pylint changes

* lint formatting changes

* formatting

* fix logger string variable formatting

* Update .coveragerc
2016-09-21 19:26:28 +02:00
Dan Cinnamon
edf812c0ea Envisalink Fixes + Enhancements ()
* Added the ability to trigger the alarm.

* Bump version of pyenvisalink to 1.3

* Fixed an issue where the panic_type was not passed to the sub-components properly.

* Bump pyenvisalink version, and make default panic mode = police.

* Pass in event loop to pyenvisalink.

* Made the components play nicely with asyncio.

* Bump pyenvisalink to 1.6

* Bump up pyenvisalink, and better handle synchronous setup.
2016-09-20 23:51:10 -07:00
Hugo Dupras
a310599a03 Add specific icon for forecast.io sensors () 2016-09-20 22:40:10 -07:00
sam-io
de5bd26050 Email ()
* Added email component

* added email sensor component

* added doc string to test class

* fixed lint error

* fixed lint error

* rename of email component

* added another block as test fails on CI

* added retry to multi email test

* added delay to retry

* added to .coveragerc

* removed sleep from tests and fixed up stale comments
2016-09-20 00:09:14 -07:00
William Scanlon
43c395232a Sensor updates () 2016-09-20 00:05:54 -07:00
Marcelo Moreira de Mello
ae1b69430e Added support to Yahoo Finance to track the stock market within Home Assistant ()
* Added support to Yahoo Finance to track the stock market within Home Assistant

* Fixed pylint issues

* Fixed formatting issues

* Fixed pep257 issues

*   - Fixed URL link
  - Added attributes for Yahoo Finance

* Removed price sales ATTR

* Fixed lint and flake8 issues. Added attribution to Yahoo! per https://developer.yahoo.com/attribution/
2016-09-19 23:38:10 -07:00
joyrider3774
9184773f8f Emoncms feeds sensor component ()
* Add Initial version for emoncms feeds sensor

* flake8 test fixes

* pylint test fixes

* - fix bug with include_feed_id_names not assigning the name to the  element in the same postion as found in include_feed_id
- a few structure changes to have less nesting (pylint fix)
- minor other changes

* update .coveragerc

* voluptuous fixes:
- exclude_feed_id and include_feed_id Exclusive group so that only one (or none) can be specified at once
- id must be positive int
- exclude_feed_id and include_feed_id must be positive int

* Fix comment so it refers to the documentation

* use string formatting

* Remove outer try

* clean up sensors.append calls
(break them out for loop)

* multiple changes like:
- rename config value "include_feed_id" to "include_only_feed_id"
- rename config value "include_feed_id_names" to "sensor_names"
- renamed config value sensor_names is now a dictionary an can also be used when renamed config value "include_only_feed_id" is not specified
- Set default value for scan_interval using the config validation
- blank lines between default, 3rd party and own imports
- removed homeassistant.util import, it was not needed anymore

* fix extended voluptuous schema
scan_interval should not be extended to PLATFORM_SCHEMA as it was already in the schema by config_validation helper so i should not add / change it. It was also causing problems reading the value from the config.

* Use Home Assistant polling

* remove statement that can never happen

* Guard clause

* Reduce instance variables
2016-09-17 23:34:24 -07:00
Paulus Schoutsen
4076ccf639 Use setup_component in tests ()
* Alarm Control Panel Manual - use setup_component

* Update automation - zone tests

* Update climate - demo tests

* Update climate - generic thermostat tests

* Update cover - command line tests

* Update cover - demo tests

* Update device tracker tests

* Update device tracker - owntracks tests

* Update fan - demo tests

* Update garage door - demo tests

* Update light tests

* Update lock - demo tests

* Update media player - demo tests

* Update notify - command line tests

* Update notify - demo tests

* Update notify - file tests

* Update notify - group tests

* Update sensor - mfi tests

* Update sensor - moldindicator tests

* Update sensor - mqtt room tests

* Update switch - command line

* Update switch - flux

* Update switch tests

* Update scene tests

* Fix wrong default port for mfi switch
2016-09-17 10:29:58 -07:00
Daniel
6f840de1d2 fix style in tellstick sensor 2016-09-14 11:58:26 +02:00
Fabian Affolter
d029861c93 Use voluptuous for Tellstick ()
* Migrate to voluptuous

* Update tellstick.py
2016-09-13 23:29:15 -07:00
Jeff Wilson
7724cb9eb4 Fix octoprint sensor ()
* Fix non-temperature sensors for octoprint

* Fix double space in octoprint temperature names

* Fix tox linting errors
2016-09-13 23:10:49 -07:00
Pascal Vizeli
b78e98702a Update yahooweather 0.8 / change request time () [Breaking change] 2016-09-13 23:04:26 -07:00
Open Home Automation
0c7c85dbfe Miflora ()
* First version of the MiFlora sensor (not yet finished)

* First workign version

* Added some documentation
Get name from sensor, if not defined

* Ignore IOError

* Added force_update option

* Updated comments

* Renamed fertility to conductivity (what it really is)

* MiFlora library update

* Updated helper files

* Formatting

* Fixed pylint errors

* Removed default from monitored conditions

* Removed KeyError handling as a KeyError should never be raised

* Added a return when no data is received

* emoved unnecessary return statement

* Changed default name

* Changes quotes and string operation ( @Teagan42 )

* - number of samples for median calculation is now configurable
- set state to None if no data could be polled from sensor

* Bugfix in library
more logging

* Fixed miflora version number
2016-09-13 22:37:57 -07:00
Heiko Rothe
8da85d7a91 Added away timeout setting for idle devices () 2016-09-13 20:34:59 -07:00
David Baumann
cb3ab1e873 Implement Sensor for KNX Platform ()
* Added Sensor Support for KNX Devices

Added Sensor for KNX Group Addresses
- Temperature
- Wind Speed
- Illuminance(LUX)

Mostly to fetch from a KNX Wetterstation

* Some pylint,flake8 fixes

* Pydoc Fixes

* Fix Coverage Ordering

* Refactor KNX Sensor

Refactor to Idea from @usul27 and added Minimum Maximum

* Removed Measurement Untis from const.py

Removed needed Measurement Units from const.py and add it to
sensor\knx.py

* Change .coveragerc

* Add as Requested from @Teagan42 the new Type Names

Additional add CONF_MINIMUM and CONF_MAXIMUM

* Added Changes as Requested from @Teagan42

* Fixed the Merge Conflict, Hopefully i done it rigth :-)

* Fixed Styling
2016-09-13 18:21:43 -07:00
Pascal Vizeli
1697a8c774 SleepIQ component with sensor and binary sensor platforms ()
Original from 
2016-09-14 00:11:50 +02:00
Per Sandström
ca646c08c2 Modbus component refactoring - sensors and switches () 2016-09-13 22:47:44 +02:00
Pascal Vizeli
812dc99073 fix xbox live entity id () 2016-09-13 21:27:43 +02:00
Heiko Rothe
240cb9b8f0 Minor naming fix () 2016-09-12 16:58:49 +02:00
Fabian Affolter
515c4773f3 Use voluptuous for netatmo ()
* Migrate to voluptuous

* Switch back to archive (reverting )
2016-09-11 21:27:58 +02:00
Teagan Glenn
05a3b610ff Add ISY programs and support for all device types ()
*  ISY Lock, Binary Sensor, Cover devices, Sensors and Fan support
* Support for ISY Programs
2016-09-11 20:18:53 +02:00
William Scanlon
58c0990508 Convert rgb to hsb for Wink Osram light 2016-09-11 10:45:04 -04:00
Fabian Affolter
d48ed41122 Use constants () 2016-09-11 09:24:07 +02:00
Fabian Affolter
cce3e284d7 Use voluptuous for Neurio ()
* Migrate to voluptuous

* Migrate to voluptuous
2016-09-11 09:23:33 +02:00
Paulus Schoutsen
b8251b084a Fix bloomsky platform discovery () 2016-09-10 09:12:24 -07:00
Pascal Vizeli
e87da765c5 cleanup Homematic code ()
* cleanup old code

* cleanup round 2

* remove unwanted platforms
2016-09-09 19:33:12 +02:00
Fabian Affolter
545329174d Pi-Hole statistics sensor ()
* Add Pi-Hole sensor

* Update docstrings and remove print()

* Use None for payload
2016-09-09 17:10:46 +02:00
Fabian Affolter
911231afc1 Use constants and update ordering () 2016-09-09 08:37:30 +02:00
Nolan Gilley
1cace5782c fastdotcom from pypi () 2016-09-08 18:26:50 -06:00
Fabian Affolter
94e3986d54 Use constants and update ordering () 2016-09-08 16:26:54 +02:00
Fabian Affolter
32c234ffcc Add linux battery sensor () 2016-09-07 16:32:35 +02:00
Fabian Affolter
6a837f3aad Migrate to voluptuous () 2016-09-06 18:28:55 -07:00
Marcelo Moreira de Mello
fb719f530a Upgraded fitbit to version 0.2.3 which fixed oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired) () 2016-09-06 18:23:08 -07:00
Per Sandström
d53d8f5ea9 thread safe modbus () 2016-09-06 18:21:38 -07:00
Fabian Affolter
7aafa309c9 Use voluptuous for Verisure ()
* Migrate to voluptuous

* Update type and add missing config variable
2016-09-06 18:18:34 -07:00
Dan Smith
f55095df83 Fix mFi sensors in uninitialized state ()
If mFi sensors are identified but not fully assigned they can
have no tag value, and mficlient throws a ValueError to signal this.
This patch handles that case by considering such devices to always
be STATE_OFF.
2016-09-06 18:04:20 -07:00
Ardetus
fa8ed4de41 Improve 1-Wire device family detection and error checking. Use volupt… ()
* Improve 1-Wire device family detection and error checking. Use voluptuous

* Fix detection of gpio connected devices
2016-09-06 14:50:02 -06:00
Fabian Affolter
88d62bd935 Upgrade gps3 to 0.33.3 () 2016-09-06 08:53:21 -06:00
Fabian Affolter
9530c7366b Upgrade psutil to 4.3.1 () 2016-09-06 08:51:51 -06:00
Fabian Affolter
4638696f8c Migrate to voluptuous and upgrade uber_rides to 0.2.5 () 2016-09-05 11:33:35 -06:00
Heiko Rothe
29870b301e Added scale and offset to the Temper component ()
🐬
2016-09-04 10:37:10 -06:00
Fabian Affolter
b4c8d10dbc Migrate to voluptuous ()
🐬
2016-09-04 10:32:12 -06:00
Fabian Affolter
cd67368bb7 Migrate to voluptuous ()
🐬
2016-09-04 10:27:19 -06:00