Commit Graph

3894 Commits (60b427accccc0f7c0bda5ea0391d2dca8f41cbd1)

Author SHA1 Message Date
Jon Maddox 9fe17423ea pass allow_unreachable for callback 2016-03-15 10:37:47 -04:00
Jon Maddox b7b34b280f just pass them in 2016-03-15 10:27:56 -04:00
Jon Maddox 971fe8bc7b style 2016-03-15 10:27:46 -04:00
Jon Maddox 95d5c456d7 ignore unreachable state if opted in 2016-03-15 10:15:29 -04:00
Jon Maddox dd33831cb1 pass allow_unreachable all the way down the line 2016-03-15 10:15:10 -04:00
Jon Maddox 5abff70a87 read in `allow_unreachable` config value 2016-03-15 10:13:57 -04:00
Paulus Schoutsen d28116f2bf Update frontend 2016-03-14 23:55:52 -07:00
Paulus Schoutsen cde05b91ce Better netgear logging 2016-03-14 21:12:42 -07:00
Paulus Schoutsen 663e4d57d9 Merge pull request #1546 from persandstrom/input_slider
input slider
2016-03-14 20:26:34 -07:00
Paulus Schoutsen cf285e0a0a Merge pull request #1548 from bradsk88/wink063
Upgrading python-wink to 0.6.3
2016-03-14 20:16:55 -07:00
Paulus Schoutsen dd607ea84a Merge pull request #1540 from balloob/slowtests_rfxtrx
Fixed close connection issue with rfxtrx device and update rfxtrx lib
2016-03-14 19:09:15 -07:00
Paulus Schoutsen b4458b7f52 Merge pull request #1538 from balloob/script-allow-template-service
Remove support for old deprecated script call service config
2016-03-14 19:05:34 -07:00
bradsk88 8a6cc49438 Upgrading python-wink to 0.6.3
This corrects a bug where multi-sensors' internal states were rendered null when downloading state updates from the Wink API.
2016-03-14 19:16:54 -06:00
Per Sandström 2bdad928d0 input slider 2016-03-14 22:03:30 +01:00
Paulus Schoutsen 3e3d1ae9de Merge pull request #1542 from balloob/fix_race_condition
Handle Wemo startup race condition.
2016-03-14 07:47:50 -07:00
pavoni fe2adff017 Handle startup race condition. 2016-03-14 10:29:12 +00:00
pavoni e5c8dd03e1 Catch exception common during startup. 2016-03-14 10:10:38 +00:00
Daniel d6344d6492 Fixed close connection issue with rfxtrx device and update rfxtrx lib 2016-03-14 08:33:59 +01:00
Paulus Schoutsen 399fda079f Merge pull request #1539 from srcLurker/zwave-heal
Enable openzwave's network heal and soft reset.
2016-03-13 22:42:49 -07:00
Paulus Schoutsen 6bc3e0bb58 Merge pull request #1530 from balloob/content-length
Add content-length header to http resonses
2016-03-13 22:32:59 -07:00
Paulus Schoutsen 54b60c6564 Merge pull request #1531 from balloob/cleanup-automation
Remove support for old deprecated automation config
2016-03-13 22:32:48 -07:00
Paulus Schoutsen 61b387cd0b Script: fix template service calls and remove old config support 2016-03-13 22:29:36 -07:00
Charles Spirakis b7044a79b2 Enable openzwave's network heal and soft reset.
Makes Zwave's network heal and the controller's soft reset
commands available as service calls. They can be used
in automation to help keep the zwave netwrok healthy.

For example:

automation:
 alias: At 2:35am, heal problematic zwave network routes
 trigger:
   platform: time
   after: '2:35:00'
 action:
   service: zwave.heal
2016-03-13 21:48:07 -07:00
Paulus Schoutsen 368668784a Merge pull request #1534 from balloob/allow_entry_passive_zones
Allow entry into passive zones.
2016-03-13 15:58:42 -07:00
Paulus Schoutsen 7099030cd7 Merge pull request #1529 from stefan-jonasson/tellstick-rewrite
Rewrite of the tellstick module. It now uses a common base for all sh…
2016-03-13 15:56:54 -07:00
Stefan Jonasson eb9ed5ccfe Rewrite of the tellstick module. It now uses a common base for all shared functionality.
The rewrite addresses a problem with the tellstick hardware dropping
commands when too many simultaneous calls is being made from HA. Also fixes a bug when the dim level was changed externally.
This breaks previous configurations.

The new config for tellstick is

```yaml
tellstick:
  signal_repetitions: X
```
Lights and Switches are detected automatically.
Sensors work like before because they do not share any functionality with the other devices and they also needs a complete other configuration.
2016-03-13 19:28:42 +01:00
pavoni fc455a1047 Allow entry into passive zones. 2016-03-13 18:01:29 +00:00
Paulus Schoutsen 956f6056f9 Remove support for old deprecated automation config 2016-03-13 00:00:05 -08:00
Paulus Schoutsen f8d2da2ace Add content-length header to http resonses 2016-03-12 23:41:00 -08:00
Paulus Schoutsen 8386bda4e4 MQTT: Start embedded server if no config given 2016-03-12 21:42:47 -08:00
Paulus Schoutsen 13d7f742a7 Add thread names 2016-03-12 16:54:31 -08:00
Paulus Schoutsen b67964274b Version bump to 0.16.0.dev0 2016-03-12 11:29:42 -08:00
Paulus Schoutsen 2410942fd0 Version bump to 0.15 2016-03-12 11:23:43 -08:00
Paulus Schoutsen 2a75c6fcf6 Update frontend build scripts for pep257 2016-03-12 10:52:48 -08:00
Paulus Schoutsen 159e287959 Update frontend 2016-03-12 10:42:07 -08:00
Paulus Schoutsen a01111ae56 Merge pull request #1457 from fabaff/sensor-classes
Add support for sensor classes
2016-03-11 22:50:32 -08:00
Paulus Schoutsen ddc139b853 Merge pull request #1510 from persandstrom/automation_templating
Use templates in service calls
2016-03-11 21:49:47 -08:00
Paulus Schoutsen 2b6f0586b4 Merge pull request #1524 from turbokongen/dev
Workaround for no off motion sensor: Wenzhou tkd slim sensor 3/4 in 1…
2016-03-11 21:45:40 -08:00
Paulus Schoutsen 9904667a80 Merge pull request #1520 from balloob/mqtt-fixes
Type checks for MQTT config
2016-03-11 21:45:17 -08:00
Paulus Schoutsen 097ded73b1 Merge pull request #1519 from sander76/dev
changed powerview version requirement to solve error in installing
2016-03-11 21:44:11 -08:00
root 1f8b66511d Workaround for no off motion sensor: Wenzhou tkd slim sensor 3/4 in 1 sensor 2016-03-11 20:51:40 +01:00
Bart274 312d0320c6 Update __init__.py 2016-03-11 14:20:08 +01:00
Bart274 284a1fd08e add gps_accuracy and battery information to the see function
the see function from device_tracker doesn't pass the gps_accuracy and the battery information to the see service, so this information gets lost.
2016-03-11 14:10:04 +01:00
sander 1fbf7afc6a changed the powerview version 2016-03-11 06:44:04 +01:00
Paulus Schoutsen 025713ee41 Type checks for MQTT config 2016-03-10 21:42:17 -08:00
Per Sandström 81e5a852f0 Use templates in service calls 2016-03-10 21:36:05 +01:00
Fabian Affolter 4637a83c29 Add sensor_class to MQTT binary sensor 2016-03-10 20:51:58 +01:00
Greg Dowling 534308e461 Merge pull request #1473 from balloob/add_wemo_motion
Add Wemo Motion device as a binary sensor.
2016-03-10 18:13:04 +00:00
pavoni 84bdba28b3 Add Wemo Motion 2016-03-10 17:58:24 +00:00
Paulus Schoutsen b9856a2af5 Fix final pep257 issues 2016-03-09 23:34:38 -08:00
Paulus Schoutsen 47c4f66886 Merge pull request #1485 from MartinHjelmare/refactor-scene-reproduce_state
Refactor reproduce_state for scene component
2016-03-09 15:29:10 -08:00
Fabian Affolter 0d9b8a0d06 Fix docstring 2016-03-09 23:49:54 +01:00
MartinHjelmare c56701baaf Refactor reproduce_state for scene component
* Add tests to reach full coverage for helpers/state.py.
* Refactor reproduce_state function in helpers/state.py. Add two dicts,
	as global constants, service_attributes and service_to_state. Use
	these in combination with the dict of services per domain from
	ServiceRegistry, to find the correct service to use in a scene state
	change.
* Use break statement in for loop, to break if service was selected
	to update state, in preference to update state attributes, ie state
	update takes precedence.
* Add ATTR_CODE and ATTR_CODE_FORMAT in const. Import these in
	alarm_control_panel and lock platforms instead of making duplicate
	constants in multiple modules.
* Use ATTR_MEDIA_CONTENT_TYPE and ATTR_MEDIA_CONTENT_ID in media_player
	platform in SERVICE_PLAY_MEDIA and play_media methods, instead of
	'media_type' and 'media_id'.
* Fix PEP257 in modified files.
2016-03-09 18:52:05 +01:00
Fabian Affolter f22a40c3e8 Fix PEP257 issues 2016-03-09 11:15:04 +01:00
Per Sandström d1256d4889 Merge pull request #1508 from persandstrom/verisure_typo_thermometers
verisure configuration value typo fix
2016-03-08 21:42:43 +01:00
Fabian Affolter d6eab03a61 Remove parenthesis 2016-03-08 18:05:01 +01:00
Fabian Affolter b534244e40 Fix PEEP257 issues 2016-03-08 17:55:57 +01:00
Fabian Affolter d784610c52 Merge branch 'pep257-sensor' into dev 2016-03-08 16:47:18 +01:00
Fabian Affolter 8bff97083c Fix PEPE257 issues 2016-03-08 16:46:34 +01:00
Paulus Schoutsen 3e4412d375 Merge pull request #1507 from sander76/dev
change module name to correct brand name "douglas" to "hunterdouglas"
2016-03-08 07:20:43 -08:00
Per Sandström 567727fb3b verisure configuration value typo fix 2016-03-08 14:10:47 +01:00
Fabian Affolter 49ebc6d0b0 Fix PEP257 issues 2016-03-08 13:35:39 +01:00
sander fd5e2d1321 change module name to correct brand name "douglas" to "hunterdouglas" 2016-03-08 11:59:46 +01:00
Fabian Affolter 652f059d6a Fix PEP257 issues 2016-03-08 11:46:32 +01:00
Fabian Affolter cf7c2c492a Fix PEP257 issues 2016-03-08 10:34:33 +01:00
Fabian Affolter 7f1e181c9b Merge branch 'pep257-utils' into dev 2016-03-08 08:34:50 +01:00
Fabian Affolter 08233da8a7 Merge branch 'pep257-thermostats' into dev 2016-03-08 08:11:38 +01:00
Fabian Affolter 5423252a52 Merge branch 'pep257-scene-mqtt' into dev 2016-03-08 08:11:30 +01:00
Fabian Affolter 036cfe4ef6 Merge branch 'pep257-lock' into dev 2016-03-08 08:11:21 +01:00
Fabian Affolter db6212dae3 Merge branch 'pep257-light' into dev 2016-03-08 08:11:12 +01:00
Fabian Affolter 391c6a358a Merge branch 'pep257-garage' into dev 2016-03-08 08:10:25 +01:00
Fabian Affolter 29a651dd92 Merge branch 'pep257-device-tracker' into dev 2016-03-08 08:08:35 +01:00
Paulus Schoutsen 20dd782d9e Rename powerview to douglas_powerview 2016-03-07 22:43:38 -08:00
Paulus Schoutsen 9d76c58bd4 Merge pull request #1490 from sander76/powerview
Powerview
2016-03-07 22:42:20 -08:00
Paulus Schoutsen c21918233b Merge pull request #1506 from fabaff/pep257-camera
PEP257 - Camera
2016-03-07 17:10:21 -08:00
Paulus Schoutsen 87008f23a1 Merge pull request #1505 from fabaff/pep257-binary-sensor
PEP257 - Binary sensor
2016-03-07 17:09:59 -08:00
Paulus Schoutsen ba0a25aef6 Merge pull request #1503 from fabaff/pep257-automation
PEP257 - Automation
2016-03-07 17:09:11 -08:00
Paulus Schoutsen ee728345f6 Merge pull request #1501 from fabaff/pep257-alarm
PEP257 - Alarm control panel
2016-03-07 17:08:39 -08:00
Paulus Schoutsen 2db873322d Update frontend 2016-03-07 15:17:51 -08:00
Fabian Affolter 897b5c668f Fix PEP257 issues 2016-03-08 00:06:04 +01:00
Fabian Affolter 4f536ac63d Fix PEP257 issues 2016-03-07 23:39:52 +01:00
Fabian Affolter 876978d64a Fix PEP257 issues 2016-03-07 23:20:48 +01:00
Fabian Affolter 91731c7234 Fix PEP257 issues 2016-03-07 23:01:34 +01:00
Fabian Affolter 1b8b2acb51 Fix PEP257 issues 2016-03-07 22:50:56 +01:00
Fabian Affolter 095dd70391 Fix PEP257 issues 2016-03-07 22:44:35 +01:00
Fabian Affolter 6879e39d6c Fix PEP257 issues 2016-03-07 22:13:18 +01:00
Fabian Affolter 7e8e91ef3c Fix PEP257 issues 2016-03-07 22:08:21 +01:00
Fabian Affolter ac43d23bd7 Fix PEP257 issues 2016-03-07 21:22:21 +01:00
Fabian Affolter cc7a4d545e Fix PEP257 issues 2016-03-07 21:18:53 +01:00
sander 40be9f4e0c Powerview hub implementation 2016-03-07 21:07:38 +01:00
Fabian Affolter cd5b5c55e2 Fix PEP257 issues 2016-03-07 20:29:54 +01:00
Fabian Affolter 3a4250133a Fix PEP257 issues 2016-03-07 20:21:43 +01:00
Fabian Affolter 7035af6634 Fix PEP257 issues 2016-03-07 20:21:08 +01:00
Fabian Affolter fb7bd1bfe1 Fix PEP257 issues 2016-03-07 20:20:07 +01:00
Fabian Affolter f6bc1a4575 Revert change (FIXME) 2016-03-07 20:18:48 +01:00
Paulus Schoutsen cfd65e48cb Merge pull request #1495 from balloob/mqtt-light
MQTT Light: fix brightness issues
2016-03-07 10:20:36 -08:00
Fabian Affolter b8a40457ee Update docstrings to match PEP257 2016-03-07 18:50:30 +01:00
Fabian Affolter 7ff9aecd4e Update docstrings to match PEP257 2016-03-07 18:50:30 +01:00
Fabian Affolter 032f06e015 Modify docstrings to match PEP257 2016-03-07 18:50:30 +01:00
Fabian Affolter 6ac9210919 Modify docstrings to match PEP257 2016-03-07 18:50:30 +01:00
Paulus Schoutsen b47f1c3a96 MQTT Light: fix brightness issues 2016-03-07 08:54:08 -08:00
Paulus Schoutsen 5222c19b4c Fix TP-Link get auth token 2016-03-07 08:29:05 -08:00
Fabian Affolter 1e97d31711 Modify docstrings to match PEP257 2016-03-07 16:45:21 +01:00
Paulus Schoutsen 18f48191d9 Merge pull request #1482 from balloob/history-significant-states
History: update significant states
2016-03-06 21:45:48 -08:00
Paulus Schoutsen abc7243bc8 Merge pull request #1484 from balloob/device-tracker-remove-old-conf-format
Device tracker remove old conf format
2016-03-06 21:41:59 -08:00
Paulus Schoutsen 4c64be5cfa Merge pull request #1488 from balloob/template_component_fix
Fix noisy error on template component startup.
2016-03-06 13:47:42 -08:00
Paulus Schoutsen 199375bd25 Merge pull request #1489 from balloob/zone_fix
Force zone params to be float
2016-03-06 13:47:11 -08:00
Per Sandström d2c94da938 After maintenance false password errors are expected 2016-03-06 22:09:15 +01:00
pavoni 4e3c8a8697 Fix noisy error on startup. Make callbacks code consistent. 2016-03-06 19:19:07 +00:00
pavoni d75d08e97c Force float for zone parameters. 2016-03-06 19:07:30 +00:00
Paulus Schoutsen cd30f2de0d Device Sun Light Trigger: Clean up 2016-03-05 20:15:33 -08:00
Paulus Schoutsen bdad69307a Group: fix thread safety 2016-03-05 19:55:05 -08:00
Paulus Schoutsen b16c17fae5 Merge pull request #1480 from balloob/fix-slow-tests
Fix slow tests
2016-03-05 19:05:47 -08:00
Nuno Sousa 7b45001879 Add ArcherC7 150427 support 2016-03-05 23:15:48 +00:00
Paulus Schoutsen fb46eff5f8 Device tracker: remove support for old config 2016-03-05 11:43:23 -08:00
Paulus Schoutsen 9701be9e9c History: ignore scripts that we cannot cancel 2016-03-05 10:28:48 -08:00
Paulus Schoutsen 605a572c86 History: Ignore insignificant domains 2016-03-05 09:49:04 -08:00
Paulus Schoutsen 41214fd082 TCP test to work offline 2016-03-05 09:27:22 -08:00
Paulus Schoutsen d30fb7f04a Merge pull request #1476 from stefan-jonasson/assumed-state
Add assumed state for Tellstick devices.
2016-03-05 01:41:55 -08:00
Stefan Jonasson e57eca517b Add assumed state for Tellstick devices.
Tellstick device states are always assumed so this should be set to true.
2016-03-05 10:24:22 +01:00
Paulus Schoutsen 931dc27300 Merge pull request #1465 from bestlibre/influxdb_blacklist
Possibility to blacklist events for influxdb
2016-03-05 00:57:26 -08:00
bestlibre d7094b996a Use global variable and merge two if in one 2016-03-04 23:32:24 +01:00
Hydreliox c04555d7b1 Add GPS accuracy check for a location update or an event update
Add tests related to this
Great thanks to @pavoni for his support on this fix
2016-03-04 20:19:50 +01:00
Paulus Schoutsen a687a3decb Update pychromecast 0.7.2 2016-03-03 21:59:27 -08:00
Paulus Schoutsen 88c834fdd3 Merge pull request #1466 from balloob/tests_rfxtrx_device
Tests rfxtrx device
2016-03-03 09:11:50 -08:00
Daniel Hoyer Iversen feb1a15489 update rfxtrx lib to ver 0.5 2016-03-03 17:47:50 +01:00
bestlibre 4d5e9f2931 Possibility to blacklist events
Possibility to blacklist some events based on the entity_id
2016-03-03 17:02:41 +01:00
Paulus Schoutsen 1e3199eb8c Merge pull request #1458 from jaharkes/track-wemos-by-serial
Track wemos by serial
2016-03-02 23:10:13 -08:00
Dan Smith e59d6b7da0 Fix SNMP device_tracker results without MAC addresses
@llauren reported that his router returns empty MAC addresses for things
on different subnets, which causes heartache for the HA snmp device tracker.
2016-03-02 11:43:08 -08:00
Daniel 2fd0b28c53 Added tests for RFxtrx device, updated rfxtrx to ver 0.5, fixed bug in setting brightness for rfxtrx light 2016-03-02 20:36:41 +01:00
Jan Harkes bbd3a43585 Update netdisco to 0.5.4 2016-03-01 23:25:18 -05:00
Dan Smith a02840379d Track WeMo devices by serial number
This makes us track WeMo devices by serial number instead of URL. Per
@jaharkes' suggestion, tracking via URL could potentially be a problem
if a device changes to another IP and then appears to be discovered again.
Since we can't track based on mac (for static-configured devices), we
can use the serial number exposed to make sure we're always looking at
a list of unique devices.
2016-03-01 10:49:38 -08:00
Paulus Schoutsen 4370f5170b Merge pull request #1374 from sander76/scene_with_platforms
scene with platforms
2016-02-29 23:00:03 -08:00
Paulus Schoutsen 49c6484f72 Merge pull request #1433 from fabaff/mqtt-lock
Add MQTT lock support
2016-02-29 22:58:55 -08:00
Paulus Schoutsen ec642cbeff Merge pull request #1450 from kk7ds/mfi-tls-verify
Give mFi options to control TLS usage
2016-02-29 19:18:06 -08:00
MartinHjelmare bfa579f8b2 Add assumed_state to mysensors switch and light
* Return true for assumed_state if optimistic config setting is true.
* Fix PEP257
2016-03-01 03:09:55 +01:00
Dan Smith be04ebf9ed Give mFi options to control TLS usage
The default configuration of the mFi controller generates self-signed
certificates which are valid for short periods of time, and which are
regnerated on start or as needed. This makes requests mad. Since most
people will be using the self-signed certificates anyway, add options
to let them choose non-TLS, or unverified connections if they want/need.

This bumps the mficlient requirement to 0.3.0 for proper handling of
verify=False.
2016-02-29 17:37:41 -08:00
Stefan Jonasson c586111c8c Fixed the z-wave sensor workarounds for empty manufacturer ids 2016-02-29 11:05:11 +01:00
Paulus Schoutsen e92c77a113 Update frontend 2016-02-28 21:39:42 -08:00
Paulus Schoutsen 5449d53e07 Update netdisco to 0.5.3 2016-02-28 15:32:11 -08:00
sander 0f6ec9b7ac Added your suggestions.
Looking at your code suggestion below I am not sure exactly how other people might want to put in lists. (But I am missing a more general overview of the code)

 ```
if not isinstance(scene_config,list):
  scene_config=[scene_config]
```

But it is there !
And changed "config" to "states" !
2016-02-28 21:00:51 +01:00
Fabian Affolter a82931022c Add MQTT lock support 2016-02-28 18:25:28 +01:00
Paulus Schoutsen 1974e2cfbe Merge pull request #1430 from ggruner/dev
Add support for NetAtmo rain gauge
2016-02-28 09:19:41 -08:00
Dan Smith 566c143ee3 Gracefully handle having no wemo config section
I broke this with my fix, where I assumed that we'd always have a wemo
config section if we're running the wemo code. However, if we're fully
auto-detected, we might not.
2016-02-28 07:58:44 -08:00
Fabian Affolter 014b11c61d Upgrade to psutil 4.0.0 2016-02-28 16:34:06 +01:00
Fabian Affolter b70a455a13 Upgrade py-cpuinfo to 0.2.3 2016-02-28 16:16:03 +01:00
Fabian Affolter 9da8679dbd Add link to docs 2016-02-28 15:35:20 +01:00
Gregor Gruener c14ca9983c Add support for NetAtmo rain gauge
Example Config:
...
modules:
    Bedroom:
      - temperature
    LivingRoom:
      - temperature
    Outside:
      - temperature
    Garden:
      - rain
      - sum_rain_1
      - sum_rain_24

The three new parameters stand for:
- rain # Estimated rainfall for today in "mm"
- sum_rain_1 # Rainfall in the last hour in "mm"
- sum_rain_24 # Rainfall in "mm" from 00:00am - 23:59pm
2016-02-28 12:24:45 +01:00
Fabian Affolter 9c4fe6e7fe Modify docstrings to match PEP257 2016-02-28 12:03:47 +01:00
sander a8edcfd315 removed logger.
I guess I should add some error checking, but I'd like you to okay this code first.
2016-02-28 10:29:21 +01:00