🏡 Open source home automation that puts local control and privacy first.
Go to file
Raman Gupta 6db4075a23
Add OZW node config parameters websocket commands (#40527)
* add websocket commands to retrieve and set config parameters for a node

* move set_config_parameter into generic function and refactor service and WS API

* add payload to return to make service call behave the same way it did before

* create response class

* update error message to pass tests

* move things a bit to reduce LOC

* add tests

* handle logging errors better and make new response class more generic to prepare for lock user code work

* remove unused function parameter

* invert check

* add additional error checking

* refactor a bit to remove repeat code

* revert log msg change

* one more refactor to create generic get_config_parameters function

* change if logic for consistency

* fix test

* add support to provide bool value in set_config_parameter service call

* standardize parameter names on service call

* add test coverage

* fix tests and message sending

* remove unnecessary logging import

* fix one test to get missing coverage

* update per martin and kpines reviews

* remove false assertion

* string line length

* add support for Decimal config param, remove node instance ID as input, and move helper functions to node.py

* cast Decimal appropriately

* revert change to support Decimal for config params since they are not supported as a config param type

* revert to using error arguments to make next PR for WS lock commands easier

* switch to class method and add guard for list Value not being a number

* update logic to use new openzwavemqtt util methods

* add support for bitsets

* use parent exception class

* bump openzwavemqtt version, remove node.py from .coveragerc and put file references in the right place

* add comment

* improve config validation

* remove bitset support from config validation

* re-add bitset support with some additional tests

* move send_result out of try block
2020-10-05 21:47:28 +02:00
.devcontainer Fixes invalid JSON syntax in devcontainer (#29911) 2019-12-13 12:41:56 +01:00
.github Bump actions/upload-artifact from v2.1.4 to v2.2.0 (#41037) 2020-10-02 11:26:09 +02:00
.vscode Constraints pt3 (#37803) 2020-07-13 15:55:20 +02:00
docs Use core GitHub URL in all files (#41089) 2020-10-03 00:04:11 +02:00
homeassistant Add OZW node config parameters websocket commands (#40527) 2020-10-05 21:47:28 +02:00
rootfs Disable jemalloc via specific ENV variable, see Issue#36237 (#36274) 2020-06-03 01:08:50 +02:00
script Scaffold: correct import (#40998) 2020-10-02 08:32:03 +02:00
tests Add OZW node config parameters websocket commands (#40527) 2020-10-05 21:47:28 +02:00
.coveragerc Add OZW node config parameters websocket commands (#40527) 2020-10-05 21:47:28 +02: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 Add .env file to .gitignore for vscode environment settings (#35200) 2020-05-17 15:17:05 +02:00
.hadolint.yaml Add hadolint to CI (#34758) 2020-04-27 12:09:31 +02:00
.ignore
.pre-commit-config.yaml Upgrade flake8 to 3.8.4 (#41117) 2020-10-03 10:11:22 +02:00
.prettierignore Rename translations dir for integrations (#34494) 2020-04-21 16:11:05 -07:00
.readthedocs.yml Drop Python 3.6 support (#29978) 2019-12-16 07:29:19 +01:00
.travis.yml Upgrade pylint to 2.6.0 (#39363) 2020-08-29 07:59:24 +02:00
.yamllint Add yamllint (in pre-commit and CI) (#33676) 2020-04-05 10:33:45 +02:00
CLA.md
CODEOWNERS Add Profiler integration (#41175) 2020-10-05 07:57:07 -05: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 Adjusts repository README (#29805) 2019-12-10 09:22:37 +01:00
azure-pipelines-ci.yml Block typing from being installed (#37707) 2020-08-26 14:51:41 +02:00
azure-pipelines-release.yml Integrate dockerbuild (#33168) 2020-03-23 00:39:37 +01:00
azure-pipelines-translation.yml Migrate translations upload (#33926) 2020-04-09 17:52:33 -07:00
azure-pipelines-wheels.yml Update azure-pipelines-wheels.yml 2020-09-13 15:38:02 +02:00
build.json Update docker base image to 8.4.0 (#40066) 2020-09-14 14:50:39 +02:00
codecov.yml Update Codecov.io configuration (#33783) 2020-04-07 09:01:01 -07:00
pylintrc Upgrade pylint to 2.6.0 (#39363) 2020-08-29 07:59:24 +02:00
pyproject.toml Drop Python 3.6 support (#29978) 2019-12-16 07:29:19 +01:00
requirements.txt Update voluptuous to 0.12.0 (#40401) 2020-09-21 10:43:35 -05:00
requirements_all.txt Add OZW node config parameters websocket commands (#40527) 2020-10-05 21:47:28 +02:00
requirements_docs.txt Refactor API documentation (#33217) 2020-03-25 13:21:04 -07:00
requirements_test.txt Upgrade tqdm to 4.49.0 (#40573) 2020-09-25 14:29:27 +02:00
requirements_test_all.txt Add OZW node config parameters websocket commands (#40527) 2020-10-05 21:47:28 +02:00
requirements_test_pre_commit.txt Upgrade flake8 to 3.8.4 (#41117) 2020-10-03 10:11:22 +02:00
setup.cfg Upgrade isort to 5.4.2 (#37939) 2020-08-29 08:23:55 +02:00
setup.py Update voluptuous to 0.12.0 (#40401) 2020-09-21 10:43:35 -05:00
tox.ini Fix and clean tox.ini (#40789) 2020-09-30 17:07:59 +02: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-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/integrations/