f91d69a478
Bump pytest-homeassistant-custom-component from 0.13.182 to 0.13.183 |
||
---|---|---|
.devcontainer | ||
.github | ||
.vscode | ||
custom_components | ||
tests | ||
.gitattributes | ||
.gitignore | ||
.pre-commit-config.yaml | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md | ||
hacs.json | ||
pytest.ini | ||
requirements_dev.txt | ||
requirements_test.txt | ||
setup.cfg |
README.md
Home Assistant Registry
Description
Adds services for home assistant registry operations.
WARNING: These are low level APIs that only have basic validation. They are intended for power users. Misuse could result in entities getting into strange states.
HA core has decided to not support services for common registry operations mentioned in https://github.com/home-assistant/core/pull/86281#event-8320797538.
Services
Remove Entity
Remove all targeted entity registry configs,
entity_id
is a repeated field that takes comma separated values in a string or a yaml list
service: ha_registry.remove_entity
data:
entity_id:
- sensor.bathroom_temperature
- sensor.bedroom_temperature
Update Entity
Updates all targeted entity registry configs to the specified values.
entity_id
and aliases
are repeated fields that take comma separated values in a string or a yaml list
service: ha_registry.update_entity
data:
entity_id: sensor.bathroom_temperature,sensor.bedroom_temperature
aliases:
- Alias1
- Alias2
area_id: bedroom
device_class: temperature
disabled: true
hidden: true
icon: mdi:home
name: Bedroom Temperature
new_entity_id: sensor.new_entity_id
options_domain: sensor
options:
unit_of_measurement: °F
{% if not installed %}
Installation
HACS
- Install HACS
- Go to HACS "Integrations >" section
- In the lower right click "+ Explore & Download repositories"
- Search for "Home Assistant Registry" and add it
- HA Restart is not needed since it is configured in UI config flow
- In the Home Assistant (HA) UI go to "Configuration"
- Click "Integrations"
- Click "+ Add Integration"
- Search for "Home Assistant Registry"
Manual
- Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml
). - If you do not have a
custom_components
directory (folder) there, you need to create it. - In the
custom_components
directory (folder) create a new folder calledha_registry
. - Download all the files from the
custom_components/ha_registry/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Restart Home Assistant
- In the Home Assistant (HA) UI go to "Configuration"
- Click "Integrations"
- Click "+ Add Integration"
- Search for "Home Assistant Registry"
{% endif %}
Contributions are welcome!
If you want to contribute to this please read the Contribution guidelines
Credits
Code template was mainly taken from @Ludeeus's integration_blueprint template