Commit graph

299 commits

Author SHA1 Message Date
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
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
Paulus Schoutsen
d641cd5eef Merge pull request #1452 from balloob/rfxtrx_tests
Added tests for rfxtrx sensor
2016-03-01 08:07:21 -08:00
Daniel
6c518c74ec Added tests for rfxtrx sensor 2016-03-01 10:14:02 +01: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
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
Fabian Affolter
a82931022c Add MQTT lock support 2016-02-28 18:25:28 +01:00
Paulus Schoutsen
f623a332cf Fix incorrectly setting can_cancel on scripts 2016-02-27 23:11:51 -08:00
Paulus Schoutsen
be55ee059e Make names command line platform consistent 2016-02-27 15:56:35 -08:00
St. John Johnson
e525b6e0a5 Add brightness scale support for MQTT Lights.
Converts 0..255 values that HA expects into a device 0..SCALE value
Example:
  HA considers "hall light" at 25 brightness or 10% of 255
  Device considers "hall light" at 100 brightness or 10% of 1000

This allows our existing MQTT devices to not change their data format to be used in HA
2016-02-26 10:38:07 -08:00
Dan Smith
37e5b98919 Fix mFi error handling in setup_platform
The exception we were catching incorrectly referenced the client variable
in local scope instead of the module. Also, if we fail to connect we can
get a requests exception, so catch and handle that as well.
2016-02-25 15:52:13 -08:00
Paulus Schoutsen
35aa9aa863 Merge pull request #1383 from kk7ds/virtual-binary-sensor
Template binary sensor
2016-02-24 22:15:01 -08:00
Dan Smith
a7519bb38b Add a template binary_sensor platform 2016-02-24 20:09:13 -08:00
Flyte
8840461af3 Bring TCP component test coverage to 100% 2016-02-24 13:28:39 +00: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
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
sander
88e7967a7d - removed update method
- removed failing tests from test_scene
2016-02-22 22:01:05 +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
t30
066b569cfe Added command_rollershutter component 2016-02-22 10:43:29 +00:00
Stefan Jonasson
e4485dcf3d Updated structure, added more tests 2016-02-22 09:40:27 +01: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
Paulus Schoutsen
aa748e3e48 Merge pull request #1358 from andythigpen/script-improvements
Script improvements
2016-02-21 13:49:49 -08:00
Andrew Thigpen
7dd529356a Add toggle support for scripts. 2016-02-21 11:22:38 -06: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
Paulus Schoutsen
1eae74be58 Add assumed_state to group 2016-02-20 19:11:02 -08:00
Paulus Schoutsen
443b39bccd MQTT Switch to expose assumed_state if optimistic 2016-02-20 17:17:30 -08:00
Paulus Schoutsen
8f70630790 MQTT Light to expose assumed_state if optimistic 2016-02-20 17:17:22 -08:00
Stefan Jonasson
6e7ca9505c Removed unused import 2016-02-20 22:25:41 +01:00
Stefan Jonasson
f3c95adaca Fixed now => utcnow
Fixed added time patch to unittest
2016-02-20 22:15:49 +01:00
Paulus Schoutsen
6532eae3d5 Merge pull request #1343 from balloob/random-cleanup
Random cleanup
2016-02-20 12:16:54 -08:00
Stefan Jonasson
ff6e071dff added the for param to the conditions as well 2016-02-20 12:52:42 +01:00
Paulus Schoutsen
22b47ce9c6 Merge pull request #1314 from balloob/fix_own_tracks_mobile_beacon
Fix own tracks mobile beacon race condition
2016-02-20 00:27:07 -08:00
Paulus Schoutsen
4c538c718b Clean up binary_sensor 2016-02-19 22:23:25 -08:00
MartinHjelmare
08aaea5444 Add mysensors binary sensor
* Add mysensors binary sensor.
* Add discovery platforms to binary_sensor base component.
* Replace device_state_attributes with state_attributes in
	binary_sensor base class.
* Fix docstrings.
* Add discovery of binary sensor to mysensors component.
* Add child.type as argument to mysensors device_class.
* Move binary sensor types from sensor to binary_sensor module.
* Fix binary_sensor attribute tests. Use state_attributes instead of
	device_state_attributes.
2016-02-20 04:28:17 +01:00
Dan Smith
27f456ca70 Add Ubiquiti Unifi device tracker
Ubiquiti's Unifi WAP infrastructure has a central controller (like mfi and uvc)
that can be queried for client status. This adds a device_tracker module that
can report the state of any client connected to the controller.
2016-02-19 15:24:00 -08:00
Paulus Schoutsen
1c8c16f85f Merge pull request #1220 from stefan-jonasson/command_line.py
New notification platform "command line"
2016-02-19 14:15:40 -08:00
Stefan Jonasson
fa6d9adcba Added some unittests for the command_line notification 2016-02-19 22:30:38 +01:00
Flyte
4e6b755b26 Add tests for TCP component. 2016-02-19 17:41:51 +00:00
pavoni
9e48b88154 Add for delay to state automation. 2016-02-19 15:28:17 +00:00
pavoni
ee62120fe5 Revise race condition test. 2016-02-19 10:19:14 +00:00
pavoni
7bd4e58b9d Add tests for race condition. 2016-02-19 09:43:59 +00:00
Dan Smith
d93883f153 Make nx584 expose zone types (sensor classes)
With this, plus https://github.com/balloob/home-assistant-polymer/pull/32,
I can have nx584 sensors use a proper icon in the UI.
2016-02-18 12:20:35 -08:00
Dan Smith
2d932f89fc Add sensor_class to binary_sensor
This adds a 'sensor_class' property and attribute, which should be either
None or one of several defined SENSOR_CLASSES to indicate contextual
information about what the sensor is measuring.
2016-02-18 12:20:35 -08:00
Dan Smith
9aa4028718 Fix #1287 for honeywell US systems with no fan
This bumps the somecomfort requirement to 0.2.1 to pull in a change
that makes handling no-fan systems graceful. Adds a test that should
prove it gives us what we want.

If no fan, then fan is always idle and fanmode is None.
2016-02-17 08:16:02 -08:00
Dan Smith
22865e5d96 Add nx584 as a sensor platform
This allows you to get every door, window, smoke, etc zone from your security
panel into HA. This uses the live eventing feature of pynx584, which means you
get instantaneous signaling into HA when a door opens or something happens,
which is handy for automating lights on when doors open after dark, etc.

Requires update to pynx584 0.2
2016-02-16 20:24:32 -08:00
Paulus Schoutsen
cdc93ab670 Merge pull request #1262 from balloob/chore/tests-cleanup
More testing cleanup
2016-02-14 23:37:10 -08:00
Paulus Schoutsen
c287520432 MQTT Light test - switch order 2016-02-14 23:16:54 -08:00
Paulus Schoutsen
68803a46b6 Thread pool tweaks 2016-02-14 23:01:49 -08:00
Paulus Schoutsen
8d366a7367 Tests: Mock get_local_ip by default too 2016-02-14 22:01:30 -08:00