Commit graph

56 commits

Author SHA1 Message Date
Dan Faulknor
744c277123 Add other wemo motion sensor identifier ()
* Add other motion sensor identifier

* Fix order
2018-07-30 10:38:49 +02:00
Ville Skyttä
b92350fb55 Lint cleanup ()
* Remove unneeded inline pylint disables

* Remove unneeded noqa's

* Use symbol names instead of message ids in inline pylint disables
2018-06-25 13:05:07 -04:00
gstorer
fca5d55b43 Update pywemo to version 0.4.28. () 2018-06-19 11:16:31 -04:00
Ville Skyttä
4bd7a7eee3 Remove inline pylint disables for messages disabled in pylintrc () 2018-06-16 00:15:46 +02:00
angel12
799e1f0469 Wemo Dimmer Support ()
* Wemo Dimmer Support

Add support for the Wemo Dimmer Switch

* Add newline at end of file

Re: findings from hound

* Syntax for the hound

Sorry for the excess edits, new to python

* Change order of Models

Fixed order back to ABC order

* Changes as requested

I made the changes I was comfortable with at this point, the dimmer addition now very closely mirrors what is under the switch component, at least as far as the parts necessary for the dimmer.

Any changes past these with regards to the subscription registry / callback info is probably going to be over my head, but I will try to look deeper at them if required.

* Remove unnecessary lines

Removed self.schedule_update_ha_state() from turn off / turn on

* Remove update(self)

Removed update method

* Move subscription to async_added_to_hass

* Move subscription.
* Clean up.

* Wait until the job in the executor is done

* Run gen_requirements_all script

* Only update instance attributes via callback
2018-01-15 23:08:48 +01:00
Greg Dowling
cb899a9465 Bump pywemo to fix request include problems. () 2018-01-01 15:32:26 -08:00
pavoni
a78f5e0970 Bump pywemo, handle more ports. 2017-09-03 11:31:55 +01:00
Fabian Affolter
3ee4d1060f Update docstrings ()
* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update tomato.py

* Update isy994.py

* Lint + fix tests

* Lint
2017-04-29 22:04:49 -07:00
Greg Dowling
6a8a656fef Workround for wemo subscription bug. () 2017-04-23 23:18:43 -07:00
Paulus Schoutsen
76d2154820 Fix wemo discovery ()
* Fix wemo discovery

* Fix key
2017-04-19 21:25:45 -07:00
Greg Dowling
bbad15f853 Add subscription update for Wemo switches, fix bug in Insight switches, fix wemo motion bug, fix wemo discovery ()
* Fix wemo discovery.

* Bump wemo version, add subscription_update for basic switch, fix bug with turning insight switches off.

* Fix missed callback change for wemo motion.

* Regress netdisco changes.
2017-04-18 09:11:08 -07:00
Paulus Schoutsen
edf500e66b Upgrade netdisco to 1.0.0rc2 ()
* Upgrade netdisco to 1.0.0rc2

* fix tests
2017-04-11 20:10:02 -07:00
Greg Dowling
ecfe0770ed Bump pywemo version. () 2017-04-09 22:48:18 +01:00
Greg Dowling
534187f4cd Bump pywemo version. Fixes Osram/Sylvania Lightify tunable white bulbs. ()
Add an optional extended description…
2017-04-05 11:26:03 +02:00
Greg Dowling
c53de19246 Update Insight parameters using the subscription data. ()
* Update Insight parameters using the subscription dta.

* Minor refactor.

* Tidy.
2017-03-27 12:43:43 +02:00
Greg Dowling
896e0476ff Bump pywemo version. Improves notifications for insight devices. ()
Add an optional extended description…
2017-02-22 12:23:25 +01:00
Greg Dowling
9c400de64b Bump pywemo - fix for latest bridge firmware. () 2017-02-12 11:14:23 -08:00
Stu Gott
191d7b0a50 Add support for Wemo CoffeeMaker devices ()
* Add support for Wemo CoffeeMaker devices

* Add CoffeeMaker to WEMO_MODEL_DISPATCH
2017-01-24 22:10:10 -08:00
pavoni
dc937cc8cf Bump pywemo version. 2017-01-11 23:10:24 +00:00
Greg Dowling
fcbfcf0aa7 Bump pywemo version - changes port order for faster startup. () 2016-10-01 22:53:24 -07:00
Greg Dowling
1b718c62a3 Fix bug in wemo discovery caused by voluptuous addition. () 2016-08-29 07:45:48 -06:00
Greg Dowling
9fcfc213c7 Bump pywemo. () 2016-08-22 20:50:05 -07:00
Greg Dowling
482f32bb87 Add voluptuous to wemo. () 2016-08-20 14:03:57 +02:00
Greg Dowling
6fd0fe05f9 Bump to pywemo 0.4.5 - fixes bug with requests 2.11.0 () 2016-08-14 11:42:43 -07:00
Paulus Schoutsen
30f74bb3ca Migrate to generic discovery method ()
* Migrate to generic discovery method

* Add tests for discovery
2016-06-11 17:43:13 -07:00
pavoni
5fca9e170e Bump pywemo version to fix ssdp discovery encoding issue. 2016-06-02 09:58:54 +01:00
Jan Harkes
bb439129e6 Bump pywemo version to 0.4.2 2016-04-17 21:02:31 -04:00
pavoni
54aa7b80ea Bump pywemo to 0.4.1 - fix non native light issue. 2016-04-07 10:00:25 +01:00
pavoni
6ee086c0bb Fix thread termination on exit. 2016-04-01 15:36:33 +01:00
Jan Harkes
d0b7f6cfb0 Bump pywemo version 2016-04-01 10:02:55 -04:00
Jan Harkes
fd7d6a9d53 Bump pywemo to new version. 2016-03-21 10:05:06 -04:00
Jan Harkes
27aba5c834 Update to new pywemo bridge API
Support RGBW and tunable white lights.
2016-03-17 12:27:06 -04:00
pavoni
47d5c4f437 Bump pywemo version. 2016-03-17 11:40:25 +00:00
pavoni
179c6efff7 Bump pywemo version. 2016-03-16 23:25:00 +00:00
Greg Dowling
534308e461 Merge pull request 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
Fabian Affolter
b8a40457ee Update docstrings to match PEP257 2016-03-07 18:50:30 +01: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
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
Dan Smith
2b4be33a3d Fix wemo known device tracking
The wemo component was tracking devices by mac to avoid adding duplicates,
but this means we'd never be able to load more than one static wemo, since
they all have mac=None.

This changes the code to track by url, which has to be unique per wemo
anyway, and which we also have for even static wemos.
2016-02-27 20:56:02 -08:00
Dan Smith
5a126736e4 Fix static configured wemo devices
The new wemo code was pulling 'static' from the global config instead of
the wemo component config.
2016-02-27 20:11:32 -08:00
pavoni
bbf8897a51 Add LightSwitch to discovery, default unnown devices to switches for compatability. 2016-02-25 23:02:36 +00: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
Jan Harkes
afe564fb3f Move WeMo discovery into a common component 2016-02-21 22:23:00 -05:00
Paulus Schoutsen
5770cc03a1 Migrated wemo component to be part of a switch component 2014-11-08 17:20:43 -08:00
Paulus Schoutsen
1e136a2416 Logging is more efficient 2014-11-08 13:59:40 -08:00
Paulus Schoutsen
30ba447c64 More material love for interface 2014-10-29 00:47:55 -07:00
Paulus Schoutsen
997c2e8ef6 Components+configuration now loaded dynamically
A major change to the bootstrapping of Home Assistant decoupling the
knowledge in bootstrap for a more dynamic approach. This refactoring
also prepares the code for different configuration backends and the
loading components from different places.
2014-08-13 14:28:45 +02:00
Paulus Schoutsen
8e65afa994 Add support to hardcode hosts of WeMos 2014-04-24 22:53:35 -07:00
Paulus Schoutsen
2e10d7223a Re-organized core for better reusability 2014-04-24 00:40:45 -07:00