Commit Graph

514 Commits (ebe4c3902077b152db9896f97a4d681cf7d4fa0f)

Author SHA1 Message Date
Erik 008d65677b add assumed state property 2016-02-16 17:18:49 +01:00
Daniel b93ebe1936 Add signal repetition to rfxtrx 2016-02-15 19:45:33 +01:00
Daniel 0010cadd39 Add signal repetition to rfxtrx 2016-02-15 19:41:40 +01:00
John Arild Berentsen f429a6c4ff Add assumed_state for rfxtrx switch and light. 2016-02-15 18:59:11 +01:00
Paulus Schoutsen 8bea5c06de Add assumed_state property to entity 2016-02-13 23:42:11 -08:00
Paulus Schoutsen 77b141a355 Update Wink to 0.6 2016-02-13 08:17:38 -08:00
Paulus Schoutsen 7dd51034cd Merge pull request #1213 from MartinHjelmare/mysensors-light
Add mysensors light platform
2016-02-12 19:01:41 -08:00
MartinHjelmare 0492f0abd0 Fix error in update method for V_STATUS
* Remove check against V_STATUS to avoid error when using version 1.4
    of mysensors. V_LIGHT has the same integer value so V_STATUS is not
    needed.
2016-02-12 22:05:31 +01:00
Paulus Schoutsen 3c582d1e3c Merge pull request #1143 from balloob/rfxtrx
Rfxtrx
2016-02-11 23:30:34 -08:00
MartinHjelmare 2cf061c768 Add mysensors light platform
* Make light controllable independently with types V_LIGHT, V_DIMMER,
    V_RGB and V_RGBW. V_RGBW is not implemented in the frontend yet.
* Add discovery for light platform.
* Add optimistic mode config setting for switch and light
    to allow feedback state from actuator.
* Move S_LIGHT, V_LIGHT, V_STATUS types from switch to light platform.
* Change node update logging to debug from info level.
* Fix some inaccurate comments.
2016-02-12 01:22:35 +01:00
Dan Smith 4cfa14c29d Support manually-defined WeMo devices
This is extremely useful if you want to support wemos that are on
another subnet or across a VPN. It also lets you sidestep the discovery
process, which is problematic for a lot of people and situations.

In order for this to work, we need to bump the pywemo requirement to
0.3.10, which includes my changes to make this possible.

WeMo devices can be manually configured by adding a static section to
the config, like this:

  switch:
    platform: wemo
    static:
       - 192.168.100.5
       - 192.168.100.6
2016-02-11 17:23:20 +00:00
Daniel f938134069 updated rfxtrx lib 2016-02-11 14:15:51 +01:00
MartinHjelmare 75775a561b Use entity property available 2016-02-11 03:27:02 +01:00
Daniel cdf0e80773 Improve the robustness of the rfxtrx module, and solve issue #1116 2016-02-10 08:44:34 +01:00
Dan Smith 0a7db98b0e Round mFi sensor values to reasonable levels of precision
Most of the mFi sensors are able to reasonably provide accurate
readings to a tenth of a unit or so. This patch rounds them for
better display in the UI. Normally, I would expect this to be a view
action instead of altering the actual data emitted, but since these
values are reasonable for sensor precision, we're not really losing
anything. I followed the model from the openweathermap component, which
rounds for readability in the backend.
2016-02-07 20:51:00 +00:00
Dan Smith 951fa603ff Support mPort voltage output switch types
An mPort device has a voltage output port that, if configured,
we should support like a switch.
2016-02-07 20:48:57 +00:00
Dan Smith c113997609 Tweak mFi switch behavior to avoid false states
When we update the mFi server for the state of a switch, the new
state is not always reported immediately if we update right after
the action (the server is not RESTful).

This patch adds some internal target-state handling to report the
desired state on the next poll, allowing any subsequent polls to
override that state.

Also, bump the version requirement for mficlient to 0.2.2 to absorb
a bug fix.
2016-02-07 20:48:51 +00:00
Paulus Schoutsen 64611ab2be Merge pull request #1157 from balloob/device-state-attributes
Clean up state_attributes vs device_state_attributes
2016-02-07 10:16:34 -08:00
Fabian Affolter 757946293e Move configuration details to docs 2016-02-07 11:52:17 +01:00
Paulus Schoutsen f08b77dc4c Clean up state_attributes vs device_state_attributes 2016-02-06 22:34:24 -08:00
Paulus Schoutsen 428750eeda Merge pull request #1151 from kk7ds/add-mfi
Add support for Ubiquiti mFi sensors and switches
2016-02-06 20:11:53 -08:00
Dan Smith ffc4822f50 Add support for Ubiquiti mFi switchable devices
This adds support for mFi devices that are swichable,
such as the mFi Outlet device.
2016-02-07 03:02:49 +00:00
MartinHjelmare d773ad1ecb Fix mysensors version errors
* The application of the version check in unit_of_measurement was
	messed up after the last refactor. Fix that again.
* An error could occur in device_state_attributes if there was a
	mismatch between used value_type in the device and mysensors
	version in config. Add try... except to handle that.

Bump pyvera version.

Bump pywemo version.

Add unavailable status before properly initialised for maker and insight.
2016-02-07 00:28:12 +00:00
Paulus Schoutsen b3e966665a Merge pull request #1150 from bradsk88/master
Updating to python-wink 0.5.0
2016-02-06 13:04:42 -08:00
bradsk88 6e69737e88 Updating to python-wink 0.5.0
Major bugfix.  ``` get_bulbs ``` and similar methods were always returning empty lists.

Better unit tests have been added to https://github.com/bradsk88/python-wink to avoid this regression.
2016-02-06 14:22:46 -06:00
Paulus Schoutsen af0a44d976 Merge pull request #1144 from MartinHjelmare/fix-mysensors-errors
Fix mysensors version errors
2016-02-06 11:35:49 -08:00
Paulus Schoutsen dde80850a6 Merge pull request #1112 from balloob/switch-template
First cut of switch.template
2016-02-06 09:12:13 -08:00
MartinHjelmare b700ec4faa Fix mysensors version errors
* The application of the version check in unit_of_measurement was
	messed up after the last refactor. Fix that again.
* An error could occur in device_state_attributes if there was a
	mismatch between used value_type in the device and mysensors
	version in config. Add try... except to handle that.
2016-02-06 10:57:42 +01:00
pavoni 2622cf2e53 Use available, remove state, improve true,false tests. 2016-02-05 11:18:50 +00:00
Erik 50a9b3a7c0 reworked telldus live support 2016-02-05 00:07:12 +01:00
pavoni ced380f0cd Remove unneeded entity_id check and blank lines. 2016-02-04 17:24:38 +00:00
pavoni b20d3f8b3a Update docstrings. 2016-02-03 23:23:19 +00:00
pavoni 6e6c3c5cd5 Tidy. 2016-02-03 14:30:58 +00:00
pavoni 5521096c02 Add actions. 2016-02-03 14:29:25 +00:00
pavoni 9a9dbcfaea Refactor, support template logic values, add tests. 2016-02-03 13:16:13 +00:00
pavoni a955f3db08 WIP commit - template state working, on / off still to do. 2016-02-02 19:25:17 +00:00
Fabian Affolter 395743005a Add link to docs, new docstrings, and update docstrings 2016-02-01 11:47:09 +01:00
Flavio Castelli 8eef978241 Add support for the SCSGate device
Support the SCSGate device. This will allow home-assistant to interact
with BTicino/Legrand MyHome system.

Signed-off-by: Flavio Castelli <flavio@castelli.me>
2016-01-31 18:30:43 +01:00
Martin Hjelmare a8f7bc2324 Merge pull request #1034 from MartinHjelmare/refactor-s_v_types
Mysensors: Refactor s_types and v_types mapping
2016-01-30 01:04:06 +01:00
MartinHjelmare 9db0987e53 Refactor s_types and v_types mapping
To be able to handle new platforms with multiple used v_types but
single states, a new more strict mapping was required. Each s_type is
now mapped to its corresponding v_type(s) in a dict of lists.
2016-01-30 00:55:13 +01:00
Paulus Schoutsen f87c7d6732 Merge pull request #1023 from flyte/zigbee-pr
Add ZigBee integration and components.
2016-01-29 09:18:10 -08:00
Flyte c17a4fca80 ZigBee: Ensure correct entity types are used for each component. 2016-01-29 12:00:53 +00:00
Paulus Schoutsen cbc6323438 Fix imports 2016-01-28 21:45:26 -08:00
Flyte dda4f84150 Add zigbee components. 2016-01-28 13:18:29 +00:00
Paulus Schoutsen f3f592cdec Merge pull request #982 from stefan-jonasson/dev
Updated the entity names for all z-wave devices.
2016-01-26 22:51:34 -08:00
Stefan Jonasson 1d2cd0811b Updated Imports.
ZWave modules now import the domain from the base domain.
2016-01-27 07:37:41 +01:00
MartinHjelmare 1dae22a465 Fix device_state_attributes
* Return a dict with keys as the names of the enum members instead of
	the member values.
* This fixes a TypeError: unorderable types: int() < str()
2016-01-27 02:33:21 +01:00
Stefan Jonasson 1a422ecd5a Moved common z-wave node functionality to a common z-wave class 2016-01-26 22:11:27 +01:00
Martin Hjelmare b13e48bd71 Merge pull request #999 from MartinHjelmare/fix-not-adding-devices
Fix adding devices on the fly
2016-01-26 19:30:31 +01:00
MartinHjelmare 9117fa6eb8 Fix adding devices on the fly
Devices were not added without persistence enabled and restart of HA.
Node id was added to defaultdict(list) by mistake when checking if list
of defaultdict was empty.

* Fix adding devices in mysensors_callback.
* Change devices to regular dict.
2016-01-26 18:12:13 +01:00
Stefan Jonasson f4c9540a1b Updated teh entity_id generation
Entity ids will now look like this:
sensor.philio_technology_corporation_psm021_slim_multisensor_doorwindow_sensor_7
sensor.philio_technology_corporation_psm021_slim_multisensor_luminance_7
sensor.philio_technology_corporation_psm021_slim_multisensor_motion_sensor_7
sensor.philio_technology_corporation_psm021_slim_multisensor_tamper_sensor_7
sensor.philio_technology_corporation_psm021_slim_multisensor_temperature_7

sensor.philio_technology_corporation_psm021_slim_multisensor_doorwindow_sensor_8
sensor.philio_technology_corporation_psm021_slim_multisensor_luminance_8
sensor.philio_technology_corporation_psm021_slim_multisensor_motion_sensor_8
sensor.philio_technology_corporation_psm021_slim_multisensor_tamper_sensor_8
sensor.philio_technology_corporation_psm021_slim_multisensor_temperature_8

And if there is several values of the same type in a node the instance id will be appended like this (three switches in the same device):
switch.fibaro_system_unknown_type0202_id1002_switch_9
switch.fibaro_system_unknown_type0202_id1002_switch_9_2
switch.fibaro_system_unknown_type0202_id1002_switch_9_3
2016-01-26 09:33:26 +01:00
happyleavesaoc 80c6bf6744 bump orvibo version 2016-01-25 16:40:27 -05:00
William Scanlon c95b03f240 Fixed style 2016-01-21 18:32:10 -08:00
William Scanlon 56ce3e5f5a Wink siren support 2016-01-21 18:32:10 -08:00
pavoni d2d421ca8f Remove ghost debug code. 2016-01-20 20:02:03 +00:00
pavoni 7ad5b3a17b Fix bug related to maker_param types 2016-01-20 19:13:29 +00:00
pavoni 0de9229d75 More tidying. 2016-01-20 11:25:20 +00:00
pavoni f4c3ac2a62 Tidy 2016-01-20 11:19:00 +00:00
pavoni 6c5ceaf686 Remove sensor state from switch and wemo 2016-01-20 11:06:08 +00:00
Erik d43101f22a fix issue where sensors and switches were duplicated because of component getting initialized twice. closes #913 2016-01-18 19:41:41 +01:00
Ryan Kraus 342a819fd4 Added toggle service
Added a toggle service to the homeassistant, light, switch, and
media_player domains.
2016-01-16 10:45:05 -05:00
pavoni be23c6c86d Bump pywemo version. 2016-01-16 11:35:17 +00:00
Greg Dowling 3d27dd3ec4 Merge pull request #902 from balloob/fix_vera_sensor_subscriptions
Another Vera fix
2016-01-15 21:46:27 +00:00
pavoni c2f5eb3073 Missed change. 2016-01-15 21:42:51 +00:00
pavoni 541b268721 Update to use refactored pyvera, fixes subscription issues - esp sensors. 2016-01-15 21:30:58 +00:00
sfam 7c925ac295 update comments 2016-01-15 16:53:46 +00:00
sfam 8617b92d1b Update RPi.GPIO version and code refactoring 2016-01-15 16:53:45 +00:00
Paulus Schoutsen bb80e3a9fc Merge pull request #898 from balloob/vera_fixes
Vera fixes
2016-01-15 07:43:03 -08:00
pavoni 4fd79afa42 Bump pyvera version. 2016-01-15 11:45:17 +00:00
pavoni 4bc33d0352 Bump pyvera version. 2016-01-15 10:34:14 +00:00
Paulus Schoutsen bed9b038c8 Merge pull request #856 from w1ll1am23/Wink_power_strip_support
Wink power strip support
2016-01-14 19:23:41 -08:00
William Scanlon de5bee6359 Updated python-wink version 2016-01-14 08:56:59 -05:00
Paulus Schoutsen 3b7b12bbd5 Make Flake8 happy 2016-01-12 21:53:27 -08:00
Paulus Schoutsen a5b198e2b8 Merge pull request #771 from MartinHjelmare/mysensors-component-switch
Mysensors component switch
2016-01-11 19:04:35 -08:00
pavoni fca8ad5b0b Tidy. 2016-01-10 12:48:36 +00:00
pavoni 4b4fb038e3 Update for new library, slightly revise switch logic. 2016-01-10 12:30:47 +00:00
MartinHjelmare 0b3a66dd1a Merge branch 'dev' into mysensors-component-switch 2016-01-10 04:27:39 +01:00
MartinHjelmare 2d8cf7de44 Fix wrapper and S_BINARY and bump req. version
* Wrap existing SerialGateway instance instead of subclassing
	SerialGatewat class.
* Add S_BINARY in switch platform only in version 1.5 of mysenors api.
* Use version 0.4 of pymysensors.
* Show gateway port as state attribute.
2016-01-10 04:10:38 +01:00
pavoni af21f72d17 Update pyvera version. 2016-01-09 22:58:28 +00:00
pavoni b64680e4a8 Revise to depend on vera subscription data updates, rather than talking to device. 2016-01-09 21:13:34 +00:00
pavoni d61eb93c03 Remove throttle doesn't play well with subscriptions. 2016-01-09 16:16:41 +00:00
pavoni bb8af3a2d5 Bump pywemo version, turn off polling, tidy trace. 2016-01-08 16:00:26 +00:00
William Scanlon 2803631906 Updated python-wink to 0.4.0 2016-01-08 08:25:26 -05:00
William Scanlon 17dd8ddc9a Added wink power strip support 2016-01-06 12:22:50 -05:00
pavoni 5f8dd65acf Bump pyvera version 2016-01-04 11:24:24 +00:00
Greg Dowling 622a6deb04 Merge pull request #820 from balloob/vera-subscriptons
Add ability to respond to events from Vera hub
2016-01-02 10:15:14 +00:00
happyleavesaoc 9e83a80215 Merge pull request #788 from happyleavesaoc/command_switch_state
add statecmd to command_switch
2015-12-31 18:43:02 -05:00
happyleaves 9c85702c87 combine ifs 2015-12-31 18:39:40 -05:00
pavoni f8e5df237b Remove '#'' from requirements 2015-12-31 18:58:12 +00:00
pavoni 6773c35760 Bump pywemo version 2015-12-31 18:47:12 +00:00
pavoni 5f89b34831 Bump pyvera version 2015-12-31 16:09:05 +00:00
pavoni a8bb75d070 Update sensor with subscription code, change to use pyvera library 2015-12-31 12:16:03 +00:00
pavoni d82859b6ea Turn off poll 2015-12-31 10:57:54 +00:00
MartinHjelmare 4c4e5d5f47 Fix to remove old unused variables. 2015-12-31 06:19:47 +01:00
MartinHjelmare 6ff24ed047 Merge branch 'dev' into mysensors-component-switch
Conflicts:
	homeassistant/components/sensor/__init__.py
	homeassistant/components/switch/__init__.py
2015-12-31 06:05:06 +01:00
MartinHjelmare 69ed6fe6e7 Add gateway wrapper, fix discovery and callbacks
* Add gateway wrapper by subclassing serial gateway.
* Fix platform setup with discovery service.
* Fix platform callback functions with callback factory.
2015-12-31 05:48:23 +01:00
pavoni ae0dbbcfa5 Added support for event subscriptions 2015-12-30 19:44:02 +00:00
pavoni 41a36df801 Update pywemo version 2015-12-30 11:54:21 +00:00
happyleaves e9059a3ed9 added test; addressed comments 2015-12-27 22:51:37 -05:00
Greg Dowling df99e4ef22 Merge pull request #794 from pavoni/wemo-subscription
Adds Wemo event support - so wemo devices update HA more quickly
2015-12-28 00:11:34 +00:00
pavoni 976d9f2d08 Fix style issue 2015-12-28 00:04:30 +00:00
pavoni f5dd146676 Fix bug in shutdown 2015-12-27 23:56:18 +00:00
pavoni b114ba56ea Fix style issue 2015-12-27 23:31:48 +00:00
pavoni 0d32bd7a19 Simplify callback logging, add stop log 2015-12-27 23:26:35 +00:00
pavoni 4feef3dd0d Simplify update state call, shutdown properly. 2015-12-27 23:09:39 +00:00
Erik 27e35d5f34 don't poll (turns out a request for state immediately a state turn on/off request will not return the newly updated state. import constants from tellive, not tellcore 2015-12-27 21:49:45 +01:00
Erik d63e5a60ae added rudimentary support for telldus live 2015-12-27 12:32:08 +01:00
Paulus Schoutsen 1944b6a335 Merge pull request #796 from persandstrom/verisure-update
Verisure update
2015-12-26 08:17:08 -08:00
Per Sandström b83b36274a changed to python-verisure 0.4.1 2015-12-25 20:16:51 +01:00
pavoni 3f151428b7 Update pywemo version, use wildcard filter 2015-12-24 09:35:02 +00:00
MartinHjelmare be25ea4f09 Fix avoid event bus for updates 2015-12-24 02:14:58 +01:00
MartinHjelmare 77959341a3 Merge branch 'dev' into mysensors-component-switch
Conflicts:
	homeassistant/components/sensor/mysensors.py
	requirements_all.txt
2015-12-23 23:45:32 +01:00
MartinHjelmare 9f54bcc21b Fix comments for pull request
* Fix cleaner user config.
* Remove bad disabling of linting.
* Extract default mysensors version into constant.
* Clean up selection of mysensors.CONST from version.
* Update mysensors update decorator to add devices and update values
	in one go.
* Fix persistence update.
* Clean up setup of ports.
* Setup of mysensors platforms from main mysensors component.
* Clean up v_types selection in mysensors sensor platform.
* Fix s_types and v_types selection version dependency in platforms.
2015-12-23 23:20:39 +01:00
pavoni 6d236b8169 Force state update 2015-12-23 18:03:40 +00:00
pavoni 09b894a4aa Fix style issues 2015-12-23 15:57:51 +00:00
pavoni 1e2b5e6991 Add support for subscriptions 2015-12-23 15:46:18 +00:00
Fabian Affolter 8796187389 Equalize log messages 2015-12-22 22:02:55 +01:00
happyleaves fba5becd90 warn->warning 2015-12-21 20:18:00 -05:00
happyleaves d5179b4bdc add statecmd to command_switch 2015-12-21 19:49:39 -05:00
William Scanlon 1747db1888 More spacing fixes 2015-12-16 22:45:58 -05:00
William Scanlon cceb79a378 Pulled from dev to get up-to-date 2015-12-16 19:00:06 -05:00
William Scanlon eb6b4218fc Moved python-wink requirement to PyPI 2015-12-16 18:39:23 -05:00
William Scanlon f6d16ba118 updated python-wink requirements for 3.0.1 2015-12-16 15:22:38 -05:00
William Scanlon c91cd9aa84 Updated python-wink requirements 2015-12-16 11:05:18 -05:00
Paulus Schoutsen c8234ffb8d Merge pull request #762 from bradsk88/pywink-0.3
Updating to python-wink 0.3.0
2015-12-16 07:50:35 -08:00
bradsk88 58988787ea Updating to python-wink 0.3.0 2015-12-15 21:46:54 -06:00
Paulus Schoutsen 17940f36e8 Merge pull request #759 from happyleavesaoc/orvibo_version
bump orvibo dependency version
2015-12-15 16:44:38 -08:00
happyleaves 149449624e bump orvibo dependency version 2015-12-15 18:50:15 -05:00
William Scanlon 94eb002b0a Updated python-wink requirements and URL 2015-12-15 10:32:20 -05:00
Paulus Schoutsen 9a9ecb5916 Migrate MQTT from jsonpath to templates 2015-12-10 21:39:01 -08:00
MartinHjelmare 1e52d5c7f2 Add S_TYPES to platform type and fix persistence
* Add S_TYPES to platform type.
* Fix persistence update on startup.
* Clean up code.
2015-12-09 04:43:18 +01:00
MartinHjelmare 9463c84603 Clean up 2015-12-08 02:47:15 +01:00
MartinHjelmare 7cc707f1ce Fix docstrings to conform to pep 2015-12-08 01:03:07 +01:00
MartinHjelmare 59524c7933 Add multiple gateways
* Add support for multiple serial gateways.
* Fix serialization of python objects by adding dict representation of
    classes.
* Add support for showing more than one child value type per entity.
    The entity state is always only one value type. This is defined by
    the platform value types. Value types that are not defined as the
    platform value type are shown as state_attributes.
* Add more unit of measurement types.
* Clean up code.
2015-12-06 00:29:03 +01:00
MartinHjelmare 1d141566bd Merge 'dev' into mysensors-component-switch 2015-12-05 23:55:36 +01:00
Paulus Schoutsen 343b5bd2b8 Merge pull request #682 from happyleavesaoc/s20-update
Orvibo updates
2015-11-29 14:13:31 -08:00
Paulus Schoutsen a301d869d7 PyLint 1.5 fixes 2015-11-29 13:49:05 -08:00
happyleaves 18ca7b4f9e bump requirement version; support multiple switches per platform 2015-11-29 15:52:16 -05:00
Paulus Schoutsen ad3f96fa25 Merge pull request #672 from balloob/some-cleanup
Make component dependencies optional
2015-11-27 15:08:22 -08:00
Paulus Schoutsen 93c86ca5a1 Merge pull request #670 from pavoni/bump_pywemo
Bump pywemo version
2015-11-27 13:08:12 -08:00
pavoni bbf73e0bae Bump pywemo version - fixed scan device = None bug 2015-11-27 19:05:15 +00:00
pavoni 7204bc018f Add exception handler for vera timeout 2015-11-27 11:43:43 +00:00
Paulus Schoutsen fabd0ced3f Make DEPENDENCIES optional for components 2015-11-26 13:11:59 -08:00
Paulus Schoutsen 4c3d6981a6 Merge pull request #661 from bachp/mqtt-retain
Allow setting the retain flag for mqtt switch.
2015-11-26 12:19:52 -08:00
Pascal Bach 69e9d39690 Allow setting the retain flag for mqtt switch.
Some devices can read the initial value on startup.
If the retain flag is set they always receive the value as last set by
home assistant.
2015-11-26 21:03:21 +01:00
Paulus Schoutsen 65f3e7ccf4 Merge pull request #652 from bachp/arest-function
Function support for aREST backend
2015-11-26 11:55:24 -08:00
Pascal Bach 067011af15 function support for aREST backend
The implementation sends /<name>?params=1 for turn_on and /<name>?params=0 for turn_off
It uses the return value of the function to determine the current state.
0=Off, 1=On
2015-11-26 20:45:07 +01:00
Paulus Schoutsen 271c2f6537 Merge pull request #664 from fabaff/mystrom-switch
myStrom switch
2015-11-26 09:43:55 -08:00
Fabian Affolter f2f598bd26 Use host as config var instead of resource 2015-11-26 16:37:00 +01:00
badele 128e3bb762 Move import module 2015-11-26 08:27:31 +01:00