🏡 Open source home automation that puts local control and privacy first.
Go to file
Bob Clough 2e973c7572 Fix mqtt light brightness slider (#17075)
* Enable brightness slider for RGB

If we are using RGB with no brightness topic, the brighness slider
should still be visible, as we can scale the RGB amount to give us the
brightness.

* Output RGB scaled by brightness

If we are outputting to an RGB device, but do not have a dedicated
brightness topic set, when the brightness slider is changed, we should
output the current colour's HS, with the V coming from the brightness
slider.

* Brightness from RGB when we're not using a brightness topic

When we aren't using a brightness topic, set the brightness slider based
on the received value from an RGB -> HSV conversion.

* Test for new brightness state scaled by RGB

This adds a test to make sure the brightness stored in the state is
being computed correctly from the RGB value when a dedicated brightness
topic is not set.

* Changes from review

Fixes formatting of supported features flags, and checks HS colour
hasn't been set when operating in RGB-only mode

* Set optimistic brightness correctly in rgb mode

When we're using rgb mode to set the brightness, we want to set
optimistic brightness if:

we are running in optimistic mode
OR
the brightness state topic isn't set and we have a brightness command topic
OR
the rgb state topic isn't set and we don't have a brightness command topic

* Add test for turn_on in RGB brightness mode
2018-10-20 12:37:25 -04:00
.github Updates documentation repo URL in PR template (#16537) 2018-09-10 14:28:21 +02:00
docs Update developer doc links to developers.home-assistant.io (#16622) 2018-09-15 13:27:37 +02:00
homeassistant Fix mqtt light brightness slider (#17075) 2018-10-20 12:37:25 -04:00
script Adding id to lovelace cards in ui-lovelace.yaml (#17498) 2018-10-17 16:31:06 +02:00
tests Fix mqtt light brightness slider (#17075) 2018-10-20 12:37:25 -04:00
virtualization Update Vagrant Windows support (#17205) 2018-10-13 23:02:00 +02:00
.coveragerc Add sensor support to opentherm_gw (#17314) 2018-10-19 07:31:19 +02:00
.dockerignore Docker cleanup. (#8226) 2017-06-30 08:07:33 -07:00
.gitattributes Fix line endings [skipci] (#12333) 2018-02-11 23:07:28 -08:00
.gitignore Add script to run monkeytype typing on test suite (#14440) 2018-06-21 15:06:05 +02:00
.hound.yml Add .hound.yml 2016-11-13 11:34:09 -08:00
.ignore Include .ignore file for search utilities (#5290) 2017-01-16 22:52:53 -08:00
.isort.cfg Add isort configuration (#15278) 2018-07-03 09:47:14 +02:00
.travis.yml Try to fix coveralls unstable result (#15800) 2018-08-06 10:51:37 +02:00
CLA.md Update LICENSE.md and CLA.md to reflect the new Apache 2.0 license 2017-01-28 12:12:34 -08:00
CODEOWNERS danielhiversen as mill codeowner (#17571) 2018-10-18 08:12:09 +02:00
CODE_OF_CONDUCT.md Add organization docs 2017-01-22 16:21:20 -08:00
CONTRIBUTING.md Update developer doc links to developers.home-assistant.io (#16622) 2018-09-15 13:27:37 +02:00
Dockerfile remove-phantomjs-from-docker (#15936) 2018-08-14 11:53:08 +02:00
LICENSE.md Update license to official GitHub template (#16470) 2018-09-07 10:11:51 +02:00
MANIFEST.in Consolidate frontend (#9915) 2017-10-24 19:36:27 -07:00
README.rst Update developer doc links to developers.home-assistant.io (#16622) 2018-09-15 13:27:37 +02:00
mypy.ini Disable assuming Optional type for values with None default (#16029) 2018-08-17 20:22:49 +02:00
pylintrc Make pylint report non-LF linefeeds per the style guidelines (#16601) 2018-09-19 15:51:57 +02:00
requirements_all.txt Fix linky sensor login error (#17110) 2018-10-20 15:30:10 +02:00
requirements_docs.txt Upgrade Sphinx to 1.7.8 (#16459) 2018-09-06 12:31:30 +02:00
requirements_test.txt Upgrade pytest to 3.9.1 (#17598) 2018-10-18 21:31:52 +02:00
requirements_test_all.txt Upgrade pytest to 3.9.1 (#17598) 2018-10-18 21:31:52 +02:00
setup.cfg Add Python 3.7 classifier (#16645) 2018-09-24 11:11:24 +02:00
setup.py Upgrade aiohttp to 3.4.4 (#16486) 2018-09-10 10:39:51 +02:00
tox.ini Fail if dirty (#16839) 2018-09-25 20:47:51 +02:00

README.rst

Home Assistant |Build Status| |Coverage Status| |Chat Status| |Reviewed by Hound|
=================================================================================

Home Assistant is a home automation platform running on Python 3. It is able to track and control all devices at home and offer a platform for automating control.

To get started:

.. code:: bash

    python3 -m pip install homeassistant
    hass --open-ui

Check out `home-assistant.io <https://home-assistant.io>`__ for `a
demo <https://home-assistant.io/demo/>`__, `installation instructions <https://home-assistant.io/getting-started/>`__,
`tutorials <https://home-assistant.io/getting-started/automation-2/>`__ and `documentation <https://home-assistant.io/docs/>`__.

|screenshot-states|

Featured integrations
---------------------

|screenshot-components|

The system is built using a modular approach so support for other devices or actions can be implemented easily. See also the `section on architecture <https://developers.home-assistant.io/docs/en/architecture_index.html>`__ and the `section on creating your own
components <https://developers.home-assistant.io/docs/en/creating_component_index.html>`__.

If you run into issues while using Home Assistant or during development
of a component, check the `Home Assistant help section <https://home-assistant.io/help/>`__ of our website for further help and information.

.. |Build Status| image:: https://travis-ci.org/home-assistant/home-assistant.svg?branch=master
   :target: https://travis-ci.org/home-assistant/home-assistant
.. |Coverage Status| image:: https://img.shields.io/coveralls/home-assistant/home-assistant.svg
   :target: https://coveralls.io/r/home-assistant/home-assistant?branch=master
.. |Chat Status| image:: https://img.shields.io/discord/330944238910963714.svg
   :target: https://discord.gg/c5DvZ4e
.. |Reviewed by Hound| image:: https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg
   :target: https://houndci.com
.. |screenshot-states| image:: https://raw.github.com/home-assistant/home-assistant/master/docs/screenshots.png
   :target: https://home-assistant.io/demo/
.. |screenshot-components| image:: https://raw.github.com/home-assistant/home-assistant/dev/docs/screenshot-components.png
   :target: https://home-assistant.io/components/