🏡 Open source home automation that puts local control and privacy first.
Find a file
Petr Vraník 3efdf29dfa Centralize rainbird config and add binary sensor platform ()
* Update pyrainbird to version 0.2.0 to fix zone number issue:

- home-assistant/home-assistant/issues/24519
- jbarrancos/pyrainbird/issues/5
- https://community.home-assistant.io/t/rainbird-zone-switches-5-8-dont-correspond/104705

* requirements_all.txt regenerated

* code formatting

* pyrainbird version 0.3.0

* zone id

* rainsensor return state

* updating rainsensor

* new version of pyrainbird

* binary sensor state

* quiet in check format

* is_on instead of state for binary_sensor

* no unit of measurement for binary sensor

* no monitored conditions config

* get keys of dict directly

* removed redundant update of state

* simplified switch

* right states for switch

* raindelay sensor

* raindelay sensor

* binary sensor state

* binary sensor state

* reorganized imports

* doc on public method

* reformatted

* add irrigation service to rain bird, which allows you to set the duration

* rebased on konikvranik and solved some feedback

* add irrigation service to rain bird

* sensor types to constants

* synchronized register service

* patform discovery

* binary sensor as wrapper to sensor

* version 0.4.0

* new config approach

* sensors cleanup

* bypass if no zones found

* platform schema removed

* Change config schema to list of controllers

some small code improvements as suggested in CR:
 - dictionary acces by []
 - just return instead of return False
 - import order
 - no optional parameter name

* some small code improvements as suggested in CR:
 - supported platforms in constant
 - just return instead of return False
 - removed unused constant

* No single controller configuration

Co-Authored-By: Martin Hjelmare <marhje52@kth.se>

* pyrainbird 0.4.1

* individual switch configuration

* imports order

* generate default name out of entity

* trigger time required for controller

* incorporated CR remarks:
- constant fo rzones
- removed SCAN_INTERVAL
- detection of success on initialization
- removed underscore
- refactored if/else
- empty line on end of file
- hass as first parameter

* import of library on top

* refactored

* Update homeassistant/components/rainbird/__init__.py

Co-Authored-By: Martin Hjelmare <marhje52@kth.se>

* validate time and set defaults

* set defaults on right place

* pylint bypass

* iterate over values

* codeowner

* reverted changes:

* irrigation time just as positive integer. Making it complex does make
sense
* zone edfaults fullfiled at runtime. There is no information about
available zones in configuration time.

* codeowners updated

* accept timedelta in irrigation time

* simplified time calculation

* call total_seconds

* irrigation time as seconds.

* simplified schema
2019-09-26 11:24:03 +02:00
.devcontainer Improve startup of devcontainer () 2019-09-11 11:20:21 +02:00
.github Exempt 'Help wanted' issue from stale bot () 2019-09-22 08:31:01 -07:00
.vscode Improve startup of devcontainer () 2019-09-11 11:20:21 +02:00
docs Add missing helpers () 2019-02-12 20:52:02 -06:00
homeassistant Centralize rainbird config and add binary sensor platform () 2019-09-26 11:24:03 +02:00
script Add config flow to transmission () 2019-09-26 11:14:57 +02:00
tests Add config flow to transmission () 2019-09-26 11:14:57 +02:00
.codecov.yml Only comment with changed coverage on release PRs [skip-ci] () 2019-04-18 20:58:35 -07:00
.coveragerc Add config flow to transmission () 2019-09-26 11:14:57 +02:00
.dockerignore Docker cleanup. () 2017-06-30 08:07:33 -07:00
.gitattributes Fix line endings [skipci] () 2018-02-11 23:07:28 -08:00
.gitignore Ignore test output 2019-09-11 08:28:57 +02:00
.hound.yml Add .hound.yml 2016-11-13 11:34:09 -08:00
.ignore Include .ignore file for search utilities () 2017-01-16 22:52:53 -08:00
.pre-commit-config.yaml Run flake8 on pre-commit () 2019-08-17 21:15:55 -07:00
.readthedocs.yml Rename readthedocs file () 2018-10-23 17:39:17 +02:00
.travis.yml Test with 3.6.1 in Travis () 2019-09-02 15:51:59 +02: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 Fix release access for bram () 2019-09-17 15:59:12 +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
CLA.md Update LICENSE.md and CLA.md to reflect the new Apache 2.0 license 2017-01-28 12:12:34 -08:00
CODE_OF_CONDUCT.md Add organization docs 2017-01-22 16:21:20 -08:00
CODEOWNERS Centralize rainbird config and add binary sensor platform () 2019-09-26 11:24:03 +02:00
CONTRIBUTING.md Update developer doc links to developers.home-assistant.io () 2018-09-15 13:27:37 +02:00
Dockerfile.dev Improve startup of devcontainer () 2019-09-11 11:20:21 +02:00
LICENSE.md Update license to official GitHub template () 2018-09-07 10:11:51 +02:00
MANIFEST.in Consolidate frontend () 2017-10-24 19:36:27 -07:00
mypyrc Type check various base components () 2019-08-11 20:38:18 -07:00
pylintrc Add Black 2019-07-31 12:23:23 -07:00
pyproject.toml Add Black 2019-07-31 12:23:23 -07:00
README.rst Remove badges from README [skipci] () 2019-05-12 23:55:16 -07:00
requirements_all.txt Centralize rainbird config and add binary sensor platform () 2019-09-26 11:24:03 +02:00
requirements_docs.txt Upgrade Sphinx to 2.1.2 () 2019-06-23 07:49:40 +02:00
requirements_test.txt Fix CI 2019-09-24 20:47:24 -07:00
requirements_test_all.txt Add config flow to transmission () 2019-09-26 11:14:57 +02:00
setup.cfg Add reproduce state template () 2019-09-23 23:23:53 -07:00
setup.py Bump python-slugify to 3.0.4 () 2019-09-21 22:10:34 -07:00
tox.ini Upgrade pydocstyle to 4.0.0, do not run in tox () 2019-08-04 17:05:43 +02:00

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/