🏡 Open source home automation that puts local control and privacy first.
Go to file
Sebastian Kügler c527e0f164 Fix rest_command when server is unreachable (#26948)
* fix rest_command when server is unreachable

When a server doesn't exist, the connection fails immediately, rather
than waiting for a timeout. This means that the async handler is never
reached, and the request variable never filled, yet it's used in the
client error exception handler, so this one bugs out.

By using the command_config, we avoid using the potentially unassigned
request variable, avoiding this problem.

This patch makes scripts work that have a rest_command in them which
fails due to a server being offline.

* render template_url

instead of printing the template object

* fix formatting

* fix format using black

* only render url once

* blacken...
2019-09-30 09:06:10 +02:00
.devcontainer Improve startup of devcontainer (#26572) 2019-09-11 11:20:21 +02:00
.github Exempt 'Help wanted' issue from stale bot (#26829) 2019-09-22 08:31:01 -07:00
.vscode Improve startup of devcontainer (#26572) 2019-09-11 11:20:21 +02:00
docs Add missing helpers (#21021) 2019-02-12 20:52:02 -06:00
homeassistant Fix rest_command when server is unreachable (#26948) 2019-09-30 09:06:10 +02:00
script Update scaffold text 2019-09-27 13:08:38 -07:00
tests Add availability_template to Template Vacuum platform (#26514) 2019-09-28 08:02:46 -04:00
.codecov.yml Only comment with changed coverage on release PRs [skip-ci] (#23224) 2019-04-18 20:58:35 -07:00
.coveragerc Add config flow to transmission (#26434) 2019-09-26 11:14:57 +02:00
.dockerignore
.gitattributes
.gitignore Ignore test output 2019-09-11 08:28:57 +02:00
.hound.yml
.ignore
.pre-commit-config.yaml Run flake8 on pre-commit (#26028) 2019-08-17 21:15:55 -07:00
.readthedocs.yml Rename readthedocs file (#17718) 2018-10-23 17:39:17 +02:00
.travis.yml Bump Travis timeout to 50 minutes (#26978) 2019-09-27 14:20:00 -07:00
CLA.md
CODEOWNERS Add xbox live custom update interval (#26939) 2019-09-27 08:02:58 +02:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md Update developer doc links to developers.home-assistant.io (#16622) 2018-09-15 13:27:37 +02:00
Dockerfile.dev Improve startup of devcontainer (#26572) 2019-09-11 11:20:21 +02:00
LICENSE.md Update license to official GitHub template (#16470) 2018-09-07 10:11:51 +02:00
MANIFEST.in
README.rst Remove badges from README [skipci] (#23815) 2019-05-12 23:55:16 -07:00
azure-pipelines-ci.yml Update azure-pipelines-ci.yml for Azure Pipelines 2019-09-16 10:34:31 +02:00
azure-pipelines-release.yml Update azure-pipelines-release.yml for Azure Pipelines 2019-09-27 17:58:16 +02:00
azure-pipelines-translation.yml Update azure-pipelines-translation.yml for Azure Pipelines 2019-09-05 12:09:21 +02:00
azure-pipelines-wheels.yml Update azure-pipelines-wheels.yml for Azure Pipelines 2019-09-13 22:29:39 +02:00
mypyrc Type hint additions (#26831) 2019-09-29 20:07:49 +03:00
pylintrc Add Black 2019-07-31 12:23:23 -07:00
pyproject.toml Add Black 2019-07-31 12:23:23 -07:00
requirements_all.txt Bump zha quirks to 0.0.26 (#27051) 2019-09-29 20:33:42 -04:00
requirements_docs.txt Upgrade Sphinx to 2.1.2 (#24693) 2019-06-23 07:49:40 +02:00
requirements_test.txt Upgrade pytest to 5.2.0 (#27058) 2019-09-29 23:00:39 +02:00
requirements_test_all.txt Upgrade pytest to 5.2.0 (#27058) 2019-09-29 23:00:39 +02:00
setup.cfg Add reproduce state template (#26866) 2019-09-23 23:23:53 -07:00
setup.py Bump python-slugify to 3.0.4 (#26801) 2019-09-21 22:10:34 -07:00
tox.ini Upgrade pydocstyle to 4.0.0, do not run in tox (#25667) 2019-08-04 17:05:43 +02:00

README.rst

Home Assistant |Chat Status|
=================================================================================

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.

.. |Chat Status| image:: https://img.shields.io/discord/330944238910963714.svg
   :target: https://discord.gg/c5DvZ4e
.. |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/