Commit graph

61 commits

Author SHA1 Message Date
Adam Mills
89c7c80e42 Use hue/sat as internal light color interface ()
* Accept and report both xy and RGB color for lights

* Fix demo light supported_features

* Add new XY color util functions

* Always make color changes available as xy and RGB

* Always expose color as RGB and XY

* Consolidate color supported_features

* Test fixes

* Additional test fix

* Use hue/sat as the hass core color interface

* Tests updates

* Assume MQTT RGB devices need full RGB brightness

* Convert new platforms

* More migration

* Use float for HS API

* Fix backwards conversion for KNX lights

* Adjust limitless min saturation for new scale
2018-03-18 15:00:29 -07:00
Anders Melchiorsen
19a529e917 Fix limitlessled color temperature ()
* Adjust limitlessled mired range

* Do temperature conversion on a Kelvin scale
2018-03-08 17:47:53 -08:00
Anders Melchiorsen
5ad0baf128 Add limitlessled night effect () 2018-02-20 23:08:45 -08:00
rubenverhoef
5d29d88888 Added support for milight single channel dimmer () 2018-02-20 22:30:19 +01:00
Anders Melchiorsen
dc21c61a44
LimitlessLED assumed state ()
* Use assumed state for LimitlessLED

* Replace inheritance with feature tests

* Clean up

* Clean up conversion methods

* Clamp temperature
2018-02-19 23:11:21 +01:00
Anders Melchiorsen
28964806c5 Downgrade limitlessled to 1.0.8 () 2018-02-13 22:58:31 -08:00
Otto Winter
678f284015 Upgrade pylint to 1.8.2 ()
* Upgrade pylint to 1.8.1

* Fix no-else-return

* Fix bad-whitespace

* Fix too-many-nested-blocks

* Fix raising-format-tuple

See https://github.com/PyCQA/pylint/blob/master/doc/whatsnew/1.8.rst

* Fix len-as-condition

* Fix logging-not-lazy

Not sure about that TEMP_CELSIUS though, but internally it's probably just like if you concatenated any other (variable) string

* Fix stop-iteration-return

* Fix useless-super-delegation

* Fix trailing-comma-tuple

Both of these seem to simply be bugs:
 * Nest: The value of self._humidity never seems to be used anywhere
 * Dovado: The called API method seems to expect a "normal" number

* Fix redefined-argument-from-local

* Fix consider-using-enumerate

* Fix wrong-import-order

* Fix arguments-differ

* Fix missed no-else-return

* Fix no-member and related

* Fix signatures-differ

* Revert "Upgrade pylint to 1.8.1"

This reverts commit af78aa00f125a7d34add97b9d50c14db48412211.

* Fix arguments-differ

* except for device_tracker

* Cleanup

* Fix test using positional argument

* Fix line too long

I forgot to run flake8 - shame on me... 🙃

* Fix bad-option-value for 1.6.5

* Fix arguments-differ for device_tracker

* Upgrade pylint to 1.8.2

* 👕 Fix missed no-member
2018-02-11 09:20:28 -08:00
Slava
a9e2dd3427 Update limitlessled requirement to v1.0.9 ()
* Update limitlessled requirement to v1.0.9

* trigger cla

* take back empty line
2018-02-10 12:59:04 -08:00
Miha Lunar
a95fe588ca LimitlessLED: Configurable fade-out behavior ()
* Configurable fade-out behavior

Adds a per-group "fade" option with values of "out" (default) or "none".
By default, the lights are faded out when turned off, but this can cause usability issues when manually switching wall switches, since the bulbs turn back on at minimum brightness.

* Changed fade value from enum to boolean

* No need to fall back to default since voluptuous takes care of that.
2017-06-21 22:22:24 -07:00
corneyl
76b747edd6 Updated limitlessled requirement to v1.0.8 () 2017-05-17 09:05:34 -07:00
Fabian Affolter
71b4afb780 Update docstrings and log messages () 2017-05-10 12:06:57 +02:00
corneyl
6e6a000217 Upgrade limitlessled to 1.0.7 () 2017-05-10 10:45:33 +02:00
Anders Melchiorsen
dbd6f7e4ed Reverse limitlessled color_temp range ()
Reverse limitlessled color_temp range
2017-05-03 23:32:49 +02:00
Alok Saboo
86cfc2a0ed Updated docstrings ()
* Updated docstrings

* Updated docstrings

* Updated docstrings

* Update docstrings

* Update more docstrings
2017-04-30 20:10:08 -07:00
Nick Sabinske
c817ab08b7 Fix bridge-led support in limitlessled.py ()
Addressing  . Feedback from github & forums is the bridge_led feature never worked and defining the bridge LED as another group+bulb type is the right way to do this in the limitlessled component.
2017-03-25 15:32:57 +01:00
Jan Losinski
c32300a386 Bump limitlessled dependency to 1.0.5. ()
This fixes issue .
2017-03-02 14:18:44 +01:00
Nate
d5bdf7783e light.transition now supports float instead of int in order to be able to perform faster transitions () 2017-02-26 21:21:12 -08:00
happyleavesaoc
58e707a264 Limitless light: bump version; fix conf () 2017-02-15 08:45:04 +02:00
Sören Oldag
a06f89085d Added limitlessled support for bridge v6 and RGBWW bulbs. ()
* Added limitlessled support for bridge v6 and RGBWW bulbs.

* Fix minor code style issue.

* Updated requirements_all.txt
2017-02-14 11:12:32 +01:00
Pascal Vizeli
bde7176b3c Migrate light component to async () 2016-11-30 13:33:38 -08:00
Paulus Schoutsen
ee5f228309 Make services yield ()
* Make services yield

* Disable pylint abstract-method check

* add input_select

* add input_slider

* change to async vers.

* fix lint

* yield on add_entities as other components does
2016-11-03 18:32:14 -07:00
Fabian Affolter
9f2aae1357 Maintenance 2nd ()
* Add link to docs

* Fix link

* Update line breaks

* Update ordering

* Align vera platofrm to only use add_devices
(instead od add_devices_callback)

* Remove line break

* Use consts

* Update ordering

* Update ordering

* Use const, create default name, use string formatting

* Update ordering

* Use const

* Update import style

* Update ordering and line breaks

* update line breaks

* Set default port

* Set defaults and update ordering

* Update ordering

* Minor style updates

* Update ordering, defaults, line breaks, and readability

* Use constants

* Add line breaks

* use string formatting

* Update line breaks

* Update logger
2016-10-30 09:58:34 +01:00
Paulus Schoutsen
1f1ac02457 Merge branch 'pr/3552' into dev 2016-10-01 22:20:58 -07:00
Fabian Affolter
6632747543 Migrate to voluptuous () 2016-09-29 19:06:28 -07:00
happyleaves
559f63bfc3 bump limitlessled version 2016-09-27 16:30:26 -04:00
Assaf Inbal
72ad1d8d7c Added support for exposing light features () 2016-08-15 23:07:07 -07:00
Paulus Schoutsen
68df3deee0 ABC consistent not implemented behavior () 2016-06-24 21:27:40 -07:00
Fabian Affolter
1fa2f23864 Revert "Upgrade limitlessled to 1.1.0"
This reverts commit 2e2537de2a.
2016-03-11 23:37:32 +01:00
Fabian Affolter
2e2537de2a Upgrade limitlessled to 1.1.0 2016-03-11 23:27:18 +01:00
Fabian Affolter
7e8e91ef3c Fix PEP257 issues 2016-03-07 22:08:21 +01:00
Paulus Schoutsen
e80309c03c Fix imports (using isort) 2016-02-18 21:27:50 -08:00
happyleaves
f173f8b88b fix 2015-11-30 18:47:04 -05:00
happyleaves
6e0c30d9f7 warn -> warning 2015-11-29 18:29:37 -05:00
happyleaves
32003daf3f refactor legacy; move imports 2015-11-29 17:15:06 -05:00
happyleaves
5fba67f6c3 limitlessled improvements 2015-11-29 17:15:06 -05:00
Paulus Schoutsen
d68263d5c4 Another LimitlessLED color fix 2015-11-09 21:55:49 -08:00
Paulus Schoutsen
dafc0ced6b Update limitlessled with lists for colors 2015-11-09 16:55:10 -08:00
Fabian Affolter
97f9f8aa49 Update link to docs (Jekyll 3 update) 2015-11-09 13:12:18 +01:00
Paulus Schoutsen
95320f39b3 Light: base color now in RGB instead of XY 2015-11-07 01:25:33 -08:00
happyleaves
7b968f6a6b re-fix conditionals 2015-11-02 18:11:58 -05:00
happyleaves
566712023d consolidate conditionals 2015-11-02 18:08:17 -05:00
happyleaves
3cd89f8474 add disco, white effects 2015-11-02 18:08:17 -05:00
Paulus Schoutsen
18747f8ae1 Update some docs 2015-10-25 23:12:10 -07:00
Michael Auchter
52ebb2fb3b limitlessled: Add support for White Limitless LED bulbs
LimitlessLED bulbs actually come in three flavors: RGB, RGBW, and White. The
ledcontroller library used to control these bulbs only supports RGBW and White
bulbs. This changelist adds support for the White bulb variant.

The White bulbs are a bit annoying in that they don't support absolute
brightness or color temperature adjustments; they only support a relative
"increase" or "decrease" adjustment. This, along with the unreliable, one-way
communication medium that requires repeats to be "sure" that the bulb received a
command, makes implementing brightness control difficult. So, for now, these
bulbs are more limited than the RGBW variants and only support On/Off control.
2015-10-01 22:38:50 -05:00
Michael Auchter
ea7ca48ba2 limitlessled: Add support for previous configuration format
Quick hack that preserves functionality of existing configuration formats to
ease upgrades.
2015-10-01 22:38:50 -05:00
Michael Auchter
ab80af099c limitlessled: Add support for multiple bridges
This adds support for a controlling multiple Limitless LED bridges.
2015-10-01 22:38:50 -05:00
Michael Auchter
34531895a0 limitlessled: Use LedControllerPool
This change is in preparation for adapting this component to support multiple
LimitlessLED bridges. Ultimately LedControllerPool helps to maintain the
mandatory 100ms pauses across multiple controllers so messages are reliably
received.
2015-10-01 22:38:50 -05:00
Michael Auchter
645cd89406 limitlessled: fix docstring 2015-10-01 22:38:49 -05:00
Fabian Affolter
e824bc4c55 Update docstring (config file) and attempt to honor PEP0257 2015-09-07 19:21:33 +02:00
Ryan Kraus
893ae15042 Changed component REQUIREMENTS to absolute versions. 2015-08-29 21:39:50 -04:00