Files
core/homeassistant/components/switch
David McNett 3beb87c54d New component 'insteon_plm' and related platforms (#6104)
* Connect to PLM and process simple protocol callbacks

* Baseline commit

* Connect to PLM and process simple protocol callbacks

* Baseline commit

* Connection working again

* Async add devices is working via callback now

* Beginning to interface with PLM library for control and state

* Deal with brightness in 255 levels with library

* Change sub names to match API changes

* Remove PLM-level update callback

* Support dimmable based on underlying PLM device attributes

* Expand to non-light platforms

* Stubs for turn on and off

* Current version of Python library

* Amend to use switch device attributes

* Use asyncio endpoints for control

* Add logging line

* Bump module version to 0.7.1

* Auto-load platforms, display device info/attributes

* Unify method name for getting a device attribute

* Require Current version of insteonplm module

* Import the component function in each platform in the balloob-recommend manner

* For consistency, handle switch state as onlevel just like lights

* Use level 0xff for on state, even with binary switches

Observing the behavior of a 2477S switch, it looks like even the non-dimmable
devices use 0x00 and 0xff for off/on respectively.  I was using 0x01 for on
previously, but that yields unnecessary state change callbacks when message
traffic ends up flipping the onlevel from 0xff to 0x01 or 0x01 to 0xff.

* Use sensorstate attribute for sensor onoff

* Move new device callback to devices attribute

* Add support for platform override on a device

* Bump version of insteonplm module

* Default overrides is an empty list

* Avoid calling private methods when doing common attributes

* Remove unused CONF_DEBUG for now

* flake8 and pylint code cleanup

* Move get_component to local function where it is needed

* Update to include insteonplm module.

* New files for insteon_plm component

* Legitimate class doctring instead of stub

* Docstring changes.

* Style changes as requested by @SEJeff

* Changes requested by @pvizeli

* Add @callback decorator to callback functions

* Opportunistic platform loading triggered by qualifying device detection

Instead of loading all the constituent platforms that comprise the insteon_plm
component, instead we defer and wait until we receive a callback for a device
that requires the platform.
2017-02-21 08:53:39 +01:00
..
2016-10-30 22:18:53 +01:00
2016-10-11 00:56:57 -07:00
2017-01-14 17:08:48 +01:00
2016-12-05 08:15:36 -08:00
2016-10-30 22:18:53 +01:00
2016-12-05 21:37:05 -08:00
2016-11-07 22:31:40 -08:00
2016-09-17 10:29:58 -07:00
2016-10-24 21:49:49 -07:00
2016-10-30 22:18:53 +01:00
2016-11-21 19:36:44 -08:00
2016-11-25 13:04:06 -08:00
2016-09-03 00:09:14 +02:00
2017-01-17 23:40:34 +01:00
2016-12-13 08:55:13 -08:00
2017-02-11 11:29:37 -08:00
2017-01-28 17:05:24 -08:00
2016-11-15 21:06:50 -08:00
2016-09-06 18:28:55 -07:00
2016-10-29 13:10:42 -07:00