🏡 Open source home automation that puts local control and privacy first.
Go to file
Shay Levy 76537305e2
Add logbook and device trigger platforms to Shelly (#44020)
* Add logbook and device trigger platforms to Shelly

Add `logbook` platform for describing “shelly.click” event
Add `device_trigger` platform for adding automation based on click events:

Example of logbook event:
Shelly 'single' click event for Test I3 channel 3 was fired.
(Test I3 is the name of the device)

Example of automation triggers:
First button triple clicked
First button long clicked and then single clicked
First button double clicked
First button long clicked
First button single clicked and then long clicked
First button single clicked
Second button triple clicked
..
Second button single clicked

* Fix codespell

* Remove pylint added for debug

* Add tests

* Rebase

* Fix Rebase & Apply PR review suggestions

Fix tests after rebasing
Use `INPUTS_EVENTS_DICT` for input triggers
Apply PR suggestions
2021-01-04 23:10:42 +01:00
.devcontainer Use !input instead of !placeholder (#43820) 2020-12-01 18:21:36 +01:00
.github Bump dessant/lock-threads from v2.0.1 to v2.0.3 (#44806) 2021-01-04 09:43:43 +01:00
.vscode Add additional debug launch methods in launch.json (#44419) 2020-12-21 17:11:53 +01:00
docs Remove Travis CI config (#44443) 2020-12-22 13:49:42 +01:00
homeassistant Add logbook and device trigger platforms to Shelly (#44020) 2021-01-04 23:10:42 +01:00
machine adding support for hardkernel odroid-c4 (#42719) 2020-11-01 20:47:20 +01:00
rootfs Disable jemalloc via specific ENV variable, see Issue#36237 (#36274) 2020-06-03 01:08:50 +02:00
script Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
tests Add logbook and device trigger platforms to Shelly (#44020) 2021-01-04 23:10:42 +01:00
.coveragerc Add Ondilo ico integration (#44728) 2021-01-04 08:09:01 -08:00
.dockerignore Integrate dockerbuild (#33168) 2020-03-23 00:39:37 +01:00
.gitattributes highlight Dockerfile.dev as Dockerfile in github ui (#36933) 2020-06-22 14:45:57 +02:00
.gitignore Fix too agressive .gitignore (#41677) 2020-10-12 16:48:42 +02:00
.hadolint.yaml Add hadolint to CI (#34758) 2020-04-27 12:09:31 +02:00
.ignore Include .ignore file for search utilities (#5290) 2017-01-16 22:52:53 -08:00
.pre-commit-config.yaml Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00
.prettierignore Rename translations dir for integrations (#34494) 2020-04-21 16:11:05 -07:00
.readthedocs.yml Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00
.yamllint Add yamllint (in pre-commit and CI) (#33676) 2020-04-05 10:33:45 +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 Add Ondilo ico integration (#44728) 2021-01-04 08:09:01 -08:00
CODE_OF_CONDUCT.md Update Code of Conduct to 2.0 (#36142) 2020-05-25 19:40:40 -04:00
CONTRIBUTING.md Use core GitHub URL in contributing guidelines (#41083) 2020-10-02 20:42:33 +02:00
Dockerfile Block typing from being installed (#37707) 2020-08-26 14:51:41 +02:00
Dockerfile.dev Fix Dockerfile.dev for VS Code devcontainer (#37801) 2020-07-12 16:18:08 -07: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 README.rst to avoid redirects (#44519) 2020-12-26 10:05:41 +01:00
azure-pipelines-ci.yml Drop Python 3.7 support (#43805) 2021-01-01 13:47:01 +01:00
azure-pipelines-release.yml Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00
azure-pipelines-translation.yml Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00
azure-pipelines-wheels.yml Update azure-pipelines-wheels.yml 2020-09-13 15:38:02 +02:00
build.json Update docker base image 2021.01.0 (#44761) 2021-01-02 12:07:52 +01:00
codecov.yml Update Codecov.io configuration (#33783) 2020-04-07 09:01:01 -07:00
pyproject.toml Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00
requirements.txt Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00
requirements_all.txt Fix zeroconf outgoing dns compression corruption for large packets (#44828) 2021-01-04 21:18:54 +01:00
requirements_docs.txt Refactor API documentation (#33217) 2020-03-25 13:21:04 -07:00
requirements_test.txt Drop asynctest (#44746) 2021-01-01 22:31:56 +01:00
requirements_test_all.txt Fix zeroconf outgoing dns compression corruption for large packets (#44828) 2021-01-04 21:18:54 +01:00
requirements_test_pre_commit.txt Upgrade codespell to 2.0.0 (#44695) 2020-12-31 19:14:07 +01:00
setup.cfg Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00
setup.py Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00
tox.ini Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00

README.rst

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

Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.

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/>`__ 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/architecture_index/>`__ and the `section on creating your own
components <https://developers.home-assistant.io/docs/creating_component_index/>`__.

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/integrations/