Commit graph

80 commits

Author SHA1 Message Date
jumpkick
a718e92708 Update wemo.py
trailing whitespace... (argh... the bot should just trim it)
2017-02-15 15:40:02 -05:00
jumpkick
44d274e428 Update wemo.py
* continuation line under-indented for visual indent
2017-02-15 15:38:41 -05:00
jumpkick
c404fb7142 Update wemo.py
* Reordered datetime import
* Spaces by 4
2017-02-15 15:34:42 -05:00
jumpkick
29c7987453 Improvements for WeMo Insight switches
* Changes current power units to watts
* Adds power on times and additional totals
2017-02-14 18:29:23 -05: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
Paulus Schoutsen
0f59bb208c Migrate callbacks to use schedule_update_ha_state ()
* Migrate callbacks to use schedule_update_ha_state

* Migrate MQTT sensor callback to async

* Migrate wemo to not update inside schedule_update_ha_state

* Make MQTT switch async

* Fix nx584 test

* Migrate tellstick callback

* Migrate vera callback

* Alarm control panel - manual: use async callbacks

* Run the switch rest tests that work
2016-11-17 07:34:46 -08:00
Paulus Schoutsen
f006b00dc1 Fix spelling schedule_update_ha_state () 2016-11-16 08:26:29 -08:00
Pascal Vizeli
41aaeb715a Convert switch to AsnycIO ()
* Convert switch to AsnycIO

* Move update entity to service

* use time better for faster handling

* Change to suggestion from paulus

* Use new shedule_update_ha_state

* fix lint

* minimize executor calls
2016-11-15 21:06:50 -08:00
pavoni
fe2adff017 Handle startup race condition. 2016-03-14 10:29:12 +00:00
Fabian Affolter
d6eab03a61 Remove parenthesis 2016-03-08 18:05:01 +01:00
Fabian Affolter
49ebc6d0b0 Fix PEP257 issues 2016-03-08 13:35:39 +01:00
pavoni
b2d32114c8 Fix typo. 2016-02-26 08:28:17 +00:00
pavoni
ddbceebd65 Cast standby_state to int before testing. 2016-02-26 00:16:33 +00:00
pavoni
86973226b1 Remove ghost comment. 2016-02-25 23:13:20 +00:00
pavoni
72144945b4 Move standby from state to attribute, add optimistic switch status. 2016-02-25 22:46:14 +00:00
Jan Harkes
afe564fb3f Move WeMo discovery into a common component 2016-02-21 22:23:00 -05:00
Jan Harkes
368ad93eb6 Only add discovered switches instead of any WeMo device. 2016-02-21 21:57:53 -05:00
Paulus Schoutsen
e80309c03c Fix imports (using isort) 2016-02-18 21:27:50 -08:00
pavoni
98d18c3060 Bump pywemo version. 2016-02-18 19:32:30 +00: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
Paulus Schoutsen
f08b77dc4c Clean up state_attributes vs device_state_attributes 2016-02-06 22:34:24 -08: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
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
pavoni
bb8af3a2d5 Bump pywemo version, turn off polling, tidy trace. 2016-01-08 16:00:26 +00:00
pavoni
6773c35760 Bump pywemo version 2015-12-31 18:47:12 +00:00
pavoni
41a36df801 Update pywemo version 2015-12-30 11:54:21 +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
pavoni
3f151428b7 Update pywemo version, use wildcard filter 2015-12-24 09:35:02 +00: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
pavoni
bbf73e0bae Bump pywemo version - fixed scan device = None bug 2015-11-27 19:05:15 +00:00
Fabian Affolter
97f9f8aa49 Update link to docs (Jekyll 3 update) 2015-11-09 13:12:18 +01:00
Fabian Affolter
b3b2f2e326 Fix pylint and flake issues 2015-10-28 00:18:03 +01:00
pavoni
dbc05450a0 Bump requirements_all.txt version, remove pylint disable 2015-10-26 16:32:12 +00:00
pavoni
ef6c209c6f Revise for clarity, disable pylink check 2015-10-26 09:03:57 +00:00
pavoni
0826ae2742 Revise pywemo version, update discovery.device_from_description parameters 2015-10-26 08:37:13 +00:00
Fabian Affolter
4f3b3a9e34 Use the logger the same way as other platforms 2015-10-23 22:53:58 +02:00
Paulus Schoutsen
64a73f6b67 Update pywemo dependency 2015-09-30 00:12:00 -07:00
pavoni
80c89d218b Avoid throwing an exception when a wemo device with attributes isn't found 2015-09-27 21:05:45 -07:00
Fabian Affolter
78a555faf5 Update docstring (config file) and attempt to honor PEP0257 2015-09-07 19:39:16 +02:00
pavoni
794a11db21 Remove debug statements! 2015-08-31 16:33:12 +01:00