Commit graph

24 commits

Author SHA1 Message Date
Assaf Inbal
72ad1d8d7c Added support for exposing light features (#2828) 2016-08-15 23:07:07 -07:00
Jan Harkes
a7016e4b32 Move CONF_STATE_TOPIC, CONF_COMMAND_TOPIC and CONF_RETAIN to mqtt component. 2016-04-06 22:51:39 -04:00
Jan Harkes
3383854506 Move CONF_OPTIMISTIC to homeassistant.const. 2016-04-06 22:51:39 -04:00
Jan Harkes
29a8403741 Config validation for MQTT light platform. 2016-04-06 22:51:38 -04:00
Paulus Schoutsen
025713ee41 Type checks for MQTT config 2016-03-10 21:42:17 -08:00
Fabian Affolter
7e8e91ef3c Fix PEP257 issues 2016-03-07 22:08:21 +01:00
Paulus Schoutsen
b47f1c3a96 MQTT Light: fix brightness issues 2016-03-07 08:54:08 -08:00
St. John Johnson
e525b6e0a5 Add brightness scale support for MQTT Lights.
Converts 0..255 values that HA expects into a device 0..SCALE value
Example:
  HA considers "hall light" at 25 brightness or 10% of 255
  Device considers "hall light" at 100 brightness or 10% of 1000

This allows our existing MQTT devices to not change their data format to be used in HA
2016-02-26 10:38:07 -08:00
Fabian Affolter
582394bc3b Modify import of template and PEP257 2016-02-23 21:19:22 +01:00
Paulus Schoutsen
8f70630790 MQTT Light to expose assumed_state if optimistic 2016-02-20 17:17:22 -08:00
Paulus Schoutsen
e80309c03c Fix imports (using isort) 2016-02-18 21:27:50 -08:00
Paulus Schoutsen
177590fd65 Simplify MQTT light code 2015-12-19 19:45:28 -08:00
Paulus Schoutsen
90c705354a Add template support to MQTT lights 2015-12-19 19:15:05 -08:00
Paulus Schoutsen
90eab17ea6 Fix MQTT light bugs 2015-11-29 23:23:27 -08:00
Paulus Schoutsen
957b09707d Fixes for MQTT light with RGB colors 2015-11-28 12:46:35 -08:00
Nolan Gilley
776324807e last PR was dumb. this fix is better. 2015-11-13 14:58:49 -05:00
Nolan Gilley
d68a4b52f1 Remove rgb color if it's not an rgb bulb. 2015-11-13 14:32:47 -05:00
Fabian Affolter
d993f4014e Add link to docs 2015-11-13 08:29:54 +01:00
hexxter
31826ab263 redesigned mqtt light an first steps with the unittest system 2015-10-31 19:26:03 +01:00
root
b66e4f1e15 two different demo lights on without RGB and one with RGB support.
and code cleanup more pylint aligned
2015-10-26 15:05:01 +01:00
root
a8c2cc4c33 rework for flake8 errors done 2015-10-25 23:38:24 +01:00
root
538f8545f7 fix a bug after the pylint rework 2015-10-25 23:04:43 +01:00
root
7cfce94dfb pylint rework for light/mqtt 2015-10-25 22:58:07 +01:00
root
469d0619ba mqtt light component 2015-10-25 21:48:01 +01:00