🏡 Open source home automation that puts local control and privacy first.
Go to file
Wouter 6fa87da5bd
Add Shelly script events entities (#135979)
* When an event is received from a script component on a shelly device, this event is send to the hass event bus

* Event emitted from a script will be send to the corresponding event entity

* Added tests for the shelly script event

* The event entity for script are now hidden by default

* Forgot to enable script event entities by default for the test

* Made serveral improvement for the shelly script event entity
- Added device name to event entity
- The event entity is now only created when a script has any event types
- The test for this entity now uses snapshots

* Shelly script event entities will not be create for the BLE scanning script and will now be automatically removed when the script no longer exsists

* Changed variable name to avoid confusion with _id

* Removed old const from first implementation and removed _script_event_listeners and used _event_listeners instead to listen for script events
2025-02-03 22:41:39 +02:00
.devcontainer Changed json.schemas.url for devcontainers (#135281) 2025-01-13 21:46:32 +01:00
.github Add dev docs and frontend PR links to PR template (#137034) 2025-01-31 20:03:20 -05:00
.vscode Changed json.schemas.url for devcontainers (#135281) 2025-01-13 21:46:32 +01:00
homeassistant Add Shelly script events entities (#135979) 2025-02-03 22:41:39 +02:00
machine Fix Raspberry Pi utilities installation on Alpine 3.19 (#110463) 2024-02-13 15:07:37 +01:00
pylint Fix recorder fixture typing (#136174) 2025-01-21 18:18:05 -10:00
rootfs Stop the Home Assistant Core container by default (#101105) 2023-09-30 10:43:07 +02:00
script Update tqdm to 4.67.1 (#137241) 2025-02-03 19:37:38 +01:00
tests Add Shelly script events entities (#135979) 2025-02-03 22:41:39 +02:00
.core_files.yaml Adjust light test helpers to use Kelvin, and cleanup unused helpers (#133048) 2024-12-12 16:49:25 +01:00
.dockerignore Add asdf tools dot file to gitignore (#128608) 2024-10-18 09:34:22 +02:00
.git-blame-ignore-revs Add ruff commit to git-blame-ignore-revs (#114229) 2024-03-26 12:16:55 +01:00
.gitattributes Make generated files appear as generated (#134991) 2025-01-09 17:26:46 +01:00
.gitignore Add asdf tools dot file to gitignore (#128608) 2024-10-18 09:34:22 +02:00
.hadolint.yaml Update base image to 2023.10.0 (#102126) 2023-10-18 19:11:41 +02:00
.pre-commit-config.yaml Prevent pylint out-of-memory failures (#136020) 2025-01-20 15:00:32 +01:00
.prettierignore Remove outdated prettier and yamllint `azure-*.yml` ignores (#112819) 2024-03-09 14:44:05 +02:00
.strict-typing Enable strict typing for HEOS (#136797) 2025-01-29 07:28:13 +01:00
.yamllint Remove outdated prettier and yamllint `azure-*.yml` ignores (#112819) 2024-03-09 14:44:05 +02:00
CLA.md
CODEOWNERS Add codeowner to Home Connect (#137029) 2025-01-31 12:36:40 -06:00
CODE_OF_CONDUCT.md Update codespell to 2.3.0 (#118001) 2024-05-24 08:22:29 +02:00
CONTRIBUTING.md
Dockerfile Bump uv to 0.5.21 (#136086) 2025-01-20 17:21:17 +01:00
Dockerfile.dev Update devcontainer to Python 3.13 (#132313) 2024-12-13 09:22:01 +01:00
LICENSE.md Update license to official GitHub template (#16470) 2018-09-07 10:11:51 +02:00
MANIFEST.in Move remaining keys to `setup.cfg` (#65154) 2022-01-28 20:18:09 -08:00
README.rst Add Open Home Foundation logo to README (#127111) 2024-09-30 16:49:30 +02:00
build.yaml Update Home Assistant base image to 2024.12.0 (#133558) 2024-12-19 10:48:43 +01:00
codecov.yml Remove coveragerc (#121286) 2024-07-05 11:03:31 +02:00
mypy.ini Enable strict typing for HEOS (#136797) 2025-01-29 07:28:13 +01:00
pyproject.toml Update pyOpenSSL to 25.0.0 (#137236) 2025-02-03 14:46:49 +01:00
requirements.txt Update pyOpenSSL to 25.0.0 (#137236) 2025-02-03 14:46:49 +01:00
requirements_all.txt Update frontend to 20250203.0 (#137263) 2025-02-03 19:37:12 +01:00
requirements_test.txt Update tqdm to 4.67.1 (#137241) 2025-02-03 19:37:38 +01:00
requirements_test_all.txt Update frontend to 20250203.0 (#137263) 2025-02-03 19:37:12 +01:00
requirements_test_pre_commit.txt Bump ruff to 0.9.1 (#135197) 2025-01-14 11:46:12 +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://demo.home-assistant.io>`__, `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-integrations|

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.

|ohf-logo|

.. |Chat Status| image:: https://img.shields.io/discord/330944238910963714.svg
   :target: https://www.home-assistant.io/join-chat/
.. |screenshot-states| image:: https://raw.githubusercontent.com/home-assistant/core/dev/.github/assets/screenshot-states.png
   :target: https://demo.home-assistant.io
.. |screenshot-integrations| image:: https://raw.githubusercontent.com/home-assistant/core/dev/.github/assets/screenshot-integrations.png
   :target: https://home-assistant.io/integrations/
.. |ohf-logo| image:: https://www.openhomefoundation.org/badges/home-assistant.png
   :alt: Home Assistant - A project from the Open Home Foundation
   :target: https://www.openhomefoundation.org/